Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HDP 2.6.5 Yarn could not start.Error: Could not find or load main class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager

Highlighted

HDP 2.6.5 Yarn could not start.Error: Could not find or load main class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager

New Contributor

1.install ambari 2.6.2.2 with hdp 2.6.5 on centos 7

2.install hdfs yarn components

3.try to start yarn


result:

failed to start yarn with error:

Error: Could not find or load main class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
Could not find or load main class org.apache.hadoop.yarn.server.applicationhistoryservice.ApplicationHistoryServer


expectation:

1.locate the reason of occuring this error.

2.solve this problem

1 REPLY 1

Re: HDP 2.6.5 Yarn could not start.Error: Could not find or load main class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager

New Contributor

In my case . the file "/etc/profile" has configed a variable "export HADOP_HOME=/opt/hadop" which is conflicted with HDP hadoop home variable


delete /etc/profile HADOP_HOME config will solve this issue