14

How can I use the put command in Hbase shell to insert more than one value. I have a column family having five qualifiers. How can I insert values to all those 5 qualifiers using one single command using Put

mdahlman
  • 9,204
  • 4
  • 44
  • 72
Patruni Srikanth
  • 741
  • 1
  • 7
  • 14

1 Answers1

13

Sorry, you cannot do that from the HBase shell. The 'put' command is used to "Put a cell 'value' at specified table/row/column". It's for 'putting' a single value.

mdahlman
  • 9,204
  • 4
  • 44
  • 72
  • Is there any specific reason why HBase does not allow multiple inserts. – Kaushik Lele Sep 22 '15 at 11:21
  • I guess it tries to adhere to programming paradigm to interpret map. In, say Java map, we put single value at a time. But, I guess, here, if we want to put multiple cells in same row. we must be doing put with all: row key, column qualifier and timestamp. – Mahesha999 Apr 15 '16 at 07:22