我在ubuntu12.04LTS上安装了hadoop单节点(版本1.0.3)。问题是,每当我启动节点时,作业跟踪器状态仍然停滞为"INTIIALIZING“,在执行jps 5-6次之后,Datanode进程也会消失。我试图签出日志文件,并设法找到了以下错误:
INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310有时候一切都很好,而另一方面,有时datanode根本没有启动。有人能提出为什么会发生这样的不一致吗?
有关档案如下:
core-site.xml
<configuration>
<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://127.0.0.1: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.job.tracker</name>
<value>127.0.0.1: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>hdfs-site.xml
<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>
</configuration>发布于 2014-05-11 10:51:10
嗨,你能检查一下namenode是否正在运行,或者如果它没有运行,您需要运行一次。它需要在/app中创建dir,它需要权限。键入以下命令:
sudo mkdir /app
数独镇$USER /app
hadoop namenode -format
然后启动所有节点并在几分钟后进行检查。它将运行所有节点.
发布于 2014-05-27 08:19:59
您可以在:http://www.improgrammer.net/hbase-installation-ubuntu/上看到tuo试用
udo mkdir /app
数独镇$USER /app
hadoop namenode -format
https://stackoverflow.com/questions/23584392
复制相似问题