Используя эту ссылку, попытался установить версию Hadoop - 2.2.0 (кластер с одним узлом) в Ubuntu 12.04 (64-разрядная машина)
http://bigdatahandler.com/hadoop-hdfs/installing-single-node-hadoop-2-2-0-on-ubuntu/
при форматировании файловой системы hdfs через namenode с помощью следующей команды
hadoop namenode -format
когда я это делаю, возникает следующая проблема,
08.14.07, 10:38:39 FATAL namenode.NameNode: исключение в namenode join java.lang.RuntimeException: org.xml.sax.SAXParseException; системный идентификатор: файл:/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>
hexdump
илиxxd
в файле). Это может сказать вам, есть ли что-то странное в конце XML, например, управляющий символ. - person Chris Nauroth   schedule 07.08.2014