按照我自己的理解,从体系结构上看,hbase是建立在hdfs的基础之上的,因此必须先要启动hadoop才能启动hbase,但是我今天一下发现并非如此:
- stu@master:~$ jps
- 1154 Jps
- stu@master:~$ start-
- start-all.sh start-jobhistoryserver.sh
- start-balancer.sh start-mapred.sh
- start-dfs.sh start-stop-daemon
- start-hbase.sh
- stu@master:~$ start-hbase.sh
- localhost: starting zookeeper, logging to /home/stu/hbase-0.94.22/bin/../logs/hb ase-stu-zookeeper-master.out
- starting master, logging to /home/stu/hbase-0.94.22/logs/hbase-stu-master-master .out
- localhost: starting regionserver, logging to /home/stu/hbase-0.94.22/bin/../logs /hbase-stu-regionserver-master.out
- stu@master:~$ jps
- 1748 Jps
- 1418 HQuorumPeer
- 1587 HRegionServer
- 1482 HMaster
- stu@master:~$ hbase shell
- HBase Shell; enter 'help<RETURN>' for list of supported commands.
- Type "exit<RETURN>" to leave the HBase Shell
- Version 0.94.22, rb3b224ddca3530139c0685fd5c52e37368b428df, Fri Aug 1 20:11:17 UTC 2014
-
- hbase(main):001:0> list
- TABLE
-
- ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried 7 times
-
- Here is some help for this command:
- List all tables in hbase. Optional regular expression parameter could
- be used to filter the output. Examples:
-
- hbase> list
- hbase> list 'abc.*'
-
-
- hbase(main):002:0>
复制代码
我的理解错了吗?哪位朋友能解释一下,谢谢!
|