NodeManager not started in Hadoop Yarn -
i have setup hadoop , yarn in standalone mode now. trying start process in yarn. process started except nodemanager. throwing jvm error everytime.
[root@ip-10-100-223-16 hadoop-0.23.7]# sbin/yarn-daemon.sh start nodemanager starting nodemanager, logging /root/hadoop-0.23.7/logs/yarn-root-nodemanager-ip-10-100-223-16.out unrecognized option: -jvm error: not create java virtual machine. error: fatal exception has occurred. program exit.
what can issue? appreciated.
following link has patch above issue : https://issues.apache.org/jira/browse/mapreduce-3879
in bin/yarn script, need comment following lines. here :
'-' : shows removal of lines
'+' : shows addition of lines
elif [ "$command" = "nodemanager" ] ; classpath=${classpath}:$yarn_conf_dir/nm-config/log4j.properties class='org.apache.hadoop.yarn.server.nodemanager.nodemanager' - if [[ $euid -eq 0 ]]; - yarn_opts="$yarn_opts -jvm server $yarn_nodemanager_opts" - else - yarn_opts="$yarn_opts -server $yarn_nodemanager_opts" - fi + yarn_opts="$yarn_opts -server $yarn_nodemanager_opts" elif [ "$command" = "proxyserver" ] ; class='org.apache.hadoop.yarn.server.webproxy.webappproxyserver' yarn_opts="$yarn_opts $yarn_proxyserver_opts"
above patch available on this location.
courtesy lorandbendig helping me .