You have a “Users” table in HBase and you would like to insert a row that consists of a UserID,
“jsmith70” and an email address, “email@example.com”. The table has a single Column Family
named “Meta” and the row key will be the user’s ID. The shell command you should use to
complete this is:
put ‘Users’, ‘jsmith70’, ‘firstname.lastname@example.org’
put ‘Users’, ‘UserID:jsmith70’, ‘Email:email@example.com’
put ‘Users’, ‘jsmith70’, ‘Meta:Email’, ‘firstname.lastname@example.org’
put ‘Users’, ‘Meta:UserID’, ‘jsmith70’, ‘Meta:Email, ‘email@example.com’
Need to include the column family name: Meta for both columns using the : syntax.
Columns in Apache HBase are grouped into column families. All column members of a column
family have the same prefix. For example, the columns courses:history and courses:math are both
members of the courses column family. The colon character (:) delimits the column family from the
column qualifier . The column family prefix must be composed of printable characters. The
qualifying tail, the column family qualifier, can be made of any arbitrary bytes. Column families
must be declared up front at schema definition time whereas columns do not need to be defined at
schema time but can be conjured on the fly while the table is up an running.