Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
MapReduce >> mail # user >> “hadoop namenode -format” formats wrong directory


+
Andrey V. Romanchev 2013-02-06, 15:07
+
Nitin Pawar 2013-02-06, 15:14
+
Andrey V. Romanchev 2013-02-06, 15:19
+
Samir Ahmic 2013-02-06, 15:19
+
Andrey V. Romanchev 2013-02-06, 15:25
+
Nitin Pawar 2013-02-06, 15:27
+
Andrey V. Romanchev 2013-02-06, 15:32
+
Samir Ahmic 2013-02-06, 15:43
+
Andrey V. Romanchev 2013-02-06, 16:11
Copy link to this message
-
Re: “hadoop namenode -format” formats wrong directory
Try running the command using "hadoop --config /etc/hadoop/conf" to make sure it is looking at the right conf dir.  

It would help to understand how you installed hadoop - local build/rpm, etc .. to figure out which config dir is being looked at by default.

-- Hitesh

On Feb 6, 2013, at 7:25 AM, Andrey V. Romanchev wrote:

> Hello Samir
> Yes. Here is full section from my hdfs-site.xml
>
>   <property>
>     <name>dfs.name.dir</name>
>     <value>/mnt/ext/hadoop/hdfs/namenode</value>
>     <description>
>         Determines where on the local filesystem the DFS name node
>         should store the name table.  If this is a comma-delimited list
>         of directories then the name table is replicated in all of the
>         directories, for redundancy.
>     </description>
>     <final>true</final>
>   </property>
>
>
> 2013/2/6 Samir Ahmic <[EMAIL PROTECTED]>
> Hi, Andrey
>
> Did you try <final>true</final> in your config ? It should be like this:
>
> <name>dfs.name.dir</name>
> <value>/mnt/ext/hadoop/hdfs/namenode</value>
> <final>true</final>
>
> Cheers
>
>
> On Wed, Feb 6, 2013 at 4:07 PM, Andrey V. Romanchev
> <[EMAIL PROTECTED]> wrote:
> >
> > Hello!
> >
> > I'm trying to install Hadoop 1.1.2.21 on CentOS 6.3.
> >
> > I've configured dfs.name.dir in /etc/hadoop/conf/hdfs-site.xml file
> >
> > <name>dfs.name.dir</name>
> > <value>/mnt/ext/hadoop/hdfs/namenode</value>
> >
> > But when I run "hadoop namenode -format" command, it formats /tmp/hadoop-hadoop/dfs/name directory instead. It seems like default directory.
> >
> > What am I missing?
>
+
Yanbo Liang 2013-02-06, 15:17
+
Andrey V. Romanchev 2013-02-06, 15:24
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB