hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Kelpe (JIRA) <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12530) Error when trying to format HDFS by running hdfs namenode -format
Date Fri, 30 Oct 2015 12:19:27 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14982471#comment-14982471
] 

André Kelpe commented on HADOOP-12530:
--------------------------------------

This is not a bug. You are not closing the configuration element correctly. the last line
must be </configuration>

> Error when trying to format HDFS by running hdfs namenode -format
> -----------------------------------------------------------------
>
>                 Key: HADOOP-12530
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12530
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>         Environment: mac
>            Reporter: Nadia
>
> I receive following errors when running $ hdfs namenode -format
> 15/10/30 12:34:18 INFO namenode.NameNode: registered UNIX signal handlers for [TERM,
HUP, INT]
> 15/10/30 12:34:18 INFO namenode.NameNode: createNameNode [-format]
> [Fatal Error] core-site.xml:31:1: XML document structures must start and end within the
same entity.
> 15/10/30 12:34:19 FATAL conf.Configuration: error parsing conf core-site.xml
> org.xml.sax.SAXParseException; systemId: file:/usr/local/Cellar/hadoop/2.7.1/libexec/etc/hadoop/core-site.xml;
lineNumber: 31; columnNumber: 1; XML document structures must start and end within the same
entity.
> core-site.xml looks like this: 
>  <?xml version="1.0" encoding="UTF-8"?>
> <?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>hadoop.tmp.dir</name>
>      <value>/usr/local/Cellar/hadoop/hdfs/tmp</value>
>      <description>A base for other temporary directories.</description>
>   </property>
>   <property>
>      <name>fs.default.name</name>                                     
>      <value>hdfs://localhost:9000</value>                             
>   </property>        
>   <configuration>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message