Windows 无法在cygwin中启动Hadoop的namenode
我正在尝试在Cygwin中为Hadoop配置namenode。我使用的是Windows7机器 以下是如何设置我的配置文件: 1) mapred-site.xmlWindows 无法在cygwin中启动Hadoop的namenode,windows,hadoop,cygwin,Windows,Hadoop,Cygwin,我正在尝试在Cygwin中为Hadoop配置namenode。我使用的是Windows7机器 以下是如何设置我的配置文件: 1) mapred-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. -->
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:4441</value>
</property>
</configuration>
如何解决这个问题
主机文件
!<symlink>ÿþC \Windows\System 32\Drivers\etc\hosts
!ÿþC\Windows\System 32\Drivers\etc\hosts
编辑:我遵循了这一点
我需要启动namenode进程,因为这将启动Hadoop服务器,然后我可以尝试在其上运行Hive。但是,上述异常无法成功启动namenode进程。请将您的NN日志文件与主机文件一起显示给我好吗?这是我的日志文件-->和hosts.list文件是hosts.list文件是@Tariq:这是您需要查看的日志文件吗?主机文件正确吗?很抱歉响应太晚。他正忙于其他事情。日志文件正确,但这不是主机文件。看起来像是你的奴隶档案。hosts文件应该在/etc目录中。@Tariq:检查我的问题。。我已经添加了主机文件
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
13/09/22 19:11:06 ERROR namenode.NameNode: java.io.IOException: Incomplete HDFS
URI, no host: hdfs://localhost127.0.0.1:4440 at
org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:96)
!<symlink>ÿþC \Windows\System 32\Drivers\etc\hosts