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条)

报告相同问题?

悬赏问题

  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库