hadoop-2.7.3+zookeeper-3.4.8+hbase-1.2.2 HA 两个ResourceManager无法启动(急)

弄了两天了,配以双resourceManager,前面的journalnode ,格式化,ZK,都启动正常, 如nn主节点正常启动的进程:
[luhadoop@master hadoop-2.7.3]$ jps
5460 Jps
3476 NameNode
4891 DFSZKFailoverController
  从 nn
[luhadoop@sbmaster hadoop]$ jps
3377 DFSZKFailoverController
2949 NameNode
3724 Jps
DN:
[luhadoop@slave2 hadoop-2.7.3]$ jps
3876 DataNode
3781 JournalNode
4758 Jps
3273 QuorumPeerMain
但是在主节点命令:$ sbin/start-yarn.sh   没有任何反应,查年日志报错,但是我看不懂这日志说的是什么意思?
nticate using SASL (unknown error)
2017-04-25 23:50:29,954 INFO org.apache.zookeeper.ClientCnxn: Socket connection established to slave2/192.168.1.32:2181, initiating session
2017-04-25 23:50:29,972 INFO org.apache.zookeeper.ClientCnxn: Session establishment complete on server slave2/192.168.1.32:2181, sessionid = 0x15ba57eedb40002, negotiated timeout = 10000
2017-04-25 23:50:29,976 INFO org.apache.hadoop.ha.ActiveStandbyElector: Session connected.
2017-04-25 23:50:30,015 INFO org.apache.hadoop.ha.ActiveStandbyElector: Successfully created /yarn-leader-election/yrc in ZK.
2017-04-25 23:50:30,022 INFO org.apache.hadoop.yarn.server.resourcemanager.metrics.SystemMetricsPublisher: YARN system metrics publishing service is not enabled
2017-04-25 23:50:30,022 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioning to standby state
2017-04-25 23:50:30,022 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioned to standby state
2017-04-25 23:50:30,053 INFO org.apache.hadoop.service.AbstractService: Service ResourceManager failed in state STARTED; cause: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.yarn.client.RMFailoverProxyProvider.<init>()
java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.yarn.client.RMFailoverProxyProvider.<init>()
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:134)
        at org.apache.hadoop.yarn.client.RMProxy.createRMFailoverProxyProvider(RMProxy.java:160)
        at org.apache.hadoop.yarn.client.RMProxy.createRMProxy(RMProxy.java:93)
        at org.apache.hadoop.yarn.client.ClientRMProxy.createRMProxy(ClientRMProxy.java:72)
        at org.apache.hadoop.yarn.server.webproxy.AppReportFetcher.<init>(AppReportFetcher.java:64)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:941)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1052)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1186)
Caused by: java.lang.NoSuchMethodException: org.apache.hadoop.yarn.client.RMFailoverProxyProvider.<init>()
        at java.lang.Class.getConstructor0(Class.java:3082)
        at java.lang.Class.getDeclaredConstructor(Class.java:2178)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:128)
        ... 8 more
2017-04-25 23:50:30,058 INFO org.apache.hadoop.ha.ActiveStandbyElector: Yielding from election
2017-04-25 23:50:30,068 INFO org.apache.zookeeper.ZooKeeper: Session: 0x15ba57eedb40002 closed
2017-04-25 23:50:30,068 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Already in standby state
2017-04-25 23:50:30,068 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
java.lang.RuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.yarn.client.RMFailoverProxyProvider.<init>()
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:134)
        at org.apache.hadoop.yarn.client.RMProxy.createRMFailoverProxyProvider(RMProxy.java:160)
        at org.apache.hadoop.yarn.client.RMProxy.createRMProxy(RMProxy.java:93)
        at org.apache.hadoop.yarn.client.ClientRMProxy.createRMProxy(ClientRMProxy.java:72)
        at org.apache.hadoop.yarn.server.webproxy.AppReportFetcher.<init>(AppReportFetcher.java:64)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.startWepApp(ResourceManager.java:941)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceStart(ResourceManager.java:1052)
        at org.apache.hadoop.service.AbstractService.start(AbstractService.java:193)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1186)
