0

Cygwin で Hadoop の namenode を構成しようとしています。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 namenode -format

ただし、次のコマンドを試すと、以下に示す例外が発生します

bin\hadoop namenode

例外:

      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