2013-10-18 54 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> 

这就是全部。