我正在尝试创建一个新的DFSLocation,但我无法连接
以下是错误消息。请有人建议我。
“无法连接到Map / Reduce位置:localhost 在连接异常时调用localhost / 127.0.0.1:50020失败:java.net.ConnectException:连接被拒绝:没有进一步的信息“
答案 0 :(得分:-1)
朋友Rahul 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>
现在第二步:
$ 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>
这就是全部。