Sae*_*and 6 hadoop hbase apache-zookeeper
我在两个 ubuntu 虚拟机上安装了一个 hadoop 多节点集群。
在下一步中,我尝试在此虚拟集群上安装 HBase。但是,当我使用 运行 HBase 时start-hbase.sh
,HMaster
虽然HRegionServer
在主从机器上已正确运行,但并未在主机器上运行。
hbase-env.sh
文件内容:
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export HBASE_OPTS="$HBASE_OPTS -XX:+UseConcMarkSweepGC"
export HBASE_MANAGES_ZK=false
Run Code Online (Sandbox Code Playgroud)
hbase-site.xml
文件内容:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://machine-a:54310/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/usr/local/zookeeper</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>machine-a</value>
</property>
</configuration>
Run Code Online (Sandbox Code Playgroud)
zoo.cfg
文件内容:
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/usr/local/zookeeper
clientPort=2181
Run Code Online (Sandbox Code Playgroud)
运行动物园管理员:
ZooKeeper JMX enabled by default
Using config: /usr/local/zookeeper 3.4.13/bin/../conf/zoo.cfg
Starting zookeeper ... /usr/local/zookeeper 3.4.13/bin/zkServer.sh: line 140: ./zookeeper.out: Permission denied
STARTED
Run Code Online (Sandbox Code Playgroud)
运行 HBase:
/usr/local/hadoop-3.1.2/libexec/hadoop-functions.sh: line 2358: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/usr/local/hadoop-3.1.2/libexec/hadoop-functions.sh: line 2453: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop-3.1.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hbase-2.1.2/lib/client-facing-thirdparty/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]
running master, logging to /usr/local/hbase-2.1.2/logs/hbase-saeed-master-machine-a.out
/usr/local/hadoop-3.1.2/libexec/hadoop-functions.sh: line 2358: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_USER: bad substitution
/usr/local/hadoop-3.1.2/libexec/hadoop-functions.sh: line 2453: HADOOP_ORG.APACHE.HADOOP.HBASE.UTIL.GETJAVAPROPERTY_OPTS: bad substitution
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop-3.1.2/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hbase-2.1.2/lib/client-facing-thirdparty/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]
saeed@machine-b: running regionserver, logging to /usr/local/hbase-2.1.2/bin/../logs/hbase-saeed-regionserver-machine-b.out
saeed@machine-a: running regionserver, logging to /usr/local/hbase-2.1.2/bin/../logs/hbase-saeed-regionserver-machine-a.out
Run Code Online (Sandbox Code Playgroud)
当我尝试启动 hbase 时,出现了类似的日志。当我查看主日志时可以看到以下内容:
2020-05-25 16:18:20,529 错误 [master/VB-hbase:16000:becomeActiveMaster] master.HMaster: ***** 正在中止 master vb-hbase,16000,1590403688901: 未处理的异常。开始关机。***** java.lang.IllegalStateException:过程 WAL 依赖于 hsync 的能力在组件故障期间进行正确操作,但底层文件系统不支持这样做。请检查“hbase.procedure.store.wal.use.hsyn c”的配置值以设置所需的稳健性级别,并确保“hbase.wal.dir”的配置值指向可以提供它的文件系统挂载。
然后我按照这里的步骤操作
显然,可能没有直接链接到我们在启动期间记录的无效变量而看到的错误,并且 master 没有出现,因为我仍然可以看到该错误,但到目前为止一切似乎都工作正常。
归档时间: |
|
查看次数: |
2299 次 |
最近记录: |