FantasticGirlisMe 2016-02-25 11:51 采纳率: 0%
浏览 3421
已采纳

萌妹子 求解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条回答 默认 最新

  • FantasticGirlisMe 2016-02-26 01: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
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 python摄像头画面无法显示
  • ¥15 关于#3d#的问题:d标定算法(语言-python)
  • ¥15 cve,cnnvd漏洞扫描工具推荐
  • ¥15 图像超分real-esrgan网络自己训练模型遇到问题
  • ¥15 如何构建全国统一的物流管理平台?
  • ¥100 ijkplayer使用AndroidStudio/CMake编译,如何支持 rtsp 直播流?
  • ¥15 用js遍历数据并对非空元素添加css样式
  • ¥15 使用autodl云训练,希望有直接运行的代码(关键词-数据集)
  • ¥50 python写segy数据出错
  • ¥20 关于线性结构的问题:希望能从头到尾完整地帮我改一下,困扰我很久了