You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@hadoop.apache.org by Alessandro Binhara <bi...@gmail.com> on 2011/03/25 21:11:28 UTC
NameNode is not formatted.
Helo ... all...
I chance in hdfs-site.xml data dir , like this :
<property>
<name>dfs.name.dir</name>
<value>/var/hadoop/</value>
</property>
<property>
<name>dfs.data.dir</name>
<value>/var/hadoop/</value>
</property>
i try format a hdfs with
su -s /bin/bash - hdfs -c 'hadoop namenode -format'
wel.. it ask if i would like RE Format a hdfs :
-->>> Re-format filesystem in /var/hadoop ? (Y or N)
I sad YES... but not happing .
I see a permission dir on /var/hadoop
drwxrwxrwx 2 root root 4096 2011-03-25 20:05 hadoop
Then a try run a name-node and i receive a message :
java.io.IOException: NameNode is not formatted.
Whats happen ???
thanks
Re: NameNode is not formatted.
Posted by Nichole Treadway <kn...@gmail.com>.
Try changing dfs.data.dir value to "/var/hadoop/dfs/data" and dfs.name.dir
to "/var/hadoop/dfs/name". Create this /var/hadoop/dfs directory with the
appropriate permissions. Re-format again and see if that helps.
On Fri, Mar 25, 2011 at 4:11 PM, Alessandro Binhara <bi...@gmail.com>wrote:
> Helo ... all...
>
>
> I chance in hdfs-site.xml data dir , like this :
>
> <property>
> <name>dfs.name.dir</name>
> <value>/var/hadoop/</value>
> </property>
>
> <property>
> <name>dfs.data.dir</name>
> <value>/var/hadoop/</value>
> </property>
>
> i try format a hdfs with
> su -s /bin/bash - hdfs -c 'hadoop namenode -format'
>
> wel.. it ask if i would like RE Format a hdfs :
> -->>> Re-format filesystem in /var/hadoop ? (Y or N)
>
> I sad YES... but not happing .
> I see a permission dir on /var/hadoop
> drwxrwxrwx 2 root root 4096 2011-03-25 20:05 hadoop
>
> Then a try run a name-node and i receive a message :
>
> java.io.IOException: NameNode is not formatted.
>
>
> Whats happen ???
>
> thanks
>