Search in sources :

Example 1 with ExitCommand

use of org.apache.accumulo.shell.commands.ExitCommand in project accumulo by apache.

the class Shell method execCommand.

public void execCommand(String input, boolean ignoreAuthTimeout, boolean echoPrompt) throws IOException {
    audit.log(Level.INFO, getDefaultPrompt() + input);
    if (echoPrompt) {
        reader.print(getDefaultPrompt());
        reader.println(input);
    }
    if (input.startsWith(COMMENT_PREFIX)) {
        return;
    }
    String[] fields;
    try {
        fields = new QuotedStringTokenizer(input).getTokens();
    } catch (BadArgumentException e) {
        printException(e);
        ++exitCode;
        return;
    }
    if (fields.length == 0)
        return;
    String command = fields[0];
    fields = fields.length > 1 ? Arrays.copyOfRange(fields, 1, fields.length) : new String[] {};
    Command sc = null;
    if (command.length() > 0) {
        try {
            // Obtain the command from the command table
            sc = commandFactory.get(command);
            if (sc == null) {
                reader.println(String.format("Unknown command \"%s\".  Enter \"help\" for a list possible commands.", command));
                reader.flush();
                return;
            }
            long duration = System.nanoTime() - lastUserActivity;
            if (!(sc instanceof ExitCommand) && !ignoreAuthTimeout && (duration < 0 || duration > authTimeout)) {
                reader.println("Shell has been idle for too long. Please re-authenticate.");
                boolean authFailed = true;
                do {
                    String pwd = readMaskedLine("Enter current password for '" + connector.whoami() + "': ", '*');
                    if (pwd == null) {
                        reader.println();
                        return;
                    }
                    try {
                        authFailed = !connector.securityOperations().authenticateUser(connector.whoami(), new PasswordToken(pwd));
                    } catch (Exception e) {
                        ++exitCode;
                        printException(e);
                    }
                    if (authFailed)
                        reader.print("Invalid password. ");
                } while (authFailed);
                lastUserActivity = System.nanoTime();
            }
            // Get the options from the command on how to parse the string
            Options parseOpts = sc.getOptionsWithHelp();
            // Parse the string using the given options
            CommandLine cl = new BasicParser().parse(parseOpts, fields);
            int actualArgLen = cl.getArgs().length;
            int expectedArgLen = sc.numArgs();
            if (cl.hasOption(helpOption)) {
                // Display help if asked to; otherwise execute the command
                sc.printHelp(this);
            } else if (expectedArgLen != NO_FIXED_ARG_LENGTH_CHECK && actualArgLen != expectedArgLen) {
                ++exitCode;
                // Check for valid number of fixed arguments (if not
                // negative; negative means it is not checked, for
                // vararg-like commands)
                printException(new IllegalArgumentException(String.format("Expected %d argument%s. There %s %d.", expectedArgLen, expectedArgLen == 1 ? "" : "s", actualArgLen == 1 ? "was" : "were", actualArgLen)));
                sc.printHelp(this);
            } else {
                int tmpCode = sc.execute(input, cl, this);
                exitCode += tmpCode;
                reader.flush();
            }
        } catch (ConstraintViolationException e) {
            ++exitCode;
            printConstraintViolationException(e);
        } catch (TableNotFoundException e) {
            ++exitCode;
            if (getTableName().equals(e.getTableName()))
                setTableName("");
            printException(e);
        } catch (ParseException e) {
            // option when the user is asking for help
            if (!(e instanceof MissingOptionException && (Arrays.asList(fields).contains("-" + helpOption) || Arrays.asList(fields).contains("--" + helpLongOption)))) {
                ++exitCode;
                printException(e);
            }
            if (sc != null)
                sc.printHelp(this);
        } catch (UserInterruptException e) {
            ++exitCode;
        } catch (Exception e) {
            ++exitCode;
            printException(e);
        }
    } else {
        ++exitCode;
        printException(new BadArgumentException("Unrecognized empty command", command, -1));
    }
    reader.flush();
}
Also used : BadArgumentException(org.apache.accumulo.core.util.BadArgumentException) Options(org.apache.commons.cli.Options) ExitCommand(org.apache.accumulo.shell.commands.ExitCommand) UserInterruptException(jline.console.UserInterruptException) UserInterruptException(jline.console.UserInterruptException) TableNotFoundException(org.apache.accumulo.core.client.TableNotFoundException) NamespaceNotFoundException(org.apache.accumulo.core.client.NamespaceNotFoundException) FileSystemException(org.apache.commons.vfs2.FileSystemException) BadArgumentException(org.apache.accumulo.core.util.BadArgumentException) ConfigurationException(org.apache.commons.configuration.ConfigurationException) ConstraintViolationException(org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException) IOException(java.io.IOException) MissingOptionException(org.apache.commons.cli.MissingOptionException) ParameterException(com.beust.jcommander.ParameterException) FileNotFoundException(java.io.FileNotFoundException) ParseException(org.apache.commons.cli.ParseException) AccumuloSecurityException(org.apache.accumulo.core.client.AccumuloSecurityException) AccumuloException(org.apache.accumulo.core.client.AccumuloException) BasicParser(org.apache.commons.cli.BasicParser) TableNotFoundException(org.apache.accumulo.core.client.TableNotFoundException) PasswordToken(org.apache.accumulo.core.client.security.tokens.PasswordToken) CommandLine(org.apache.commons.cli.CommandLine) QuotedStringTokenizer(org.apache.accumulo.shell.commands.QuotedStringTokenizer) WhoAmICommand(org.apache.accumulo.shell.commands.WhoAmICommand) SetAuthsCommand(org.apache.accumulo.shell.commands.SetAuthsCommand) InsertCommand(org.apache.accumulo.shell.commands.InsertCommand) SystemPermissionsCommand(org.apache.accumulo.shell.commands.SystemPermissionsCommand) CreateNamespaceCommand(org.apache.accumulo.shell.commands.CreateNamespaceCommand) CloneTableCommand(org.apache.accumulo.shell.commands.CloneTableCommand) DropTableCommand(org.apache.accumulo.shell.commands.DropTableCommand) CreateTableCommand(org.apache.accumulo.shell.commands.CreateTableCommand) DUCommand(org.apache.accumulo.shell.commands.DUCommand) DeleteAuthsCommand(org.apache.accumulo.shell.commands.DeleteAuthsCommand) CreateUserCommand(org.apache.accumulo.shell.commands.CreateUserCommand) InterpreterCommand(org.apache.accumulo.shell.commands.InterpreterCommand) SetIterCommand(org.apache.accumulo.shell.commands.SetIterCommand) OfflineCommand(org.apache.accumulo.shell.commands.OfflineCommand) ScanCommand(org.apache.accumulo.shell.commands.ScanCommand) TablePermissionsCommand(org.apache.accumulo.shell.commands.TablePermissionsCommand) UserCommand(org.apache.accumulo.shell.commands.UserCommand) GetGroupsCommand(org.apache.accumulo.shell.commands.GetGroupsCommand) DeleteTableCommand(org.apache.accumulo.shell.commands.DeleteTableCommand) DeleteUserCommand(org.apache.accumulo.shell.commands.DeleteUserCommand) AddAuthsCommand(org.apache.accumulo.shell.commands.AddAuthsCommand) ListBulkCommand(org.apache.accumulo.shell.commands.ListBulkCommand) TablesCommand(org.apache.accumulo.shell.commands.TablesCommand) AuthenticateCommand(org.apache.accumulo.shell.commands.AuthenticateCommand) HistoryCommand(org.apache.accumulo.shell.commands.HistoryCommand) SummariesCommand(org.apache.accumulo.shell.commands.SummariesCommand) SetScanIterCommand(org.apache.accumulo.shell.commands.SetScanIterCommand) SleepCommand(org.apache.accumulo.shell.commands.SleepCommand) ImportTableCommand(org.apache.accumulo.shell.commands.ImportTableCommand) DropUserCommand(org.apache.accumulo.shell.commands.DropUserCommand) FormatterCommand(org.apache.accumulo.shell.commands.FormatterCommand) ExecfileCommand(org.apache.accumulo.shell.commands.ExecfileCommand) InfoCommand(org.apache.accumulo.shell.commands.InfoCommand) ConstraintCommand(org.apache.accumulo.shell.commands.ConstraintCommand) DebugCommand(org.apache.accumulo.shell.commands.DebugCommand) DeleteManyCommand(org.apache.accumulo.shell.commands.DeleteManyCommand) DeleteShellIterCommand(org.apache.accumulo.shell.commands.DeleteShellIterCommand) CompactCommand(org.apache.accumulo.shell.commands.CompactCommand) GetSplitsCommand(org.apache.accumulo.shell.commands.GetSplitsCommand) DeleteScanIterCommand(org.apache.accumulo.shell.commands.DeleteScanIterCommand) FateCommand(org.apache.accumulo.shell.commands.FateCommand) HelpCommand(org.apache.accumulo.shell.commands.HelpCommand) GrantCommand(org.apache.accumulo.shell.commands.GrantCommand) ConfigCommand(org.apache.accumulo.shell.commands.ConfigCommand) ExitCommand(org.apache.accumulo.shell.commands.ExitCommand) RenameNamespaceCommand(org.apache.accumulo.shell.commands.RenameNamespaceCommand) AboutCommand(org.apache.accumulo.shell.commands.AboutCommand) DeleteCommand(org.apache.accumulo.shell.commands.DeleteCommand) SetGroupsCommand(org.apache.accumulo.shell.commands.SetGroupsCommand) UserPermissionsCommand(org.apache.accumulo.shell.commands.UserPermissionsCommand) SetShellIterCommand(org.apache.accumulo.shell.commands.SetShellIterCommand) ScriptCommand(org.apache.accumulo.shell.commands.ScriptCommand) ImportDirectoryCommand(org.apache.accumulo.shell.commands.ImportDirectoryCommand) OnlineCommand(org.apache.accumulo.shell.commands.OnlineCommand) ListScansCommand(org.apache.accumulo.shell.commands.ListScansCommand) DeleteRowsCommand(org.apache.accumulo.shell.commands.DeleteRowsCommand) PasswdCommand(org.apache.accumulo.shell.commands.PasswdCommand) ExtensionCommand(org.apache.accumulo.shell.commands.ExtensionCommand) MaxRowCommand(org.apache.accumulo.shell.commands.MaxRowCommand) ByeCommand(org.apache.accumulo.shell.commands.ByeCommand) GrepCommand(org.apache.accumulo.shell.commands.GrepCommand) MergeCommand(org.apache.accumulo.shell.commands.MergeCommand) NoTableCommand(org.apache.accumulo.shell.commands.NoTableCommand) ListCompactionsCommand(org.apache.accumulo.shell.commands.ListCompactionsCommand) PingCommand(org.apache.accumulo.shell.commands.PingCommand) ClsCommand(org.apache.accumulo.shell.commands.ClsCommand) ListIterCommand(org.apache.accumulo.shell.commands.ListIterCommand) DeleteIterCommand(org.apache.accumulo.shell.commands.DeleteIterCommand) GetAuthsCommand(org.apache.accumulo.shell.commands.GetAuthsCommand) TraceCommand(org.apache.accumulo.shell.commands.TraceCommand) RenameTableCommand(org.apache.accumulo.shell.commands.RenameTableCommand) NamespacePermissionsCommand(org.apache.accumulo.shell.commands.NamespacePermissionsCommand) UsersCommand(org.apache.accumulo.shell.commands.UsersCommand) DeleteNamespaceCommand(org.apache.accumulo.shell.commands.DeleteNamespaceCommand) TableCommand(org.apache.accumulo.shell.commands.TableCommand) ClearCommand(org.apache.accumulo.shell.commands.ClearCommand) HiddenCommand(org.apache.accumulo.shell.commands.HiddenCommand) FlushCommand(org.apache.accumulo.shell.commands.FlushCommand) ExportTableCommand(org.apache.accumulo.shell.commands.ExportTableCommand) ClasspathCommand(org.apache.accumulo.shell.commands.ClasspathCommand) RevokeCommand(org.apache.accumulo.shell.commands.RevokeCommand) ListShellIterCommand(org.apache.accumulo.shell.commands.ListShellIterCommand) QuitCommand(org.apache.accumulo.shell.commands.QuitCommand) EGrepCommand(org.apache.accumulo.shell.commands.EGrepCommand) AddSplitsCommand(org.apache.accumulo.shell.commands.AddSplitsCommand) NamespacesCommand(org.apache.accumulo.shell.commands.NamespacesCommand) QuestionCommand(org.apache.accumulo.shell.commands.QuestionCommand) ConstraintViolationException(org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException) ParseException(org.apache.commons.cli.ParseException) MissingOptionException(org.apache.commons.cli.MissingOptionException)

