这个是我刚刚打出的关于resourceManager日志,说是没有找到FairFairScheduler类?

org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: registered UNIX signal handlers for [TERM, HUP, INT]
2015-11-27 23:34:42,862 INFO org.apache.hadoop.conf.Configuration: found resource core-site.xml at file:/home/hadoop/hadoop-2.6.0/etc/hadoop/core-site.xml
2015-11-27 23:34:43,253 INFO org.apache.hadoop.security.Groups: clearing userToGroupsMap cache
2015-11-27 23:34:43,540 INFO org.apache.hadoop.conf.Configuration: found resource yarn-site.xml at file:/home/hadoop/hadoop-2.6.0/etc/hadoop/yarn-site.xml
2015-11-27 23:34:44,154 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.RMFatalEventType for class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMFatalEventDispatcher
2015-11-27 23:34:44,760 INFO org.apache.hadoop.yarn.server.resourcemanager.security.NMTokenSecretManagerInRM: NMTokenKeyRollingInterval: 86400000ms and NMTokenKeyActivationDelay: 900000ms
2015-11-27 23:34:44,767 INFO org.apache.hadoop.yarn.server.resourcemanager.security.RMContainerTokenSecretManager: ContainerTokenKeyRollingInterval: 86400000ms and ContainerTokenKeyActivationDelay: 900000ms
2015-11-27 23:34:44,777 INFO org.apache.hadoop.yarn.server.resourcemanager.security.AMRMTokenSecretManager: AMRMTokenKeyRollingInterval: 86400000ms and AMRMTokenKeyActivationDelay: 900000 ms
2015-11-27 23:34:44,841 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStoreEventType for class org.apache.hadoop.yarn.server.resourcemanager.recovery.RMStateStore$ForwardingEventHandler
2015-11-27 23:34:44,879 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.NodesListManagerEventType for class org.apache.hadoop.yarn.server.resourcemanager.NodesListManager
2015-11-27 23:34:44,879 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Using Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

2015-11-27 23:34:44,880 INFO org.apache.hadoop.service.AbstractService: Service RMActiveServices failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not instantiate Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not instantiate Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:298)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:484)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:989)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:255)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1210)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:289)
... 6 more
2015-11-27 23:34:44,885 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: AsyncDispatcher is draining to stop, igonring any new events.
2015-11-27 23:34:44,885 INFO org.apache.hadoop.service.AbstractService: Service ResourceManager failed in state INITED; cause: org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not instantiate Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not instantiate Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:298)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:484)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:989)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:255)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1210)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:289)
... 6 more
2015-11-27 23:34:44,886 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioning to standby state
2015-11-27 23:34:44,886 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioned to standby state
2015-11-27 23:34:44,886 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: Could not instantiate Scheduler:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:298)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:484)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:989)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:255)
at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1210)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler

at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createScheduler(ResourceManager.java:289)
... 6 more
2015-11-27 23:34:44,899 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG

fish - Hadooper

赞同来自:

http://xxwenda.com/question/1070​ 已经回复过:yarn-site.xml中的yarn.resourcemanager.scheduler.class这个配置项,其中的value设置中是不是有什么空格空行之类的?

学无至境

赞同来自:

没有  

学无至境

赞同来自:

<configuration>  <property>    <description>The hostname of the RM.</description>    <name>yarn.resourcemanager.hostname</name>    <value>SY-001</value>  </property>  <property>      <description>The address of the application   manager interface in the RM      </description>      <name>yarn.resourcemanager.address</name>      <value>${yarn.resourcemanager.hostname}:8032</value>  </property>  <property>    <description>The address of the scheduler interface</description>    <name>yarn.resourcemanager.scheduler.address</name>    <value>${yarn.resourcemanager.hostname}:8030</value>  </property>  <property>      <description>The http address of the RM web application.      </description>      <name>yarn.resourcemanager.webapp.address</name>      <value>${yarn.resourcemanager.hostname}:8088</value>   </property>  <property>      <description>        The https address of the RM web application.       </description>      <name>yarn.resourcemanager.webapp.https.address</name>   <value>${yarn.resourcemanager.hostname}:8090</value>  </property>  <property>       <name>yarn.resourcemanager.resource-tracker.address</name>       <value>${yarn.resourcemanager.hostname}:8031</value>  </property>  <property>      <description>The address of the RM admin interface</description>      <name>yarn.resourcemanager.admin.address</name>      <value>${yarn.resourcemanager.hostname}:8033</value>  </property>  <property>      <description>The class to use as the resource scheduler      </description>      <name>yarn.resourcemanager.scheduler.class</name>      <value>org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FairScheduler</value>  </property>  <property>     <description>fair-scheduler conf location</description>     <name>yarn.scheduler.fair.allocation.file</name>     <value>${yarn.home.dir}/etc/hadoop/fairscheduler.xml</value>   </property> <property>     <description>List of directories to store localized files in.          An application's localized file directory will be found in:         ${yarn.nodemanager.local-dirs}/usercache/${user}         /appcache/application_${appid}.         Individual containers'work directories,         called container_${contid},will be subdirectories of this     </description>     <name>yarn.nodemanager.local-dirs</name>     <value>/home/hadoop/yarn/local</value> </property> <property>        <description>           Whether to enable log aggregation         </description>        <name>yarn.log-aggregation-enable</name>        <value>true</value> </property> <property>     <description>Where to aggregate logs to . </description>     <name>yarn.nodemanager.remote-app-log-dir</name>     <value>/tmp/logs</value>   </property> <property>        <description>          Amount of physical memory,in MB,          that can be allocated for containers .        </description>     <name>yarn.nodemanager.resource.memory-mb</name>     <value>30720</value> </property> <property>        <description>Number of CPU cores             that can be allocated for containers.        </description>        <name>yarn.nodemanager.resource.cpu-vcores</name>        <value>12</value> </property> <property>        <description>          the valid service name should only           contain a-zA-Z0-9_ and can not start with numbers        </description>        <name>yarn.nodemanager.aux-services</name>        <value>mapreduce_shuffle</value>  </property> </configuration>

学无至境

赞同来自:

我又看了两边还是没有找到

fish - Hadooper

赞同来自:

私信告诉我你的机器,登录密码,以及你使用的命令。

学无至境

赞同来自:

给你发过去了

fish - Hadooper

赞同来自:

没收到私信,发哪里了?

学无至境

赞同来自:

qq发给上个星期的老师了

fish - Hadooper

赞同来自:

你的fairscheduler.xml配置有问题: 第一行的<! xml version="1.0">格式不对,应该是<?xml version="1.0"?>。你修改之后再试试吧。   线索可以从/home/hadoop/hadoop-2.6.0/logs/yarn-root-resourcemanager-SY-001.out得到。 看log时千万不要着急,除了.log文件,.out文件也要检查下。

VyKingbesos

赞同来自:

楼主,我也是这个问题,你是怎么解决的呀可以分享一下吗?

要回复问题请先登录注册