[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16460866#comment-16460866 ] Hudson commented on HBASE-20327: Results for branch branch-2.0 [build #249 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/249/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/249//General_Nightly_Build_Report/] (/) {color:green}+1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/249//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.0/249//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0, 2.1.0, 2.0.1 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10,
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16457595#comment-16457595 ] Hudson commented on HBASE-20327: Results for branch master [build #314 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/master/314/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/master/314//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/master/314//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/master/314//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0, 2.1.0, 2.0.1 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} >
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16457492#comment-16457492 ] Hudson commented on HBASE-20327: Results for branch branch-2 [build #669 on builds.a.o|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/669/]: (x) *{color:red}-1 overall{color}* details (if available): (/) {color:green}+1 general checks{color} -- For more information [see general report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/669//General_Nightly_Build_Report/] (x) {color:red}-1 jdk8 hadoop2 checks{color} -- For more information [see jdk8 (hadoop2) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/669//JDK8_Nightly_Build_Report_(Hadoop2)/] (x) {color:red}-1 jdk8 hadoop3 checks{color} -- For more information [see jdk8 (hadoop3) report|https://builds.apache.org/job/HBase%20Nightly/job/branch-2/669//JDK8_Nightly_Build_Report_(Hadoop3)/] (/) {color:green}+1 source release artifact{color} -- See build output for details. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0, 2.1.0, 2.0.1 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10,
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16457361#comment-16457361 ] Chia-Ping Tsai commented on HBASE-20327: Have pushed the patch to master and branch-2. Will commit it to branch-2.0 after 2.0 release > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0, 2.1.0, 2.0.1 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL >
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16451685#comment-16451685 ] Chia-Ping Tsai commented on HBASE-20327: LGTM Will commit it tomorrow. FYI [~busbey] > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0, 2.1.0, 2.0.1 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL >
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16443574#comment-16443574 ] Nihal Jain commented on HBASE-20327: [~chia7712], [~busbey] Can you please review the latest patch? How do I fix the ruby-lint errors? > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL >
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16443218#comment-16443218 ] Hadoop QA commented on HBASE-20327: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 17s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 5m 20s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 4m 57s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} rubocop {color} | {color:green} 0m 9s{color} | {color:green} The patch generated 0 new + 403 unchanged - 9 fixed = 403 total (was 412) {color} | | {color:red}-1{color} | {color:red} ruby-lint {color} | {color:red} 0m 13s{color} | {color:red} The patch generated 5 new + 477 unchanged - 0 fixed = 482 total (was 477) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 6m 48s{color} | {color:green} hbase-shell in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 10s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 18m 31s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:d8b550f | | JIRA Issue | HBASE-20327 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12919694/HBASE-20327.master.004.patch | | Optional Tests | asflicense javac javadoc unit rubocop ruby_lint | | uname | Linux 6db01fa00f2a 3.13.0-143-generic #192-Ubuntu SMP Tue Feb 27 10:45:36 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | master / 80cbc0d1fe | | maven | version: Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z) | | Default Java | 1.8.0_162 | | rubocop | v0.54.0 | | ruby-lint | v2.3.1 | | ruby-lint | https://builds.apache.org/job/PreCommit-HBASE-Build/12545/artifact/patchprocess/diff-patch-ruby-lint.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/12545/testReport/ | | Max. process+thread count | 2117 (vs. ulimit of 1) | | modules | C: hbase-shell U: hbase-shell | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/12545/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch, > HBASE-20327.master.004.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1',
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436398#comment-16436398 ] Hadoop QA commented on HBASE-20327: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 15s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 4m 18s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 4m 11s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} rubocop {color} | {color:red} 0m 9s{color} | {color:red} The patch generated 1 new + 403 unchanged - 15 fixed = 404 total (was 418) {color} | | {color:red}-1{color} | {color:red} ruby-lint {color} | {color:red} 0m 10s{color} | {color:red} The patch generated 6 new + 466 unchanged - 1 fixed = 472 total (was 467) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 6m 42s{color} | {color:green} hbase-shell in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 10s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 16m 30s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:d8b550f | | JIRA Issue | HBASE-20327 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12918812/HBASE-20327.master.003.patch | | Optional Tests | asflicense javac javadoc unit rubocop ruby_lint | | uname | Linux f8d9500214fd 4.4.0-43-generic #63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | master / 17a29ac231 | | maven | version: Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z) | | Default Java | 1.8.0_162 | | rubocop | v0.54.0 | | rubocop | https://builds.apache.org/job/PreCommit-HBASE-Build/12421/artifact/patchprocess/diff-patch-rubocop.txt | | ruby-lint | v2.3.1 | | ruby-lint | https://builds.apache.org/job/PreCommit-HBASE-Build/12421/artifact/patchprocess/diff-patch-ruby-lint.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/12421/testReport/ | | Max. process+thread count | 2518 (vs. ulimit of 1) | | modules | C: hbase-shell U: hbase-shell | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/12421/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch, HBASE-20327.master.003.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > >
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16436199#comment-16436199 ] Hadoop QA commented on HBASE-20327: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 20s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 5m 10s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 5m 3s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} rubocop {color} | {color:red} 0m 10s{color} | {color:red} The patch generated 2 new + 405 unchanged - 13 fixed = 407 total (was 418) {color} | | {color:red}-1{color} | {color:red} ruby-lint {color} | {color:red} 0m 14s{color} | {color:red} The patch generated 6 new + 466 unchanged - 1 fixed = 472 total (was 467) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 6m 47s{color} | {color:green} hbase-shell in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 9s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 18m 29s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:d8b550f | | JIRA Issue | HBASE-20327 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12918788/HBASE-20327.master.002.patch | | Optional Tests | asflicense javac javadoc unit rubocop ruby_lint | | uname | Linux 3aa1d6b16fcd 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build@2/component/dev-support/hbase-personality.sh | | git revision | master / f3ec230936 | | maven | version: Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z) | | Default Java | 1.8.0_162 | | rubocop | v0.54.0 | | rubocop | https://builds.apache.org/job/PreCommit-HBASE-Build/12418/artifact/patchprocess/diff-patch-rubocop.txt | | ruby-lint | v2.3.1 | | ruby-lint | https://builds.apache.org/job/PreCommit-HBASE-Build/12418/artifact/patchprocess/diff-patch-ruby-lint.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/12418/testReport/ | | Max. process+thread count | 2082 (vs. ulimit of 1) | | modules | C: hbase-shell U: hbase-shell | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/12418/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch, > HBASE-20327.master.002.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1)
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16432353#comment-16432353 ] Chia-Ping Tsai commented on HBASE-20327: [~busbey] Could we file another Jira to disable(and discuss) rubocop checks? There are too many false warnings which need to be suppressed. I didn't request the fix since the complaints are either unrelated or false. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Improvement > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16432329#comment-16432329 ] Sean Busbey commented on HBASE-20327: - (I'm fine with addressing them by e.g. disabling rubocop checks for some particular class/method) > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:,
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16432324#comment-16432324 ] Sean Busbey commented on HBASE-20327: - please address the ruby complaints from QAbot before committing. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16432071#comment-16432071 ] Nihal Jain commented on HBASE-20327: [~chia7712] I have updated the release notes. Please review. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16432018#comment-16432018 ] Chia-Ping Tsai commented on HBASE-20327: +1. [~nihaljain.cs] Could you please update the release note? [~stack] This patch enables hbase shell to accept the null-qualifier increment/append. It should warrant to be merged to 2.0. If no objections, I will commit it to branch-2.0+ tomorrow. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16424388#comment-16424388 ] Hadoop QA commented on HBASE-20327: --- | (x) *{color:red}-1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 8s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} master Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 4m 36s{color} | {color:green} master passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} master passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 4m 42s{color} | {color:green} the patch passed {color} | | {color:red}-1{color} | {color:red} rubocop {color} | {color:red} 0m 9s{color} | {color:red} The patch generated 7 new + 409 unchanged - 11 fixed = 416 total (was 420) {color} | | {color:red}-1{color} | {color:red} ruby-lint {color} | {color:red} 0m 12s{color} | {color:red} The patch generated 5 new + 463 unchanged - 0 fixed = 468 total (was 463) {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 10s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 7m 33s{color} | {color:green} hbase-shell in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 8s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 17m 59s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=17.05.0-ce Server=17.05.0-ce Image:yetus/hbase:d8b550f | | JIRA Issue | HBASE-20327 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12917407/HBASE-20327.master.001.patch | | Optional Tests | asflicense javac javadoc unit rubocop ruby_lint | | uname | Linux 5cc5e7508048 3.13.0-139-generic #188-Ubuntu SMP Tue Jan 9 14:43:09 UTC 2018 x86_64 GNU/Linux | | Build tool | maven | | Personality | /home/jenkins/jenkins-slave/workspace/PreCommit-HBASE-Build/component/dev-support/hbase-personality.sh | | git revision | master / bf29a1fee9 | | maven | version: Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T19:49:05Z) | | Default Java | 1.8.0_162 | | rubocop | v0.54.0 | | rubocop | https://builds.apache.org/job/PreCommit-HBASE-Build/12283/artifact/patchprocess/diff-patch-rubocop.txt | | ruby-lint | v2.3.1 | | ruby-lint | https://builds.apache.org/job/PreCommit-HBASE-Build/12283/artifact/patchprocess/diff-patch-ruby-lint.txt | | Test Results | https://builds.apache.org/job/PreCommit-HBASE-Build/12283/testReport/ | | Max. process+thread count | 2158 (vs. ulimit of 1) | | modules | C: hbase-shell U: hbase-shell | | Console output | https://builds.apache.org/job/PreCommit-HBASE-Build/12283/console | | Powered by | Apache Yetus 0.7.0 http://yetus.apache.org | This message was automatically generated. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0>
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16424347#comment-16424347 ] Nihal Jain commented on HBASE-20327: Can you please review ? [~chia7712] > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > Fix For: 3.0.0 > > Attachments: HBASE-20327.master.001.patch > > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16422548#comment-16422548 ] Chia-Ping Tsai commented on HBASE-20327: The client library of branch-1.x doesn't support null qualifier for Increment totally. see HBASE-15616. {quote}In order to have same behavior in shell and java, we should remove the above checks in method "_append_internal" and "_incr_internal" present in "table.rb" {quote} ya, it would be better to enhance the shell. [~nihaljain.cs] Nice find. > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 1.0.0, 3.0.0, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0> scan 't1' > ROW
[jira] [Commented] (HBASE-20327) When qualifier is not specified, append and incr operation do not work (shell)
[ https://issues.apache.org/jira/browse/HBASE-20327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16421972#comment-16421972 ] Nihal Jain commented on HBASE-20327: The following code segement in the method body of append and incr throws the above-mentioned error: {code:java} if qualifier.nil? raise ArgumentError, 'Failed to provide both column family and column qualifier for append' end {code} In order to have same behavior in shell and java, we should remove the above checks in method "_append_internal" and "_incr_internal" present in "table.rb" > When qualifier is not specified, append and incr operation do not work (shell) > -- > > Key: HBASE-20327 > URL: https://issues.apache.org/jira/browse/HBASE-20327 > Project: HBase > Issue Type: Bug > Components: shell >Affects Versions: 3.0.0, 1.3.1, 2.0.0 >Reporter: Nihal Jain >Assignee: Nihal Jain >Priority: Minor > > Running the example commands specified in shell docs for "append" and "incr" > throw following error: > {code:java} > ERROR: Failed to provide both column family and column qualifier for > append{code} > {code:java} > ERROR: Failed to provide both column family and column qualifier for > incr{code} > While running the same command via java does not require the user to provide > both column and qualifier and works smoothly. > > Steps to reproduce: > 1) APPEND > {code:java} > hbase(main):002:0> create 't1', 'c1', 'c2' > Created table t1 > Took 0.8151 seconds > > hbase(main):003:0> append 't1', 'r1', 'c1', 'value' > ERROR: Failed to provide both column family and column qualifier for append > Appends a cell 'value' at specified table/row/column coordinates. > hbase> append 't1', 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> append 't1', 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.append 'r1', 'c1', 'value', ATTRIBUTES=>{'mykey'=>'myvalue'} > hbase> t.append 'r1', 'c1', 'value', {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0326 seconds > hbase(main):004:0> scan 't1' > ROW COLUMN+CELL > > 0 row(s) > Took 0.1273 seconds > {code} > While the same command would run if we run the following java code: > {code:java} > try (Connection connection = ConnectionFactory.createConnection(config); > Admin admin = connection.getAdmin();) { > Table table = connection.getTable(TableName.valueOf("t1")); > Append a = new Append(Bytes.toBytes("r1")); > a.addColumn(Bytes.toBytes("c1"), null, Bytes.toBytes("value")); > table.append(a); > }{code} > Scan result after executing java code: > {code:java} > hbase(main):005:0> scan 't1' > ROW COLUMN+CELL > > r1 column=c1:, timestamp=1522649623090, > value=value > 1 row(s) > Took 0.0188 seconds > {code} > > 2) INCREMENT: > Similarly in case of increment, we get the following error (shell): > {code:java} > hbase(main):006:0> incr 't1', 'r2', 'c1', 111 > ERROR: Failed to provide both column family and column qualifier for incr > Increments a cell 'value' at specified table/row/column coordinates. > To increment a cell value in table 'ns1:t1' or 't1' at row 'r1' under column > 'c1' by 1 (can be omitted) or 10 do: > hbase> incr 'ns1:t1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1' > hbase> incr 't1', 'r1', 'c1', 1 > hbase> incr 't1', 'r1', 'c1', 10 > hbase> incr 't1', 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> incr 't1', 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > The same commands also can be run on a table reference. Suppose you had a > reference > t to table 't1', the corresponding command would be: > hbase> t.incr 'r1', 'c1' > hbase> t.incr 'r1', 'c1', 1 > hbase> t.incr 'r1', 'c1', 10, {ATTRIBUTES=>{'mykey'=>'myvalue'}} > hbase> t.incr 'r1', 'c1', 10, {VISIBILITY=>'PRIVATE|SECRET'} > Took 0.0103 seconds > > hbase(main):007:0>