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.

Yarn components are not starting..in Hadoop 3.0.3 cluster setup

Highlighted

Yarn components are not starting..in Hadoop 3.0.3 cluster setup

New Contributor

I have setup Hadoop(3.0.3) cluster Pseudo distributed mode,

when I ran start-dfs.sh it is starting namenode,datanodes,secondary namenodes but when I ran start-yarn.sh it is showing warnings.The below one is the screenshot

110399-screenshot-from-2019-08-15-10-41-34.png

3 REPLIES 3

Re: Yarn components are not starting..in Hadoop 3.0.3 cluster setup

Super Mentor

@vinith_alampall 

Can you please check if all the environment variables are setup properly?

One best way to quickly find out if anything is goig wrong or not is to run the Shell Script "start-yarn.sh" in DEBUG mode using "sh -x" option as following:   This will give us better ideal if it is failing somewhere :

Example: Running script in DEBUG mode

 

# sh -x ./start-yarn.sh 

 

 

Can you please share the whole output fo the above command? 
Also do you see any log is generated for the failure? Like any out/log file if yes then can you please share those logs as well?

Re: Yarn components are not starting..in Hadoop 3.0.3 cluster setup

New Contributor

@jsensharma  sir,

I ran the command you mentioned it is giving below error

sh: 0: Can't open ./start-yarn.sh

below is the screenshot

Screenshot from 2019-08-19 16-05-10.png

Re: Yarn components are not starting..in Hadoop 3.0.3 cluster setup

Super Mentor

@vinith_alampall 

As you are getting this error:

sh: 0: Can't open ./start-yarn.sh

 

Hence you should check couple of things:

 

1. Is this file existing in the current directory?

# cd /PATH/TO
# ls -lart  /PATH/TO/start-yarn.sh

2. What is the permission on the file? Can the current user read/execute it?

# chmod  a+x  /PATH/TO/start-yarn.sh

# which sh
# sh -x /PATH/TO/start-yarn.sh

 

Please replace the '/PATH/TO" with the actual path of the mentioned script.


.

 

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here