Example 2 with ExitCommand

use of org.apache.accumulo.shell.commands.ExitCommand in project accumulo by apache.

the class Shell method config.

/**
 * Configures the shell using the provided options. Not for client use.
 *
 * @return true if the shell was successfully configured, false otherwise.
 * @throws IOException
 *           if problems occur creating the ConsoleReader
 */
public boolean config(String... args) throws IOException {
    if (this.reader == null)
        this.reader = new ConsoleReader();
    ShellOptionsJC options = new ShellOptionsJC();
    JCommander jc = new JCommander();
    jc.setProgramName("accumulo shell");
    jc.addObject(options);
    try {
        jc.parse(args);
    } catch (ParameterException e) {
        jc.usage();
        exitCode = 1;
        return false;
    }
    if (options.isHelpEnabled()) {
        jc.usage();
        // Not an error
        exitCode = 0;
        return false;
    }
    if (options.getUnrecognizedOptions() != null) {
        logError("Unrecognized Options: " + options.getUnrecognizedOptions().toString());
        jc.usage();
        exitCode = 1;
        return false;
    }
    setDebugging(options.isDebugEnabled());
    authTimeout = TimeUnit.MINUTES.toNanos(options.getAuthTimeout());
    disableAuthTimeout = options.isAuthTimeoutDisabled();
    ClientConfiguration clientConf;
    try {
        clientConf = options.getClientConfiguration();
    } catch (Exception e) {
        printException(e);
        return true;
    }
    if (Boolean.parseBoolean(clientConf.get(ClientProperty.INSTANCE_RPC_SASL_ENABLED))) {
        log.debug("SASL is enabled, disabling authorization timeout");
        disableAuthTimeout = true;
    }
    // get the options that were parsed
    final String user;
    try {
        user = options.getUsername();
    } catch (Exception e) {
        printException(e);
        return true;
    }
    String password = options.getPassword();
    tabCompletion = !options.isTabCompletionDisabled();
    // Use a ZK, or HdfsZK Accumulo instance
    setInstance(options);
    // AuthenticationToken options
    try {
        token = options.getAuthenticationToken();
    } catch (Exception e) {
        printException(e);
        return true;
    }
    Map<String, String> loginOptions = options.getTokenProperties();
    // process default parameters if unspecified
    try {
        final boolean hasToken = (token != null);
        if (hasToken && password != null) {
            throw new ParameterException("Can not supply '--pass' option with '--tokenClass' option");
        }
        Runtime.getRuntime().addShutdownHook(new Thread() {

            @Override
            public void run() {
                reader.getTerminal().setEchoEnabled(true);
            }
        });
        if (hasToken) {
            // implied hasTokenOptions
            // Fully qualified name so we don't shadow java.util.Properties
            org.apache.accumulo.core.client.security.tokens.AuthenticationToken.Properties props;
            // and line wrap it because the package name is so long
            props = new org.apache.accumulo.core.client.security.tokens.AuthenticationToken.Properties();
            if (!loginOptions.isEmpty()) {
                props.putAllStrings(loginOptions);
            }
            token.init(props);
        } else {
            // Read password if the user explicitly asked for it, or didn't specify anything at all
            if ("stdin".equals(password) || password == null) {
                password = reader.readLine("Password: ", '*');
            }
            if (password == null) {
                // User cancel, e.g. Ctrl-D pressed
                throw new ParameterException("No password or token option supplied");
            } else {
                this.token = new PasswordToken(password);
            }
        }
        if (!options.isFake()) {
            DistributedTrace.enable(InetAddress.getLocalHost().getHostName(), "shell", clientConf);
        }
        this.setTableName("");
        connector = instance.getConnector(user, token);
    } catch (Exception e) {
        printException(e);
        exitCode = 1;
        return false;
    }
    // decide whether to execute commands from a file and quit
    if (options.getExecFile() != null) {
        execFile = options.getExecFile();
        verbose = false;
    } else if (options.getExecFileVerbose() != null) {
        execFile = options.getExecFileVerbose();
        verbose = true;
    }
    execCommand = options.getExecCommand();
    if (execCommand != null) {
        verbose = false;
    }
    rootToken = new Token();
    Command[] dataCommands = { new DeleteCommand(), new DeleteManyCommand(), new DeleteRowsCommand(), new EGrepCommand(), new FormatterCommand(), new InterpreterCommand(), new GrepCommand(), new ImportDirectoryCommand(), new InsertCommand(), new MaxRowCommand(), new ScanCommand() };
    Command[] debuggingCommands = { new ClasspathCommand(), new DebugCommand(), new ListScansCommand(), new ListCompactionsCommand(), new TraceCommand(), new PingCommand(), new ListBulkCommand() };
    Command[] execCommands = { new ExecfileCommand(), new HistoryCommand(), new ExtensionCommand(), new ScriptCommand() };
    Command[] exitCommands = { new ByeCommand(), new ExitCommand(), new QuitCommand() };
    Command[] helpCommands = { new AboutCommand(), new HelpCommand(), new InfoCommand(), new QuestionCommand() };
    Command[] iteratorCommands = { new DeleteIterCommand(), new DeleteScanIterCommand(), new ListIterCommand(), new SetIterCommand(), new SetScanIterCommand(), new SetShellIterCommand(), new ListShellIterCommand(), new DeleteShellIterCommand() };
    Command[] otherCommands = { new HiddenCommand() };
    Command[] permissionsCommands = { new GrantCommand(), new RevokeCommand(), new SystemPermissionsCommand(), new TablePermissionsCommand(), new UserPermissionsCommand(), new NamespacePermissionsCommand() };
    Command[] stateCommands = { new AuthenticateCommand(), new ClsCommand(), new ClearCommand(), new FateCommand(), new NoTableCommand(), new SleepCommand(), new TableCommand(), new UserCommand(), new WhoAmICommand() };
    Command[] tableCommands = { new CloneTableCommand(), new ConfigCommand(), new CreateTableCommand(), new DeleteTableCommand(), new DropTableCommand(), new DUCommand(), new ExportTableCommand(), new ImportTableCommand(), new OfflineCommand(), new OnlineCommand(), new RenameTableCommand(), new TablesCommand(), new NamespacesCommand(), new CreateNamespaceCommand(), new DeleteNamespaceCommand(), new RenameNamespaceCommand(), new SummariesCommand() };
    Command[] tableControlCommands = { new AddSplitsCommand(), new CompactCommand(), new ConstraintCommand(), new FlushCommand(), new GetGroupsCommand(), new GetSplitsCommand(), new MergeCommand(), new SetGroupsCommand() };
    Command[] userCommands = { new AddAuthsCommand(), new CreateUserCommand(), new DeleteUserCommand(), new DropUserCommand(), new GetAuthsCommand(), new PasswdCommand(), new SetAuthsCommand(), new UsersCommand(), new DeleteAuthsCommand() };
    commandGrouping.put("-- Writing, Reading, and Removing Data --", dataCommands);
    commandGrouping.put("-- Debugging Commands -------------------", debuggingCommands);
    commandGrouping.put("-- Shell Execution Commands -------------", execCommands);
    commandGrouping.put("-- Exiting Commands ---------------------", exitCommands);
    commandGrouping.put("-- Help Commands ------------------------", helpCommands);
    commandGrouping.put("-- Iterator Configuration ---------------", iteratorCommands);
    commandGrouping.put("-- Permissions Administration Commands --", permissionsCommands);
    commandGrouping.put("-- Shell State Commands -----------------", stateCommands);
    commandGrouping.put("-- Table Administration Commands --------", tableCommands);
    commandGrouping.put("-- Table Control Commands ---------------", tableControlCommands);
    commandGrouping.put("-- User Administration Commands ---------", userCommands);
    for (Command[] cmds : commandGrouping.values()) {
        for (Command cmd : cmds) commandFactory.put(cmd.getName(), cmd);
    }
    for (Command cmd : otherCommands) {
        commandFactory.put(cmd.getName(), cmd);
    }
    return true;
}
Also used : AuthenticationToken(org.apache.accumulo.core.client.security.tokens.AuthenticationToken) ImportDirectoryCommand(org.apache.accumulo.shell.commands.ImportDirectoryCommand) NamespacesCommand(org.apache.accumulo.shell.commands.NamespacesCommand) PasswordToken(org.apache.accumulo.core.client.security.tokens.PasswordToken) AuthenticationToken(org.apache.accumulo.core.client.security.tokens.AuthenticationToken) FateCommand(org.apache.accumulo.shell.commands.FateCommand) DeleteCommand(org.apache.accumulo.shell.commands.DeleteCommand) SummariesCommand(org.apache.accumulo.shell.commands.SummariesCommand) RenameNamespaceCommand(org.apache.accumulo.shell.commands.RenameNamespaceCommand) InfoCommand(org.apache.accumulo.shell.commands.InfoCommand) NoTableCommand(org.apache.accumulo.shell.commands.NoTableCommand) ScriptCommand(org.apache.accumulo.shell.commands.ScriptCommand) HistoryCommand(org.apache.accumulo.shell.commands.HistoryCommand) CloneTableCommand(org.apache.accumulo.shell.commands.CloneTableCommand) DropTableCommand(org.apache.accumulo.shell.commands.DropTableCommand) CreateTableCommand(org.apache.accumulo.shell.commands.CreateTableCommand) DeleteTableCommand(org.apache.accumulo.shell.commands.DeleteTableCommand) ImportTableCommand(org.apache.accumulo.shell.commands.ImportTableCommand) NoTableCommand(org.apache.accumulo.shell.commands.NoTableCommand) RenameTableCommand(org.apache.accumulo.shell.commands.RenameTableCommand) TableCommand(org.apache.accumulo.shell.commands.TableCommand) ExportTableCommand(org.apache.accumulo.shell.commands.ExportTableCommand) GetAuthsCommand(org.apache.accumulo.shell.commands.GetAuthsCommand) OnlineCommand(org.apache.accumulo.shell.commands.OnlineCommand) ListScansCommand(org.apache.accumulo.shell.commands.ListScansCommand) ExitCommand(org.apache.accumulo.shell.commands.ExitCommand) HelpCommand(org.apache.accumulo.shell.commands.HelpCommand) OfflineCommand(org.apache.accumulo.shell.commands.OfflineCommand) PingCommand(org.apache.accumulo.shell.commands.PingCommand) QuestionCommand(org.apache.accumulo.shell.commands.QuestionCommand) PasswdCommand(org.apache.accumulo.shell.commands.PasswdCommand) ListCompactionsCommand(org.apache.accumulo.shell.commands.ListCompactionsCommand) QuitCommand(org.apache.accumulo.shell.commands.QuitCommand) ExportTableCommand(org.apache.accumulo.shell.commands.ExportTableCommand) ClientConfiguration(org.apache.accumulo.core.client.ClientConfiguration) AddSplitsCommand(org.apache.accumulo.shell.commands.AddSplitsCommand) DeleteRowsCommand(org.apache.accumulo.shell.commands.DeleteRowsCommand) TraceCommand(org.apache.accumulo.shell.commands.TraceCommand) RenameTableCommand(org.apache.accumulo.shell.commands.RenameTableCommand) JCommander(com.beust.jcommander.JCommander) DeleteNamespaceCommand(org.apache.accumulo.shell.commands.DeleteNamespaceCommand) SetScanIterCommand(org.apache.accumulo.shell.commands.SetScanIterCommand) ClearCommand(org.apache.accumulo.shell.commands.ClearCommand) AddAuthsCommand(org.apache.accumulo.shell.commands.AddAuthsCommand) ByeCommand(org.apache.accumulo.shell.commands.ByeCommand) ConsoleReader(jline.console.ConsoleReader) RevokeCommand(org.apache.accumulo.shell.commands.RevokeCommand) ListIterCommand(org.apache.accumulo.shell.commands.ListIterCommand) FlushCommand(org.apache.accumulo.shell.commands.FlushCommand) UsersCommand(org.apache.accumulo.shell.commands.UsersCommand) EGrepCommand(org.apache.accumulo.shell.commands.EGrepCommand) CompactCommand(org.apache.accumulo.shell.commands.CompactCommand) DeleteUserCommand(org.apache.accumulo.shell.commands.DeleteUserCommand) HiddenCommand(org.apache.accumulo.shell.commands.HiddenCommand) GetSplitsCommand(org.apache.accumulo.shell.commands.GetSplitsCommand) MergeCommand(org.apache.accumulo.shell.commands.MergeCommand) InterpreterCommand(org.apache.accumulo.shell.commands.InterpreterCommand) CreateTableCommand(org.apache.accumulo.shell.commands.CreateTableCommand) ExecfileCommand(org.apache.accumulo.shell.commands.ExecfileCommand) GrantCommand(org.apache.accumulo.shell.commands.GrantCommand) PasswordToken(org.apache.accumulo.core.client.security.tokens.PasswordToken) WhoAmICommand(org.apache.accumulo.shell.commands.WhoAmICommand) ListShellIterCommand(org.apache.accumulo.shell.commands.ListShellIterCommand) CreateNamespaceCommand(org.apache.accumulo.shell.commands.CreateNamespaceCommand) ParameterException(com.beust.jcommander.ParameterException) DeleteIterCommand(org.apache.accumulo.shell.commands.DeleteIterCommand) DeleteAuthsCommand(org.apache.accumulo.shell.commands.DeleteAuthsCommand) ClasspathCommand(org.apache.accumulo.shell.commands.ClasspathCommand) ConstraintCommand(org.apache.accumulo.shell.commands.ConstraintCommand) DeleteManyCommand(org.apache.accumulo.shell.commands.DeleteManyCommand) ImportTableCommand(org.apache.accumulo.shell.commands.ImportTableCommand) AuthenticateCommand(org.apache.accumulo.shell.commands.AuthenticateCommand) SetShellIterCommand(org.apache.accumulo.shell.commands.SetShellIterCommand) FormatterCommand(org.apache.accumulo.shell.commands.FormatterCommand) AboutCommand(org.apache.accumulo.shell.commands.AboutCommand) NamespacePermissionsCommand(org.apache.accumulo.shell.commands.NamespacePermissionsCommand) DUCommand(org.apache.accumulo.shell.commands.DUCommand) CloneTableCommand(org.apache.accumulo.shell.commands.CloneTableCommand) DeleteTableCommand(org.apache.accumulo.shell.commands.DeleteTableCommand) SystemPermissionsCommand(org.apache.accumulo.shell.commands.SystemPermissionsCommand) SetIterCommand(org.apache.accumulo.shell.commands.SetIterCommand) SetGroupsCommand(org.apache.accumulo.shell.commands.SetGroupsCommand) CreateUserCommand(org.apache.accumulo.shell.commands.CreateUserCommand) DropUserCommand(org.apache.accumulo.shell.commands.DropUserCommand) DropTableCommand(org.apache.accumulo.shell.commands.DropTableCommand) TablePermissionsCommand(org.apache.accumulo.shell.commands.TablePermissionsCommand) MaxRowCommand(org.apache.accumulo.shell.commands.MaxRowCommand) TablesCommand(org.apache.accumulo.shell.commands.TablesCommand) DebugCommand(org.apache.accumulo.shell.commands.DebugCommand) SetAuthsCommand(org.apache.accumulo.shell.commands.SetAuthsCommand) GetGroupsCommand(org.apache.accumulo.shell.commands.GetGroupsCommand) DeleteShellIterCommand(org.apache.accumulo.shell.commands.DeleteShellIterCommand) ConfigCommand(org.apache.accumulo.shell.commands.ConfigCommand) ListBulkCommand(org.apache.accumulo.shell.commands.ListBulkCommand) UserInterruptException(jline.console.UserInterruptException) TableNotFoundException(org.apache.accumulo.core.client.TableNotFoundException) NamespaceNotFoundException(org.apache.accumulo.core.client.NamespaceNotFoundException) FileSystemException(org.apache.commons.vfs2.FileSystemException) BadArgumentException(org.apache.accumulo.core.util.BadArgumentException) ConfigurationException(org.apache.commons.configuration.ConfigurationException) ConstraintViolationException(org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException) IOException(java.io.IOException) MissingOptionException(org.apache.commons.cli.MissingOptionException) ParameterException(com.beust.jcommander.ParameterException) FileNotFoundException(java.io.FileNotFoundException) ParseException(org.apache.commons.cli.ParseException) AccumuloSecurityException(org.apache.accumulo.core.client.AccumuloSecurityException) AccumuloException(org.apache.accumulo.core.client.AccumuloException) CreateUserCommand(org.apache.accumulo.shell.commands.CreateUserCommand) UserCommand(org.apache.accumulo.shell.commands.UserCommand) DeleteUserCommand(org.apache.accumulo.shell.commands.DeleteUserCommand) DropUserCommand(org.apache.accumulo.shell.commands.DropUserCommand) ScanCommand(org.apache.accumulo.shell.commands.ScanCommand) ExtensionCommand(org.apache.accumulo.shell.commands.ExtensionCommand) UserPermissionsCommand(org.apache.accumulo.shell.commands.UserPermissionsCommand) WhoAmICommand(org.apache.accumulo.shell.commands.WhoAmICommand) SetAuthsCommand(org.apache.accumulo.shell.commands.SetAuthsCommand) InsertCommand(org.apache.accumulo.shell.commands.InsertCommand) SystemPermissionsCommand(org.apache.accumulo.shell.commands.SystemPermissionsCommand) CreateNamespaceCommand(org.apache.accumulo.shell.commands.CreateNamespaceCommand) CloneTableCommand(org.apache.accumulo.shell.commands.CloneTableCommand) DropTableCommand(org.apache.accumulo.shell.commands.DropTableCommand) CreateTableCommand(org.apache.accumulo.shell.commands.CreateTableCommand) DUCommand(org.apache.accumulo.shell.commands.DUCommand) DeleteAuthsCommand(org.apache.accumulo.shell.commands.DeleteAuthsCommand) CreateUserCommand(org.apache.accumulo.shell.commands.CreateUserCommand) InterpreterCommand(org.apache.accumulo.shell.commands.InterpreterCommand) SetIterCommand(org.apache.accumulo.shell.commands.SetIterCommand) OfflineCommand(org.apache.accumulo.shell.commands.OfflineCommand) ScanCommand(org.apache.accumulo.shell.commands.ScanCommand) TablePermissionsCommand(org.apache.accumulo.shell.commands.TablePermissionsCommand) UserCommand(org.apache.accumulo.shell.commands.UserCommand) GetGroupsCommand(org.apache.accumulo.shell.commands.GetGroupsCommand) DeleteTableCommand(org.apache.accumulo.shell.commands.DeleteTableCommand) DeleteUserCommand(org.apache.accumulo.shell.commands.DeleteUserCommand) AddAuthsCommand(org.apache.accumulo.shell.commands.AddAuthsCommand) ListBulkCommand(org.apache.accumulo.shell.commands.ListBulkCommand) TablesCommand(org.apache.accumulo.shell.commands.TablesCommand) AuthenticateCommand(org.apache.accumulo.shell.commands.AuthenticateCommand) HistoryCommand(org.apache.accumulo.shell.commands.HistoryCommand) SummariesCommand(org.apache.accumulo.shell.commands.SummariesCommand) SetScanIterCommand(org.apache.accumulo.shell.commands.SetScanIterCommand) SleepCommand(org.apache.accumulo.shell.commands.SleepCommand) ImportTableCommand(org.apache.accumulo.shell.commands.ImportTableCommand) DropUserCommand(org.apache.accumulo.shell.commands.DropUserCommand) FormatterCommand(org.apache.accumulo.shell.commands.FormatterCommand) ExecfileCommand(org.apache.accumulo.shell.commands.ExecfileCommand) InfoCommand(org.apache.accumulo.shell.commands.InfoCommand) ConstraintCommand(org.apache.accumulo.shell.commands.ConstraintCommand) DebugCommand(org.apache.accumulo.shell.commands.DebugCommand) DeleteManyCommand(org.apache.accumulo.shell.commands.DeleteManyCommand) DeleteShellIterCommand(org.apache.accumulo.shell.commands.DeleteShellIterCommand) CompactCommand(org.apache.accumulo.shell.commands.CompactCommand) GetSplitsCommand(org.apache.accumulo.shell.commands.GetSplitsCommand) DeleteScanIterCommand(org.apache.accumulo.shell.commands.DeleteScanIterCommand) FateCommand(org.apache.accumulo.shell.commands.FateCommand) HelpCommand(org.apache.accumulo.shell.commands.HelpCommand) GrantCommand(org.apache.accumulo.shell.commands.GrantCommand) ConfigCommand(org.apache.accumulo.shell.commands.ConfigCommand) ExitCommand(org.apache.accumulo.shell.commands.ExitCommand) RenameNamespaceCommand(org.apache.accumulo.shell.commands.RenameNamespaceCommand) AboutCommand(org.apache.accumulo.shell.commands.AboutCommand) DeleteCommand(org.apache.accumulo.shell.commands.DeleteCommand) SetGroupsCommand(org.apache.accumulo.shell.commands.SetGroupsCommand) UserPermissionsCommand(org.apache.accumulo.shell.commands.UserPermissionsCommand) SetShellIterCommand(org.apache.accumulo.shell.commands.SetShellIterCommand) ScriptCommand(org.apache.accumulo.shell.commands.ScriptCommand) ImportDirectoryCommand(org.apache.accumulo.shell.commands.ImportDirectoryCommand) OnlineCommand(org.apache.accumulo.shell.commands.OnlineCommand) ListScansCommand(org.apache.accumulo.shell.commands.ListScansCommand) DeleteRowsCommand(org.apache.accumulo.shell.commands.DeleteRowsCommand) PasswdCommand(org.apache.accumulo.shell.commands.PasswdCommand) ExtensionCommand(org.apache.accumulo.shell.commands.ExtensionCommand) MaxRowCommand(org.apache.accumulo.shell.commands.MaxRowCommand) ByeCommand(org.apache.accumulo.shell.commands.ByeCommand) GrepCommand(org.apache.accumulo.shell.commands.GrepCommand) MergeCommand(org.apache.accumulo.shell.commands.MergeCommand) NoTableCommand(org.apache.accumulo.shell.commands.NoTableCommand) ListCompactionsCommand(org.apache.accumulo.shell.commands.ListCompactionsCommand) PingCommand(org.apache.accumulo.shell.commands.PingCommand) ClsCommand(org.apache.accumulo.shell.commands.ClsCommand) ListIterCommand(org.apache.accumulo.shell.commands.ListIterCommand) DeleteIterCommand(org.apache.accumulo.shell.commands.DeleteIterCommand) GetAuthsCommand(org.apache.accumulo.shell.commands.GetAuthsCommand) TraceCommand(org.apache.accumulo.shell.commands.TraceCommand) RenameTableCommand(org.apache.accumulo.shell.commands.RenameTableCommand) NamespacePermissionsCommand(org.apache.accumulo.shell.commands.NamespacePermissionsCommand) UsersCommand(org.apache.accumulo.shell.commands.UsersCommand) DeleteNamespaceCommand(org.apache.accumulo.shell.commands.DeleteNamespaceCommand) TableCommand(org.apache.accumulo.shell.commands.TableCommand) ClearCommand(org.apache.accumulo.shell.commands.ClearCommand) HiddenCommand(org.apache.accumulo.shell.commands.HiddenCommand) FlushCommand(org.apache.accumulo.shell.commands.FlushCommand) ExportTableCommand(org.apache.accumulo.shell.commands.ExportTableCommand) ClasspathCommand(org.apache.accumulo.shell.commands.ClasspathCommand) RevokeCommand(org.apache.accumulo.shell.commands.RevokeCommand) ListShellIterCommand(org.apache.accumulo.shell.commands.ListShellIterCommand) QuitCommand(org.apache.accumulo.shell.commands.QuitCommand) EGrepCommand(org.apache.accumulo.shell.commands.EGrepCommand) AddSplitsCommand(org.apache.accumulo.shell.commands.AddSplitsCommand) NamespacesCommand(org.apache.accumulo.shell.commands.NamespacesCommand) QuestionCommand(org.apache.accumulo.shell.commands.QuestionCommand) GrepCommand(org.apache.accumulo.shell.commands.GrepCommand) EGrepCommand(org.apache.accumulo.shell.commands.EGrepCommand) InsertCommand(org.apache.accumulo.shell.commands.InsertCommand) SleepCommand(org.apache.accumulo.shell.commands.SleepCommand) ClsCommand(org.apache.accumulo.shell.commands.ClsCommand) DeleteScanIterCommand(org.apache.accumulo.shell.commands.DeleteScanIterCommand)

