程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> zkfc-萌妹子 求解hadoop集群搭建 ZKFC報錯

zkfc-萌妹子 求解hadoop集群搭建 ZKFC報錯

編輯:編程解疑
萌妹子 求解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
但仍然報錯!

最佳回答:


我先嘗試用**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
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved