2 fascinatinggirl fascinatingGirl 于 2016.02.25 19:51 提问

萌妹子 求解hadoop集群搭建 ZKFC报错

hdfs zkfc -formatZK执行后:
WARNING: Before proceeding, ensure that all HDFS services and

failover controllers are stopped!

Proceed formatting /hadoop-ha/mycluster? (Y or N) 16/02/26 01:18:56 INFO ha.ActiveStandbyElector: Session connected.
y
16/02/26 01:19:12 INFO ha.ActiveStandbyElector: Recursively deleting /hadoop-ha/mycluster from ZK...
16/02/26 01:19:12 INFO ha.ActiveStandbyElector: Successfully deleted /hadoop-ha/mycluster from ZK.
16/02/26 01:19:12 INFO ha.ActiveStandbyElector: Successfully created /hadoop-ha/mycluster in ZK.
16/02/26 01:19:12 INFO zookeeper.ClientCnxn: EventThread shut down
16/02/26 01:19:12 INFO zookeeper.ZooKeeper: Session: 0x153196bc9790000 closed
结果ZKFC还是没起来,然后我尝试:
[root@h1 ~]# hadoop-daemon.sh start DFSZKFailoverController
.........
Error: Could not find or load main class DFSZKFailoverController
但仍然报错!

4个回答

fascinatingGirl
fascinatingGirl   2016.02.26 09:26
已采纳

我先尝试用**hadoop-daemon.sh start DFSZKFailoverController**

然后报错:Error: Could not find or load main class DFSZKFailoverController

又试了:**hadoop-daemon.sh start zkfc**
提示:

```starting zkfc, logging to /usr/local/hadoop-2.6.0/logs/hadoop-root-zkfc-h1.out
Java HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop-2.6.0/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.

然后:

[root@h1 ~]# hadoop-daemon.sh start zkfc -z noexecstack

zkfc running as process 2556. Stop it first.

[root@h1 ~]# jps

2556 DFSZKFailoverController

2171 NameNode

2636 Jps
qsjh898
qsjh898   2016.02.25 20:02

你这也装得太假了点吧

fascinatingGirl
fascinatingGirl 自学阶段,多多包涵
接近 2 年之前 回复
enpterexpress
enpterexpress   2016.02.25 20:13

哥只喜欢御姐

wangyaninglm
wangyaninglm   Ds   Rxr 2016.02.25 20:52


参考一下上面这个配置看看行不行

fascinatingGirl
fascinatingGirl 谢谢,这是一篇不错的文章
接近 2 年之前 回复
wangyaninglm
wangyaninglm http://www.tuicool.com/articles/e6nAzqV
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!