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
但仍然报错!