Home > other >  Hadoop core - site. When installation of XML configuration problems
Hadoop core - site. When installation of XML configuration problems

Time:12-15

Daniel please help:

New to Linux and hadoop. These days when installing hadoop core - site configuration. The XML file is not found the problem, but when formatting tips core - site. The XML configuration error, the following are the core - site. The XML configuration file:
<? The XML version="1.0" encoding="utf-8"?>
<? XML - stylesheet type="text/XSL" href="https://bbs.csdn.net/topics/configuration.xsl"?>
Licensed under the Apache License, Version 2.0 (the "License");
You may not use this file except in the 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 the 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.
- & gt;




Fs. DefaultFS
HDFS://chugx: 9000 & lt;/value>




Hadoop. TMP. Dir
File:/home/chugx/hadoop





The following is a compilation error prompt:

20/12/14 15:06:59 INFO the namenode. The namenode: registered UNIX signal handlers for [TERM, HUP, INT]
20/12/14 15:06:59 ERROR conf. Configuration: ERROR parsing the conf core - site. XML
Com. CTC. WSTX. Exc. WstxParsingException: Unexpected character combination '& lt;/'in prolog.
At [the row, col, system - id] : [19, 2, "file:/root/hadoop - 2.10.1/etc/hadoop/core - site. XML"]
At com. CTC. WSTX. Sr. StreamScanner. ConstructWfcException (StreamScanner. Java: 621)
At com. CTC. WSTX. Sr. StreamScanner. ThrowParseError (StreamScanner. Java: 491)
At com. CTC. WSTX. Sr. StreamScanner. ThrowParseError (StreamScanner. Java: 475)
At com. CTC. WSTX. Sr. BasicStreamReader. NextFromProlog (BasicStreamReader. Java: 2147)
At com. CTC. WSTX. Sr. BasicStreamReader. Next (BasicStreamReader. Java: 1181)
At org, apache hadoop. Conf. Configuration. The loadResource (2826) Configuration. Java:
At org, apache hadoop. Conf. Configuration. LoadResources (2755) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetProps (2635) Configuration. Java:
At org, apache hadoop. Conf. Configuration. The get (1097) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetTimeDuration (1704) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetTimeDuration (1685) Configuration. Java:
At org, apache hadoop. Util. ShutdownHookManager. GetShutdownTimeout (ShutdownHookManager. Java: 183)
At org, apache hadoop. Util. ShutdownHookManager $HookEntry. & lt; Init> (ShutdownHookManager. Java: 206)
At org, apache hadoop. Util. ShutdownHookManager. AddShutdownHook (ShutdownHookManager. Java: 302)
At org, apache hadoop. Util. StringUtils. StartupShutdownMessage (StringUtils. Java: 738)
At org, apache hadoop. Util. StringUtils. StartupShutdownMessage (StringUtils. Java: 722)
At org, apache hadoop. HDFS. Server. The namenode. The namenode. Main (1781). The namenode Java:
20/12/14 15:06:59 ERROR namenode. The namenode: Failed to start the namenode.
Java. Lang. RuntimeException: com. CTC. WSTX. Exc. WstxParsingException: Unexpected character combination '& lt;/'in prolog.
At [the row, col, system - id] : [19, 2, "file:/root/hadoop - 2.10.1/etc/hadoop/core - site. XML"]
At org, apache hadoop. Conf. Configuration. The loadResource (2994) Configuration. Java:
At org, apache hadoop. Conf. Configuration. LoadResources (2755) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetProps (2635) Configuration. Java:
At org, apache hadoop. Conf. Configuration. The get (1097) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetTimeDuration (1704) Configuration. Java:
At org, apache hadoop. Conf. Configuration. GetTimeDuration (1685) Configuration. Java:
At org, apache hadoop. Util. ShutdownHookManager. GetShutdownTimeout (ShutdownHookManager. Java: 183)
At org, apache hadoop. Util. ShutdownHookManager $HookEntry. & lt; Init> (ShutdownHookManager. Java: 206)
At org, apache hadoop. Util. ShutdownHookManager. AddShutdownHook (ShutdownHookManager. Java: 302)
At org, apache hadoop. Util. StringUtils. StartupShutdownMessage (StringUtils. Java: 738)
At org, apache hadoop. Util. StringUtils. StartupShutdownMessage (StringUtils. Java: 722)
At org, apache hadoop. HDFS. Server. The namenode. The namenode. Main (1781). The namenode Java:
Under Caused by: com. CTC. WSTX. Exc. WstxParsingException: Unexpected character combination '& lt;/'in prolog.
At [the row, col, system - id] : [19, 2, "file:/root/hadoop - 2.10.1/etc/hadoop/core - site. XML"]
At com. CTC. WSTX. Sr. StreamScanner. ConstructWfcException (StreamScanner. Java: 621)
At com. CTC. WSTX. Sr. StreamScanner. ThrowParseError (StreamScanner. Java: 491)
At com. CTC. WSTX. Sr. StreamScanner. ThrowParseError (StreamScanner. Java: 475)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related