使用此链接,尝试在 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 致命的 namenode.NameNode:namenode 中的异常加入 java.lang.RuntimeException:org.xml.sax.SAXParseException;systemId:文件:/usr/local/hadoop/etc/hadoop/mapred-site.xml;行号:27;列号: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>