2

このリンクを使用して、Hadoop バージョン - 2.2.0 (単一ノード クラスター) を ubuntu 12.04 (64 ビット マシン) にインストールしようとしました

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 結合の例外 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>
4

1 に答える 1

0

14/08/07 10:38:39 FATAL namenode.NameNode: namenode 結合の例外 java.lang.RuntimeException: org.xml.sax.SAXParseException; systemId: ファイル:/usr/local/hadoop/etc/hadoop/mapred-site.xml; 行番号: 27; 列番号: 1; 末尾のセクションにコンテンツを含めることはできません

おそらく、XML 内の一部の文字を消去し忘れている可能性があります。完全な XML を投稿してください。@Abhishekが言ったように!

于 2014-08-07T18:09:35.557 に答える