I am looking for a Hbase put command that can insert values into multiple columns in same column family for a same rowkey in Hbase table. Let's say I have a hbase table named 'employee' with 1 column family 'data'
I am applying below command but it throws error.
PUT 'employee' 'data:column1', 'column1_val', 'data:column2', 'column_val2'
ERROR: no method 'add' for arguments (org.jruby.java.proxies.ArrayJavaProxy,org.jruby.RubyNil,org.jruby.RubyString,org.jruby.java.proxies.ArrayJavaProxy) on Java::OrgApacheHadoopHbaseClient::Put available overloads:
However if i try separate put commands for each column value insertion, it works fine.
PUT 'employee' 'data:column1', 'column1_val'
PUT 'employee' 'data:column2', 'column2_val'
Is there a way to insert values into multiple columns belonging to same column family in a single put command?