[
https://issues.apache.org/jira/browse/ACCUMULO-3241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeffrey Manno resolved ACCUMULO-3241.
-------------------------------------
Resolution: Fixed
This feature was added in PR: [https://github.com/apache/accumulo/pull/1771].
> insert command could accept an optional table argument
> ------------------------------------------------------
>
> Key: ACCUMULO-3241
> URL: https://issues.apache.org/jira/browse/ACCUMULO-3241
> Project: Accumulo
> Issue Type: Bug
> Components: shell
> Affects Versions: 1.6.0
> Reporter: Mike Drob
> Priority: Major
>
> The {{insert}} shell command does not let me specify a table other than the
> current context.
> {noformat}
> root@fake> insert r cf cq v
> 2014-10-16 11:26:02,883 [shell.Shell] ERROR: java.lang.IllegalStateException:
> Not in a table context. Please use 'table <tableName>' to switch to a table,
> or use '-t' to specify a table if option is available.
> root@fake> insert r cf cq v -t fake
> 2014-10-16 11:26:10,695 [shell.Shell] ERROR:
> org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -t
> usage: insert <row> <colfamily> <colqualifier> <value> [-?] [-l <expression>]
> [--timeout <timeout>] [-ts <timestamp>]
> description: inserts a record
> -?,--help display this help
> -l,--visibility-label <expression> formatted visibility
> --timeout <timeout> time before insert should fail if no
> data is written. If no unit is given assumes seconds. Units d,h,m,s,and ms
> are supported. e.g. 30s or 100ms
> -ts,--timestamp <timestamp> timestamp to use for insert
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)