搭建HA的时候,zkfc初始化报错,有没有大佬知道怎么办 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
HA搭建 zkfc启动不起来原因及解决办法
1.问题描述:HA<em>搭建</em>过程中,执行sbin/<em>ha</em>doop-daemon.sh   start  <em>zkfc</em> 后,jps看不到DFSZKFailoverController进程。两个namenode都是standby状态。 2.原因分析:查看日志。发现是hdfs-site.xml配置文件错误。如下:   property>   dfs.<em>ha</em>.fencing.methods    sshf
hadoop-2.7.1配置HA时zkfc启动不了
其他节点都能启动,<em>zkfc</em>不能正常启动,应该怎么解决,求大神们来帮忙解决rn错误日志:rn[code=text]rn2015-09-07 00:59:23,896 WARN org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Transport-level exception trying to monitor health of NameNode at ubuntu1/192.168.253.129:8020: java.net.ConnectException: Connection refused Call From ubuntu1/192.168.253.129 to ubuntu1:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/<em>ha</em>doop/ConnectionRefusedrn2015-09-07 00:59:25,900 INFO org.apache.<em>ha</em>doop.ipc.Client: Retrying connect to server: ubuntu1/192.168.253.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)rn2015-09-07 00:59:25,901 WARN org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Transport-level exception trying to monitor health of NameNode at ubuntu1/192.168.253.129:8020: java.net.ConnectException: Connection refused Call From ubuntu1/192.168.253.129 to ubuntu1:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/<em>ha</em>doop/ConnectionRefusedrn2015-09-07 00:59:27,906 INFO org.apache.<em>ha</em>doop.ipc.Client: Retrying connect to server: ubuntu1/192.168.253.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)rn2015-09-07 00:59:27,907 WARN org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Transport-level exception trying to monitor health of NameNode at ubuntu1/192.168.253.129:8020: java.net.ConnectException: Connection refused Call From ubuntu1/192.168.253.129 to ubuntu1:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/<em>ha</em>doop/ConnectionRefusedrn2015-09-07 00:59:29,912 INFO org.apache.<em>ha</em>doop.ipc.Client: Retrying connect to server: ubuntu1/192.168.253.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)rn2015-09-07 00:59:29,914 WARN org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Transport-level exception trying to monitor health of NameNode at ubuntu1/192.168.253.129:8020: java.net.ConnectException: Connection refused Call From ubuntu1/192.168.253.129 to ubuntu1:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/<em>ha</em>doop/ConnectionRefusedrn2015-09-07 00:59:31,918 INFO org.apache.<em>ha</em>doop.ipc.Client: Retrying connect to server: ubuntu1/192.168.253.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)rn2015-09-07 00:59:31,919 WARN org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Transport-level exception trying to monitor health of NameNode at ubuntu1/192.168.253.129:8020: java.net.ConnectException: Connection refused Call From ubuntu1/192.168.253.129 to ubuntu1:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/<em>ha</em>doop/ConnectionRefusedrn2015-09-07 00:59:33,925 INFO org.apache.<em>ha</em>doop.ipc.Client: Retrying connect to server: ubuntu1/192.168.253.129:8020. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=1, sleepTime=1000 MILLISECONDS)rn2015-09-07 00:59:35,188 INFO org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Entering state SERVICE_HEALTHYrn2015-09-07 00:59:35,188 INFO org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController: Local service NameNode at ubuntu1/192.168.253.129:8020 entered state: SERVICE_HEALTHYrn2015-09-07 00:59:35,196 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=ubuntu1:2181,ubuntu2:2181,ubuntu3:2181 sessionTimeout=5000 watcher=org.apache.<em>ha</em>doop.<em>ha</em>.ActiveStandbyElector$WatcherWithClientRef@1f3f6ffrn2015-09-07 00:59:35,196 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server ubuntu3/192.168.253.131:2181. Will not attempt to authenticate using SASL (unknown error)rn2015-09-07 00:59:35,197 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to ubuntu3/192.168.253.131:2181, initiating sessionrn2015-09-07 00:59:35,667 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server ubuntu3/192.168.253.131:2181, sessionid = 0x34fa6cfae140000, negotiated timeout = 5000rn2015-09-07 00:59:35,673 INFO org.apache.<em>ha</em>doop.<em>ha</em>.ActiveStandbyElector: Session connected.rn2015-09-07 00:59:36,067 FATAL org.apache.<em>ha</em>doop.<em>ha</em>.ActiveStandbyElector: Received create error from Zookeeper. code:NONODE for path /<em>ha</em>doop-<em>ha</em>/mycluster/ActiveStandbyElectorLockrn2015-09-07 00:59:36,121 INFO org.apache.zookeeper.ZooKeeper: Session: 0x34fa6cfae140000 closedrn2015-09-07 00:59:36,121 FATAL org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController: Fatal error occurred:Received create error from Zookeeper. code:NONODE for path /<em>ha</em>doop-<em>ha</em>/mycluster/ActiveStandbyElectorLockrn2015-09-07 00:59:36,122 INFO org.apache.<em>ha</em>doop.ipc.Server: Stopping server on 8019rn2015-09-07 00:59:36,122 INFO org.apache.<em>ha</em>doop.ipc.Server: Stopping IPC Server listener on 8019rn2015-09-07 00:59:36,123 INFO org.apache.<em>ha</em>doop.ipc.Server: Stopping IPC Server Responderrn2015-09-07 00:59:36,124 INFO org.apache.<em>ha</em>doop.<em>ha</em>.ActiveStandbyElector: Yielding from electionrn2015-09-07 00:59:36,124 INFO org.apache.<em>ha</em>doop.<em>ha</em>.HealthMonitor: Stopping HealthMonitor threadrn2015-09-07 00:59:36,124 FATAL org.apache.<em>ha</em>doop.hdfs.tools.DFSZKFailoverController: Got a fatal error, exiting nowrnjava.lang.RuntimeException: ZK Failover Controller failed: Received create error from Zookeeper. code:NONODE for path /<em>ha</em>doop-<em>ha</em>/mycluster/ActiveStandbyElectorLockrn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController.mainLoop(ZKFailoverController.java:369)rn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController.doRun(ZKFailoverController.java:238)rn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController.access$000(ZKFailoverController.java:61)rn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController$1.run(ZKFailoverController.java:172)rn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController$1.run(ZKFailoverController.java:168)rn at org.apache.<em>ha</em>doop.security.SecurityUtil.doAsLoginUserOrFatal(SecurityUtil.java:415)rn at org.apache.<em>ha</em>doop.<em>ha</em>.ZKFailoverController.run(ZKFailoverController.java:168)rn at org.apache.<em>ha</em>doop.hdfs.tools.DFSZKFailoverController.main(DFSZKFailoverController.java:181)rn2015-09-07 00:59:36,127 INFO org.apache.zookeeper.ClientCnxn: EventThread shut downrn[/code]
HA搭建
HA<em>搭建</em> 早期的<em>ha</em>doop版本,NN是HDFS集群的单点故障点,每一个集群只有一个NN,如果这个机器或进程不可用,整个集群就无法使用。 为了解决这个问题,出现了一堆针对HDFS HA的解决方案(如:Linux HA, VMware FT, s<em>ha</em>red NAS+NFS, BookKeeper, QJM/Quorum Journal Manager, BackupNode等); 在HA具体实现方法...
bmob的初始化时候报错,怎么搞???
java.lang.UnsatisfiedLinkError: No implementation found for boolean cn.bmob.v3.helper.BmobNative.init(android.content.Context, java.lang.String) (tried Java_cn_bmob_v3_helper_BmobNative_init and Java_cn_bmob_v3_helper_BmobNative_init__Landroid_content_Context_2Ljava_lang_String_2)rn at cn.bmob.v3.helper.BmobNative.init(Native Method)rn at cn.bmob.v3.BmobWrapper.(BmobWrapper.java:48)rn at cn.bmob.v3.BmobWrapper.V(BmobWrapper.java:35)rn at cn.bmob.v3.BmobWrapper.Code(BmobWrapper.java:28)rn at cn.bmob.v3.Bmob.initialize(Bmob.java:47)rn at com.panda.flashlight.MainActivity.onCreate(MainActivity.java:14)rn at android.app.Activity.performCreate(Activity.java:5983)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2299)rn at android.app.ActivityThread.<em>ha</em>ndleLaunchActivity(ActivityThread.java:2408)rn at android.app.ActivityThread.access$800(ActivityThread.java:144)rn at android.app.ActivityThread$H.<em>ha</em>ndleMessage(ActivityThread.java:1321)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:135)rn at android.app.ActivityThread.main(ActivityThread.java:5277)rn at java.lang.reflect.Method.invoke(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:372)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:919)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)
急,窗口初始化时候报错!!!!
<em>报错</em>地点:rnrnPrivate Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Initrn 'CODEGEN: 此方法调用是 Web 窗体设计器所必需的rn '不要使用代码编辑器修改它。rnrn InitializeComponent() '!!!!!!!!这里出错!!!!!!!rnrn End Subrnrnrnrn错误信息:rnrn“/aa”应用程序中的服务器错误。 rn-------------------------------------------------------------------------------- rn rn指定的转换无效。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rn rn异常详细信息: System.InvalidCastException: 指定的转换无效。 rn rn源错误: rn rn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rn rn堆栈跟踪: rn rn rn[InvalidCastException: 指定的转换无效。] rnSystem.Web.UI.WebControls.ListControl.LoadViewState(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Control.LoadViewStateRecursive(Object savedState) rnSystem.Web.UI.Page.LoadPageViewState() rnSystem.Web.UI.Page.ProcessRequestMain() rn rn rn rn rn-------------------------------------------------------------------------------- rn版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0 rn rn rn rn这到底是怎么回事??? rnrn!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!rn触发错误的行为:rnrn页面上有一个Datagrid ,它的数据源是在内存中自定义的一个DataTable,一旦这个DataTable中的行数大于等于3时绑定到Datagrid上,能正常显示(显示3条记录),但是再执行任何页面提交就会触发这个错误。rnrnrn请各位高人帮忙解答!谢谢!
有没有大佬知道hashcode和identityhanshcode的区别啊?
这两个在内存中有什么区别?rnString s=new String();与rnString s="";有什么不同
有没有大佬知道怎么做统计人数的啊
能不能将查找出来的人数进行输出啊,就是查找出多少个人,在输出他们信息的同时再输出查找的人人数nn谢谢<em>大佬</em>[face]monkey:11.gif[/face][img=https://img-bbs.csdn.net/upload/201906/09/1560073886_882556.jpg][/img]
Curl make的时候报错,求大佬指点迷津
因为默认的curl不支持https协议,我编译安装完openssl之后显示已支持https了,但是在重新make curl时出现<em>报错</em>。n求<em>大佬</em>指点迷津。nn```ncurl版本:7.57nopenssl版本:1.1.0gnubuntu版本:14.04.2 LTS n```nn详细<em>报错</em>信息如下:n```nroot@iZwz9akk7iswd53zv5vrzeZ:~/curl-7.57.0# makenMaking all in libnmake[1]: Entering directory `/root/curl-7.57.0/lib'nmake all-amnmake[2]: Entering directory `/root/curl-7.57.0/lib'nmake[2]: Leaving directory `/root/curl-7.57.0/lib'nmake[1]: Leaving directory `/root/curl-7.57.0/lib'nMaking all in srcnmake[1]: Entering directory `/root/curl-7.57.0/src'nMaking all in ../docsnmake[2]: Entering directory `/root/curl-7.57.0/docs'nMaking all in .nmake[3]: Entering directory `/root/curl-7.57.0/docs'nmake[3]: Nothing to be done for `all-am'.nmake[3]: Leaving directory `/root/curl-7.57.0/docs'nMaking all in cmdline-optsnmake[3]: Entering directory `/root/curl-7.57.0/docs/cmdline-opts'nmake[3]: Nothing to be done for `all'.nmake[3]: Leaving directory `/root/curl-7.57.0/docs/cmdline-opts'nmake[2]: Leaving directory `/root/curl-7.57.0/docs'nmake[2]: Entering directory `/root/curl-7.57.0/src'n CCLD curln../lib/.libs/libcurl.so: undefined reference to `SSLv23_client_method'n../lib/.libs/libcurl.so: undefined reference to `CONF_modules_free'n../lib/.libs/libcurl.so: undefined reference to `ERR_free_strings'n../lib/.libs/libcurl.so: undefined reference to `sk_value'n../lib/.libs/libcurl.so: undefined reference to `SSL_library_init'n../lib/.libs/libcurl.so: undefined reference to `sk_pop_free'n../lib/.libs/libcurl.so: undefined reference to `SSLeay'n../lib/.libs/libcurl.so: undefined reference to `SSLv3_client_method'n../lib/.libs/libcurl.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'n../lib/.libs/libcurl.so: undefined reference to `SSL_COMP_free_compression_methods'n../lib/.libs/libcurl.so: undefined reference to `EVP_cleanup'n../lib/.libs/libcurl.so: undefined reference to `sk_num'n../lib/.libs/libcurl.so: undefined reference to `sk_pop'n../lib/.libs/libcurl.so: undefined reference to `SSL_load_error_strings'ncollect2: error: ld returned 1 exit statusnmake[2]: *** [curl] Error 1nmake[2]: Leaving directory `/root/curl-7.57.0/src'nmake[1]: *** [all-recursive] Error 1nmake[1]: Leaving directory `/root/curl-7.57.0/src'nmake: *** [all-recursive] Error 1nn```nn![error](https://img-ask.csdn.net/upload/201801/18/1516246775_986852.png)nn
ZKFC工作原理
rn 本课程为大数据金融信贷项目实战课,着重讲解企业中常用的大数据技术理论与实战,如Hadoop、Hive、HBase、Sqoop、Flume、Kafka、Spark Streaming、Spark SQL、Spark Structured Streaming等。课程包含离线项目和实时项目,从项目业务需求、技术选型、架构设计、集群安装部署、集成开发以及项目可视化进行全方位实战讲解。 rnrnrn rn rn
HA集群初始化
在信息飞涨的时代,每一个成功的企业后面都有着大量的用户数据分析,所以大数据成为了开发行业的宠儿,掌握大数据也成为了软件从业人员的技能。官方QQ群:612148723。
萌妹子 求解hadoop集群搭建 ZKFC报错
hdfs <em>zkfc</em> -formatZK执行后:nWARNING: Before proceeding, ensure t<em>ha</em>t all HDFS services andnfailover controllers are stopped!n===============================================nProceed formatting /<em>ha</em>doop-<em>ha</em>/mycluster? (Y or N) 16/02/26 01:18:56 INFO <em>ha</em>.ActiveStandbyElector: Session connected.nyn16/02/26 01:19:12 INFO <em>ha</em>.ActiveStandbyElector: Recursively deleting /<em>ha</em>doop-<em>ha</em>/mycluster from ZK...n16/02/26 01:19:12 INFO <em>ha</em>.ActiveStandbyElector: Successfully deleted /<em>ha</em>doop-<em>ha</em>/mycluster from ZK.n16/02/26 01:19:12 INFO <em>ha</em>.ActiveStandbyElector: Successfully created /<em>ha</em>doop-<em>ha</em>/mycluster in ZK.n16/02/26 01:19:12 INFO