export JAVA_HOME=`/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home` # Tell HBase whether it should manage it's own instance of Zookeeper or not. export HBASE_MANAGES_ZK=true
xiaolongyuan@xiaolongdeMacBook-Air bin$ hbase shell HBase Shell; enter 'help<RETURN>'for list of supported commands. Type "exit<RETURN>" to leave the HBase Shell Version 0.98.4-hadoop1, r890e852ce1c51b71ad180f626b71a2a1009246da, Mon Jul 1418:54:31 PDT 2014
hbase(main):001:0> version 0.98.4-hadoop1, r890e852ce1c51b71ad180f626b71a2a1009246da, Mon Jul 1418:54:31 PDT 2014
hbase(main):002:0> exit
3.发现hdfs下面有hbase的文件
1 2 3 4 5 6 7 8 9 10
xiaolongyuan@xiaolongdeMacBook-Air bin$ hadoop dfs -ls /hbase Warning: $HADOOP_HOME is deprecated.