在独立模式下启动Hbase时发生SLF4J错误
使用hbase目录中的./bin/start-hbase.sh启动hbase(在独立模式下)时,在独立模式下启动Hbase时发生SLF4J错误,hbase,Hbase,使用hbase目录中的./bin/start-hbase.sh启动hbase(在独立模式下)时, 我得到以下错误, saichanda@saichanda-OptiPlex-9020:/usr/local/hbase$ ./bin/start-hbase.sh starting master, logging to /usr/local/hbase/logs/hbase-saichanda-master-saichanda-OptiPlex-9020.out SLF4J: Class path
我得到以下错误,
saichanda@saichanda-OptiPlex-9020:/usr/local/hbase$ ./bin/start-hbase.sh
starting master, logging to /usr/local/hbase/logs/hbase-saichanda-master-saichanda-OptiPlex-9020.out
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/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.25.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]
Could not start ZK at requested port of 2181. ZK was started at port: 2182. Aborting as clients (e.g. shell) will not be able to find this ZK quorum.
如何解决此错误
我的hbase-site.xml文件如下所示:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:80/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>2181</value>
</property>
</configuration>
如何解决启动hbase时出现的错误???您在hbase-site.xml中给出了错误的配置
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>{absolute_directory_path}</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>
hbase.rootdir
hdfs://localhost:9000/hbase
hbase.zookeeper.property.dataDir
{绝对目录路径}
hbase.zookeeper.property.clientPort
2181
尝试使用这些值。什么是
{absolute directory path}
。它是我想要保存/存储zookeeper日志的地方吗?它是zk存储快照和日志的绝对目录路径。
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>{absolute_directory_path}</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
</configuration>