我无法在hadoop fs -ls/command的HDFS中查看文件,我认为这是因为名称节点没有运行。我尝试过格式化namenode以及将core-site.xml中的端口更改为其他值。即使我的JPS没有列出NameNode。NameNode不以伪分布模式启动
以下是在文件: 1)芯的site.xml
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hduser/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:50000</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>
2)HDFS-site.sml
<configuration>
<property>
<name>dfs.replication</name>
<value>1</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>
<property>
<name>dfs.name.dir</name>
<value>/home/hduser/hadoop-1.2.1/data</value>
</property>
</configuration>
3)mapred-site.xml中
<configuration>
<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>
JPS输出为:
21043的JobTracker
21147的TaskTracker
21789个JPS
20839的DataNode
20957 SecondaryNameNode
谁能帮助?
我卸载,然后重新安装Hadoop的,现在一切工作正常 – Neethu 2014-09-18 23:27:20