Mina F
Mina F

Reputation: 67

Yarn not starting up

After I set up a 20 node Hadoop cluster on AWS, which to my knowledge is working, when I try to start up yarn with the code:

$HADOOP_HOME/sbin/start-yarn.sh

I get these errors:

resourcemanager running a process (process #). Stop it first

and

nodemanager running a process (process #). Stop it first

for each of the worker nodes.

my yarn-site.xml:

<configuration>
  <property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
  </property>
  <property>
    <name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name>
    <value>org.apache.hadoop.mapred.ShuffleHandler</value>
  </property>
  <property>
    <name>yarn.resourcemanager.hostname</name>
    <value>ec2-52-207-188-72.compute-1.amazonaws.com</value>
  </property>
</configuration>

is there a solution for this?

Upvotes: 1

Views: 3474

Answers (1)

Hadi Rahjoo
Hadi Rahjoo

Reputation: 185

First: call stop-all.sh

for stopping it and you could be sure by using "JPS" command then start it again:

all start-all.sh 

Type jps (if namenode don't appear type "hadoop namenode" and check error)

Upvotes: 1

Related Questions