/usr/local/service/root, and the password is the one you set when creating the EMR cluster. Once the correct credentials are entered, you can enter the command line interface.[root@172 ~]# su hadoop[hadoop@172 ~]# cd /usr/local/service/hbase[hadoop@10hbase]$ bin/hbase shell
hbase(main):001:0> create 'test', 'cf'hbase(main):003:0> put 'test', 'row1', 'cf:a', 'value1'hbase(main):004:0> put 'test', 'row1', 'cf:b', 'value2'hbase(main):005:0> put 'test', 'row1', 'cf:c', 'value3'
list and scan operations to view the newly created table.hbase(main):001:0> list 'test'TABLEtest1 row(s) in 0.0030 seconds=> ["test"]hbase(main):002:0> scan 'test'ROW COLUMN+CELLrow1 column=cf:a, timestamp=1530276759697, value=value1row2 column=cf:b, timestamp=1530276777806, value=value2row3 column=cf:c, timestamp=1530276792839, value=value33 row(s) in 0.2110 seconds
[hadoop@172 hive]$ cd /usr/local/service/hive/[hadoop@172 hive]$ bin/hive
hive> CREATE EXTERNAL TABLE hive_test (> rowkey string,> a string,> b string,> c string> ) STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH> SERDEPROPERTIES("hbase.columns.mapping" = ":key,cf:a,cf:b,cf:c")> TBLPROPERTIES("hbase.table.name" = "test");OKTime taken: 2.086 seconds
hive> select * from hive_test;OKrow1 value1 value2 value3Time taken: 0.305 seconds, Fetched: 1 row(s)
Feedback