0

我正在尝试在 Cygwin 中为 Hadoop 配置名称节点。我正在使用 Windows 7 机器。

这是我的配置文件的设置方式:

1)mapred-site.xml

  <?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>

2) 核心站点.xml

 <?xml version="1.0"?>
 <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

 <!-- Put site-specific property overrides in this file. -->

 <configuration>
<property> 
<name>fs.default.name</name>
 <value>hdfs://localhost:4440</value>
 </property>  
 </configuration>

3) hdfs-site.xml

 <?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>

该命令工作正常

bin\hadoop 名称节点-格式

但是,当我尝试以下命令时,出现以下异常

bin\hadoop 名称节点

例外:

      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

编辑:我已经按照这个教程

我需要启动 namenode 进程,因为这会启动 Hadoop 服务器,然后我可以尝试在其上运行 Hive。但是,上面的异常是没有成功启动namenode进程。

4

0 回答 0