我是hadoop的初学者,成功安装了hadoop和hbase。
在运行start-all.sh时,我得到的jps输出如下:
28673节点管理器
28084数据节点
27960名称节点
28348次要名称节点
29709日元
28543资源经理
在运行start-hbase.sh时,我得到的jps是:
30080日元
28673节点管理器
29249小时
28084数据节点
27960名称节点
28348次要名称节点
28543资源经理
运行hbase shell时:
hduser@akki-HP-Pavilion-15-Notebook-PC:~$ hbase shell
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/Hbase/hbase-
1.2.5/lib/slf4j-log4j12-
1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 1.2.5, rd7b05f79dee10e0ada614765bb354b93d615a157, Wed Mar 1
00:34:48 CST 2017
hbase(main):001:0>
当我给它一个命令列出所有的表时,它的输出显示为:
hbase(main):001:0>list
2017-03-31 12:38:40,973 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:41,082 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:41,285 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:41,591 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:42,094 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:43,099 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
2017-03-31 12:38:45,119 ERROR [main]
client.ConnectionManager$HConnectionImplementation: The node /hbase is
not in ZooKeeper. It should have been written by the master. Check the
value configured in 'zookeeper.znode.parent'. There could be a
mismatch with the one configured in the master.
ERROR: The node /hbase is not in ZooKeeper. It should have been
written by the master. Check the value configured in
'zookeeper.znode.parent'. There could be a mismatch with the one
configured in the master.
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> list 'ns:abc.*'
hbase> list 'ns:.*'
hbase(main):002:0>
我的hbase-site.xml是:
<configuration>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase:rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
</configuration>
暂无答案!
目前还没有任何答案,快来回答吧!