2013-10-18 52 views
0

我想創建一個新的DFSLocation但我便無法能夠連接的Hadoop無法連接到的Map/Reduce位置:本地主機

下面是錯誤消息。請有人建議我。

「無法連接到的Map/Reduce位置:本地主機 呼叫到localhost/127.0.0.1:50020失敗的連接異常:java.net.ConnectException:連接被拒絕:沒有進一步的信息」

+0

問題已解決: 刪除日蝕中的地圖/減少位置。 關閉地圖/減少從日食中的右上角。 刪除創建的tmp文件夾 – Shreyuth

+0

在單獨的cygwin命令提示符中爲namenaoe,secondarynamenode,jobtracker,datanode和tasktracker 運行命令。然後在eclipse中創建新的Map/Reduce Location。 – Shreyuth

回答

-1

喜的朋友拉胡爾Tyagi在這裏,我遇到了同樣的問題。

$ vim /usr/local/hadoop/etc/hadoop/core-site.xml

打開端子並粘貼給定的地址。屬性文件夾將打開,然後添加:

<property> 
    <name>hadoop.tmp.dir</name> 
    <value>/app/hadoop/tmp</value> 
    <description>A base for other temporary directories.</description> 
</property> 

<property> 
    <name>fs.default.name</name> 
    <value>hdfs://localhost:54310</value> 
    <description> 
     The name of the default file system. A URI whose 
     scheme and authority determine the FileSystem implementation. 
     The uri's scheme determines the config property (fs.SCHEME.impl) 
     naming the FileSystem implementation class. The uri's 
     authority is used to determine the host, port, etc. 
     for a filesystem. 
    </description> 
</property> 

現在第2步:

$ vim /usr/local/hadoop/etc/hadoop/mapred-site.xml

<property> 
    <name>mapred.job.tracker</name> 
    <value>localhost:54311</value> 
    <description>The host and port that the MapReduce job tracker runs 
      at. If "local", then jobs are run in-process as a single map 
      and reduce task. 
    </description> 
</property> 

這就是全部。