Caused by: java.lang.NoSuchMethodException: org.apache.hadoop.yarn.client.RMFailoverProxyProvider.<init>()
        at java.lang.Class.getConstructor0(Class.java:3082)
        at java.lang.Class.getDeclaredConstructor(Class.java:2178)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:128)
        ... 8 more
2017-04-25 23:50:30,070 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down
2017-04-25 23:50:30,093 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG: 
/************************************************************
SHUTDOWN_MSG: Shutting down ResourceManager at master/192.168.1.30
************************************************************/
我的yarn-site.xml配置如下
<configuration>

<!-- Site specific YARN configuration properties -->
<property>
        <name>yarn.resourcemanager.ha.enabled</name>
        <value>true</value>
</property>
<!-- 指定RM的名字 -->
<property>
        <name>yarn.resourcemanager.ha.rm-ids</name>
        <value>rm1,rm2</value>
</property>
<!-- 分别指定RM的地址 -->
<property>
        <name>yarn.resourcemanager.hostname.rm1</name>
        <value>master</value>
</property>
<property>
        <name>yarn.resourcemanager.hostname.rm2</name>
        <value>sbmaster</value>
</property>
<property>
        <name>yarn.resourcemanager.recovery.enabled</name>
        <value>true</value>
</property>
<property>
        <name>yarn.resourcemanager.store.class</name>
        <value>org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore</value>
</property>
<!-- 指定zk集群地址 -->
<property>
        <name>yarn.resourcemanager.zk-address</name>
        <value>slave2:2181,slave3:2181,slave4:2181</value>
        <description>For multiple zk services, separate them with comma</description>
</property>
<!-- 指定RM的cluster id -->
<property>
        <name>yarn.resourcemanager.cluster-id</name>
        <value>yrc</value>
</property>
<property>
        <name>yarn.resourcemanager.ha.automatic-failover.enabled</name>
        <value>true</value>
        <description>Enable automatic failover; By default, it is enabled only when HA is enabled.</description>
</property>
<property>
  <name>yarn.resourcemanager.ha.automatic-failover.zk-base-path</name>
  <value>/yarn-leader-election</value>
<description>Optional setting. The default value is /yarn-leader-election</description>
</property>
<property>
        <name>yarn.client.failover-proxy-provider</name>
        <value>org.apache.hadoop.yarn.client.RMFailoverProxyProvider</value>
</property>
<property>
   <name>yarn.resourcemanager.address.rm1</name>
     <value>master:8132</value>
</property>
<property>
     <name>yarn.resourcemanager.address.rm2</name>
     <value>sbmaster:8132</value>
</property>
<property>
      <name>yarn.resourcemanager.scheduler.address.rm1</name>
      <value>master:8130</value>
</property>
<property>
       <name>yarn.resourcemanager.scheduler.address.rm2</name>
       <value>sbmaster:8130</value>
</property>
<property>
       <name>yarn.resourcemanager.resource-tracker.address.rm1</name>
       <value>master:8131</value>
</property>
<property>
       <name>yarn.resourcemanager.resource-tracker.address.rm2</name>
       <value>sbmaster:8131</value>
</property>
<property>
       <name>yarn.resourcemanager.webapp.address.rm1</name>
       <value>master:8188</value>
</property>
<property>
        <name>yarn.resourcemanager.webapp.address.rm2</name>
        <value>sbmaster:8188</value>
</property>
<property>
                        <name>yarn.nodemanager.aux-services</name>
                        <value>mapreduce_shuffle</value>
</property>

</configuration>
麻烦各位大哥指教下,这个问题很急。谢谢

Dong - Hulu

赞同来自:

删除yarn-site.xml中的以下配置,重启yarn: <property>         <name>yarn.client.failover-proxy-provider</name>         <value>org.apache.hadoop.yarn.client.RMFailoverProxyProvider</value> </property>  

要回复问题请先登录注册