Hadoop 2.3.0 over windows 2008 r2 x64 about nodemanager

馋奶兔 提交于 2020-02-04 05:01:50

问题


everybody, Recently I used Cygwin64, Maven, JDK1.7x64 and hadoop 2.3.0 Src to build package on Windows 2008 r2 x64,and it build success. Finally I set all parameters of hdfs-site.xml,yarn-site.xml,core-site.xml and mapred-site.xml.

I go forward to format namenode and excute start-dfs.cmd,the namenode and datanode all work fine. But when I excute start-yarn.cmd to start resourcemanager and nodemanager,only the resourcemanager works fine. The nodemanager cmd window shows "The System cannot find the specific batch label - nodemanager"...

Please give me any possible suggestion.


回答1:


I replaced LF with CRLF in yarn.cmd in %HADOOP_HOME%\bin using and it worked for me (didn't even have to change to ANSI encoding).

Easiest way for me was to use Search->Replace (Ctrl+H) in Notepad++, set the search mode to extended, and replace \n with \r\n.




回答2:


Open the yarn.cmd file from %HADOOP_HOME%\bin and save the file with ANSI encoding and also change line endings to windows (CR+LF) from unix (LF) using Notepad2. Then run the below command:

%HADOOP_HOME%\sbin\start-yarn.cmd

It worked fine for me after changing the file encoding.




回答3:


Just rename Nodemanager to NodeManager.




回答4:


Copied from comment by @tanza9

In Notepad++, you can go to Edit -> EOL Conversion -> Windows Format, then save the file and try again.



来源:https://stackoverflow.com/questions/22161686/hadoop-2-3-0-over-windows-2008-r2-x64-about-nodemanager

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!