Aggregations

ParameterException (com.beust.jcommander.ParameterException)2 FileNotFoundException (java.io.FileNotFoundException)2 IOException (java.io.IOException)2 UserInterruptException (jline.console.UserInterruptException)2 AccumuloException (org.apache.accumulo.core.client.AccumuloException)2 AccumuloSecurityException (org.apache.accumulo.core.client.AccumuloSecurityException)2 NamespaceNotFoundException (org.apache.accumulo.core.client.NamespaceNotFoundException)2 TableNotFoundException (org.apache.accumulo.core.client.TableNotFoundException)2 PasswordToken (org.apache.accumulo.core.client.security.tokens.PasswordToken)2 ConstraintViolationException (org.apache.accumulo.core.tabletserver.thrift.ConstraintViolationException)2 BadArgumentException (org.apache.accumulo.core.util.BadArgumentException)2 AboutCommand (org.apache.accumulo.shell.commands.AboutCommand)2 AddAuthsCommand (org.apache.accumulo.shell.commands.AddAuthsCommand)2 AddSplitsCommand (org.apache.accumulo.shell.commands.AddSplitsCommand)2 AuthenticateCommand (org.apache.accumulo.shell.commands.AuthenticateCommand)2 ByeCommand (org.apache.accumulo.shell.commands.ByeCommand)2 ClasspathCommand (org.apache.accumulo.shell.commands.ClasspathCommand)2 ClearCommand (org.apache.accumulo.shell.commands.ClearCommand)2 CloneTableCommand (org.apache.accumulo.shell.commands.CloneTableCommand)2 ClsCommand (org.apache.accumulo.shell.commands.ClsCommand)2