hadoop cygwin安装正常,format无报错,但无法启动namenode?

解落三秋叶 发布于 2015/06/19 14:35
阅读 420
收藏 0

各位大侠,本人是初学者,在win7 32 上装了cygwin,下载了hadoop2.7,也修改了几个xml文件,但运行start-all.sh之后,未能成功启动namenode,显示如下:

$ ./start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
15/06/19 13:04:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
]tarting namenodes on [localhost
: Name or service not knownstname localhost
localhost: datanode running as process 10440. Stop it first.
]tarting secondary namenodes [activate.adobe.com
: Name or service not knownstname activate.adobe.com
15/06/19 13:05:05 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
starting yarn daemons
resourcemanager running as process 11112. Stop it first.
localhost: nodemanager running as process 11152. Stop it first.

 

另外,我的cygwin etc/hosts 里面localhost被注释掉了,没注释的是一堆adobe东东,不知是否有关?但是我无法修改hosts文件,cygwin里面不让改,到windows目录下找到这个文件是二进制的

# localhost name resolution is handled within DNS itself.
#       127.0.0.1       localhost
#       ::1             localhost






# ▒▒▒▒Adobe▒▒▒▒▒▒▒▒▒▒▒
0.0.0.0 activate.adobe.com
0.0.0.0 practivate.adobe.com
0.0.0.0 ereg.adobe.com
0.0.0.0 activate.wip3.adobe.com
0.0.0.0 wip3.adobe.com
0.0.0.0 3dns-3.adobe.com
0.0.0.0 3dns-2.adobe.com
0.0.0.0 adobe-dns.adobe.com
0.0.0.0 adobe-dns-2.adobe.com
0.0.0.0 adobe-dns-3.adobe.com
0.0.0.0 ereg.wip3.adobe.com
0.0.0.0 activate-sea.adobe.com
0.0.0.0 wwis-dubc1-vip60.adobe.com
0.0.0.0 activate-sjc0.adobe.com

 


不知道为什么,请教!感谢!

我修改的配置文件如下:

mapred-site.xml:

<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
</property>
<property>
<name>mapred.child.tmp</name>
<value>/home/lenovo/hadoop/tmp</value>
</property>
</configuration>

core-site.xml:

<configuration>
  <property>
    <name>fs.default.name</name>
    <value>hdfs://localhost:9000</value>
  </property> 
  <property>
    <name>mapred.child.tmp</name>
    <value>/home/lenovo/hadoop/tmp</value>
  </property>
</configuration>

 

hdfs-site.xml:

<configuration>
  <property>
  <name>dfs.replication</name>
  <value>1</value>
</property>
</configuration>


 

加载中
返回顶部
顶部