Error while deploying YARN cluster

bin/yarn-session.sh -n 2 -s 6 -jm 700 -tm 256 -nm test -d
我在搭建环境的时候,执行上面这个脚本,包下面这个错误,哪位大神遇到过。墙翻不出去,度娘有不给力。
Error while deploying YARN cluster: Couldn't deploy Yarn session cluster
java.lang.RuntimeException: Couldn't deploy Yarn session cluster
Exit code: 31


下面是,nodemanager节点的日志
2018-03-02 15:16:31,272 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl: Starting resource-monitoring for container_1519974497448_0002_01_000001
2018-03-02 15:16:31,292 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl: Memory usage of ProcessTree 21448 for container-id container_1519974497448_0002_01_000001: 126.2 MB of 1 GB physical memory used; 2.2 GB of 2.1 GB virtual memory used
2018-03-02 15:16:31,572 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: Exit code from container container_1519974497448_0002_01_000001 is : 31
2018-03-02 15:16:31,572 WARN org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor: Exception from container-launch with container ID: container_1519974497448_0002_01_000001 and exit code: 31
ExitCodeException exitCode=31:
    at org.apache.hadoop.util.Shell.runCommand(Shell.java:575)
    at org.apache.hadoop.util.Shell.run(Shell.java:478)
    at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:766)
    at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)
    at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

小象老师

赞同来自:

2.2 GB of 2.1 GB virtual memory used   这是虚拟内存超了被nm 干了吧

wangxiaolei

赞同来自:

bin/yarn-session.sh -n 2 -s 6 -jm 1024 -tm 700 -nm test -d 现在可以了。

孤单旦旦

赞同来自:

你的jdk版本或者jdk环境变量有问题吧。。。

要回复问题请先登录注册