MapReduce job hangs, waiting for AM container to be allocated

前端 未结 9 1000
天涯浪人
天涯浪人 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:32

    Old question, but I got on the same issue recently and in my case it was due to manually setting the master to local in the code.

    Please, search for conf.setMaster("local[*]") and remove it.

    Hope it helps.

提交回复
热议问题