在linux 64位机器上安装hadoop-2.2.0时出现问题

时间:2014-08-07 05:23:42

标签: hadoop hadoop-streaming hadoop2 hadoop-plugins hadoop-partitioning

使用此链接,尝试在ubuntu 12.04(64位计算机)中安装Hadoop版本 - 2.2.0(单节点群集)

http://bigdatahandler.com/hadoop-hdfs/installing-single-node-hadoop-2-2-0-on-ubuntu/

使用以下命令通过namenode格式化hdfs文件系统

hadoop namenode -format

当我这样做时,得到以下问题,

14/08/07 10:38:39 FATAL namenode.NameNode:namenode join中的异常 java.lang.RuntimeException:org.xml.sax.SAXParseException; systemId:file:/usr/local/hadoop/etc/hadoop/mapred-site.xml; lineNumber:27; columnNumber:1;尾随部分不允许使用内容。

为了解决以下问题,我需要做些什么?

Mapred-site.xml中:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->

<!-- Put site-specific property overrides in this file. -->

<configuration>

<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>

</configuration>

1 个答案:

答案 0 :(得分:0)

14/08/07 10:38:39致命的namenode.NameNode:namenode中的异常join java.lang.RuntimeException:org.xml.sax.SAXParseException; systemId:file:/usr/local/hadoop/etc/hadoop/mapred-site.xml; lineNumber:27; columnNumber:1; 尾随部分中不允许使用内容

您可能忘记删除XML中的某些特性。请发布完整的XML。就像@Abhishek说的那样!