hadoopapache配置:错误连接被拒绝

icnyk63a  于 2021-06-02  发布在  Hadoop
关注(0)|答案(0)|浏览(192)

我试图在Windows7上使用cygwin在一个名为master和slave to localhost的节点上配置hadoop
我的配置文件如下:

hdf-site
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/bazargan/hadoop-1.2.1/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>dfs.data.dir</name>
<value>/home/bazargan/data</value>
<description>Comma separated list of paths on the local filesystem of a
DataNode where it should store its blocks. </description>
</property>
<property>
<name>dfs.name.dir</name>
<value>/home/bazargan/name</value> 
</property>

<property>
<name>dfs.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>

<property>
<name>dfs.replication</name>
<value>3</value>
<description>Default block replication.
The actual number of replications can be specified when the file is created.
The default is used if replication is not specified in create time.
</description>
</property>

</configuration>

core-site.xml文件

<configuration>

<property>
<name>hadoop.tmp.dir</name>
<value>/home/bazargan/hadoop-1.2.1/hdfs-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>

</configuration>

mapred-site.xml文件

<configuration>
<property>
<name>mapred.local.dir</name>
<value>/home/bazargan/hadoop-1.2.1/mapred-tmp</value>
<description>Comma-separated list of paths on the local
filesystem where temporary Map/Reduce data is written.</description>
</property>
<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>
</configuration>

当我尝试访问localhost:50070 it 工作得很好,但当我想访问localhost:50030 i 出现连接被拒绝错误。
我真的不知道是什么导致了错误(在日志文件中我也没有看到任何错误,例如下面是我的datanode日志。。
ulimit-a用于用户mahdi核心文件大小(块,-c)无限数据段大小(KB,-d)无限文件大小(块,-f)无限打开文件(-n)256管道大小(512字节,-p)8堆栈大小(KB,-s)2032 cpu时间(秒,-t)无限最大用户进程(-u)256虚拟内存(KB,-v)无限
我还关闭了防火墙。如果有人能帮我,我真的很感激。
谢谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题