我是Hadoop的begnner并成功安装了hadoop和hbase。
在运行start-all.sh时,我将jps输出为:
在运行start-hbase.sh时,我得到jps为:
当我运行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>