[
https://issues.apache.org/jira/browse/HBASE-18999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17696008#comment-17696008
]
Nihal Jain commented on HBASE-18999:
------------------------------------
Hello all, I could raise a new PR with the above changes/idea, if this change
looks useful. Please let me know what do you guys think.
CC: [~busbey], [~stack], [~zhangduo]
{quote}Hi I added support for multiple column operations for the following
shell command:
* append
* delete
* deletall
* get_counter
* incr
* put
With this patch, hbase shell will support multi column for all the ops. Correct
me if I missed any operation.
The patch seems to introduce a lot of rubocop issues. I am planning to fix them.
It would be great if somebody could review the patch before I put up a
follow-up patch.
BTW the following commands are introduced by this patch:
{code:java}
append 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}
append 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}, {ATTRIBUTES =>
{'mykey'=>'myvalue'}}
delete 't1', 'r1', ['c1', 'c2'], ts1
delete 't1', 'r1', ['c1', 'c2'], ts1, {VISIBILITY => 'PRIVATE|SECRET'}
deleteall 't1', 'r1', ['c1', 'c2']
deleteall 't1', 'r1', ['c1', 'c2'], ts1
deleteall 't1', 'r1', ['c1', 'c2'], ts1, {VISIBILITY=>'PRIVATE|SECRET'}
deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, ['c1', 'c2']
deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, ['c1', 'c2'], ts1
deleteall 't1', {ROWPREFIXFILTER => 'prefix'}, ['c1', 'c2'], ts1,
{VISIBILITY=>'PRIVATE|SECRET'}
get_counter 't1', 'r1', ['c1', 'c2']
incr 't1', 'r1', ['c1', 'c2']
incr 't1', 'r1', {'c1' => 1, 'c2' => 1}
incr 't1', 'r1', {'c1' => 10, 'c2' => 20}
incr 't1', 'r1', {'c1' => 10, 'c2' => 20}, {ATTRIBUTES => {'mykey'=>'myvalue'}}
incr 't1', 'r1', ['c1', 'c2'], {ATTRIBUTES => {'mykey' => 'myvalue'}}
put 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}
put 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}, ts1
put 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}, {ATTRIBUTES => {'mykey'
=> 'myvalue'}}
put 't1', 'r1', {'c1' => 'value1', 'c2' => 'value2'}, ts1, {ATTRIBUTES =>
{'mykey' => 'myvalue'}}{code}
{quote}
> Put in hbase shell cannot do multiple columns
> ---------------------------------------------
>
> Key: HBASE-18999
> URL: https://issues.apache.org/jira/browse/HBASE-18999
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 1.0.0, 3.0.0-alpha-1, 2.0.0
> Reporter: Mike Drob
> Assignee: Nihal Jain
> Priority: Major
> Fix For: 3.0.0-alpha-4
>
> Attachments: HBASE-18999.master.001.patch,
> HBASE-18999.master.002.patch
>
>
> A {{Put}} can carry multiple cells, but doing so in the shell is very
> difficult to construct. We should make this easier.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)