我试图在我的Windows 7上使用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>
芯-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时,它运行正常,但是当我想访问localhost:50030时,我收到连接拒绝错误。
我真的不知道导致错误的原因(在日志文件中我也没有看到任何错误,例如下面是我的datanode日志..
用户Mahdi的ulimit -a 核心文件大小(块,-c)无限制 数据seg大小(kbytes,-d)无限制 文件大小(块,-f)无限制 打开文件(-n)256 管道大小(512字节,-p)8 堆栈大小(kbytes,-s)2032 cpu时间(秒,-t)无限制 最大用户进程(-u)256 虚拟内存(kbytes,-v)无限
我也关闭了我的防火墙。 如果有人能帮助我,我真的很感激。
感谢。