hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adarsh Sharma <adarsh.sha...@orkash.com>
Subject Re: namenode -format does not read config file
Date Wed, 10 Nov 2010 06:45:22 GMT
Fabio A. Miranda wrote:
> Hello, given:
>
> fabio@nodo1:~/hadoop$ cat conf/hdfs-site.xml 
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
>
> <!-- Put site-specific property overrides in this file. -->
>
> <configuration>
>      <property>
>          <name>dfs.replication</name>
>          <value>2</value>
>      </property>
>   <property>
>     <name>dfs.data.dir</name>
>     <value>/HDFS</value>
>     <final>true</final>
>   </property>
> </configuration>
> fabio@nodo1:~/hadoop$ bin/hadoop namenode -format
> DEPRECATED: Use of this script to execute hdfs command is deprecated.
> Instead use the hdfs command for it.
>
> 10/11/10 00:37:31 INFO namenode.NameNode: STARTUP_MSG: 
> /************************************************************
> STARTUP_MSG: Starting NameNode
> STARTUP_MSG:   host = nodo1/192.168.1.11
> STARTUP_MSG:   args = [-format]
> STARTUP_MSG:   version = 0.21.0
> STARTUP_MSG:   classpath
> = /home/fabio/hadoop/bin/../conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/fabio/hadoop/bin/..:/home/fabio/hadoop/bin/../hadoop-common-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-common-test-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-hdfs-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-hdfs-0.21.0-sources.jar:/home/fabio/hadoop/bin/../hadoop-hdfs-ant-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-hdfs-test-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-hdfs-test-0.21.0-sources.jar:/home/fabio/hadoop/bin/../hadoop-mapred-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-mapred-0.21.0-sources.jar:/home/fabio/hadoop/bin/../hadoop-mapred-examples-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-mapred-test-0.21.0.jar:/home/fabio/hadoop/bin/../hadoop-mapred-tools-0.21.0.jar:/home/fabio/hadoop/bin/../lib/ant-1.6.5.jar:/home/fabio/hadoop/bin/../lib/asm-3.2.jar:/home/fabio/hadoop/bin/../lib/aspectjrt-1.6.5.jar:/home/fabio/hadoop/bin/../lib/aspectjtools-1.6.5.jar:/home/fabio/hadoop/bin/../lib/avro-1.3.2.jar:/home/fabio/hadoop/bin/../lib/commons-cli-1.2.jar:/home/fabio/hadoop/bin/../lib/commons-codec-1.4.jar:/home/fabio/hadoop/bin/../lib/commons-el-1.0.jar:/home/fabio/hadoop/bin/../lib/commons-httpclient-3.1.jar:/home/fabio/hadoop/bin/../lib/commons-lang-2.5.jar:/home/fabio/hadoop/bin/../lib/commons-logging-1.1.1.jar:/home/fabio/hadoop/bin/../lib/commons-logging-api-1.1.jar:/home/fabio/hadoop/bin/../lib/commons-net-1.4.1.jar:/home/fabio/hadoop/bin/../lib/core-3.1.1.jar:/home/fabio/hadoop/bin/../lib/ftplet-api-1.0.0.jar:/home/fabio/hadoop/bin/../lib/ftpserver-core-1.0.0.jar:/home/fabio/hadoop/bin/../lib/ftpserver-deprecated-1.0.0-M2.jar:/home/fabio/hadoop/bin/../lib/hsqldb-1.8.0.10.jar:/home/fabio/hadoop/bin/../lib/jackson-core-asl-1.4.2.jar:/home/fabio/hadoop/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/fabio/hadoop/bin/../lib/jasper-compiler-5.5.12.jar:/home/fabio/hadoop/bin/../lib/jasper-runtime-5.5.12.jar:/home/fabio/hadoop/bin/../lib/jdiff-1.0.9.jar:/home/fabio/hadoop/bin/../lib/jets3t-0.7.1.jar:/home/fabio/hadoop/bin/../lib/jetty-6.1.14.jar:/home/fabio/hadoop/bin/../lib/jetty-util-6.1.14.jar:/home/fabio/hadoop/bin/../lib/jsp-2.1-6.1.14.jar:/home/fabio/hadoop/bin/../lib/jsp-api-2.1-6.1.14.jar:/home/fabio/hadoop/bin/../lib/junit-4.8.1.jar:/home/fabio/hadoop/bin/../lib/kfs-0.3.jar:/home/fabio/hadoop/bin/../lib/log4j-1.2.15.jar:/home/fabio/hadoop/bin/../lib/mina-core-2.0.0-M5.jar:/home/fabio/hadoop/bin/../lib/mockito-all-1.8.2.jar:/home/fabio/hadoop/bin/../lib/oro-2.0.8.jar:/home/fabio/hadoop/bin/../lib/paranamer-2.2.jar:/home/fabio/hadoop/bin/../lib/paranamer-ant-2.2.jar:/home/fabio/hadoop/bin/../lib/paranamer-generator-2.2.jar:/home/fabio/hadoop/bin/../lib/qdox-1.10.1.jar:/home/fabio/hadoop/bin/../lib/servlet-api-2.5-6.1.14.jar:/home/fabio/hadoop/bin/../lib/slf4j-api-1.5.11.jar:/home/fabio/hadoop/bin/../lib/slf4j-log4j12-1.5.11.jar:/home/fabio/hadoop/bin/../lib/xmlenc-0.52.jar:/home/fabio/hadoop/bin/../lib/jsp-2.1/*.jar:/home/fabio/hadoop/hdfs/bin/../conf:/home/fabio/hadoop/hdfs/bin/../hadoop-hdfs-*.jar:/home/fabio/hadoop/hdfs/bin/../lib/*.jar:/home/fabio/hadoop/bin/../mapred/conf:/home/fabio/hadoop/bin/../mapred/hadoop-mapred-*.jar:/home/fabio/hadoop/bin/../mapred/lib/*.jar:/home/fabio/hadoop/hdfs/bin/../hadoop-hdfs-*.jar:/home/fabio/hadoop/hdfs/bin/../lib/*.jar
> STARTUP_MSG:   build =
> https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.21 -r
> 985326; compiled by 'tomwhite' on Tue Aug 17 01:02:28 EDT 2010
> ************************************************************/
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: defaultReplication = 2
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: maxReplication = 512
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: minReplication = 1
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: maxReplicationStreams = 2
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: shouldCheckForEnoughRacks
> = false
> 10/11/10 00:37:31 INFO security.Groups: Group mapping
> impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping;
> cacheTimeout=300000
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: fsOwner=fabio
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: supergroup=supergroup
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: isPermissionEnabled=true
> 10/11/10 00:37:31 INFO namenode.FSNamesystem: isAccessTokenEnabled=false
> accessKeyUpdateInterval=0 min(s), accessTokenLifetime=0 min(s)
> 10/11/10 00:37:32 INFO common.Storage: Image file of size 111 saved in 0
> seconds.
> 10/11/10 00:37:32 INFO common.Storage: Storage
> directory /tmp/hadoop-fabio/dfs/name has been successfully formatted.
> 10/11/10 00:37:32 INFO namenode.NameNode: SHUTDOWN_MSG: 
> /************************************************************
> SHUTDOWN_MSG: Shutting down NameNode at nodo1/192.168.1.11
> ************************************************************/
> fabio@nodo1:~/hadoop$ 
>
>
> Why namenode format does not read .xml configuration file and
> formats /tmp instead of /HDFS ?
>
> thanks for help!
>
> Dear Miranda
I think you have to set one more property for *dfs.name.dir* in 
*hdfs.site.xml *.
By default , it uses /tmp directory.

Thanks And Regards
Adarsh Sharma


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message