MapReduce job hangs, waiting for AM container to be allocated

前端 未结 9 1005
天涯浪人
天涯浪人 2020-12-15 07:00

I tried to run simple word count as MapReduce job. Everything works fine when run locally (all work done on Name Node). But, when I try to run it on a cluster using YARN (ad

9条回答
  •  忘掉有多难
    2020-12-15 07:30

    You have 512 MB RAM on each of the instance and all your memory configurations in yarn-site.xml and mapred-site.xml are 500 MB to 3 GB. You will not be able to run any thing on the cluster. Change every thing to ~256 MB.

    Also your mapred-site.xml is using framework to by yarn and you have job tracker address which is not correct. You need to have resource manager related parameters in yarn-site.xml on a multinode cluster (including resourcemanager web address). With out that, the cluster does not know where your cluster is.

    You need to revisit both your xml files.

提交回复
热议问题