You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by Vinodh Nagaraj <vi...@gmail.com> on 2016/03/11 06:53:52 UTC

Name node files are creating different directory

Hi,

I configured hadoop 2.7.1 on windows 7 (32 bit ) in C Drive.

I tried to format using "*hdfs namenode -forma*t',name node files are
created at *C:\tmp\hadoop-user\dfs\name*.but  the property "C:\name" in
hdfs-site.xml .

*hdfs namenode -format*

-10.219.149.100-1457674982841
16/03/11 11:13:03 INFO common.Storage: Storage directory
\tmp\hadoop-487174\dfs\name has been successfully formatted.

core-site.xml

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
</configuration>

hdfs-site.xml

<configuration>
<property>
<name>fs.namenode.name.dir</name>
<value>C:\name</value>
</property>

<property>
<name>fs.datanode.data.dir</name>
<value>C:\data</value>
</property>

</configuration>

what is wrong in that?Please help me.

Thanks & Regards,
Vinodh.N

RE: Name node files are creating different directory

Posted by Brahma Reddy Battula <br...@huawei.com>.
Hi vinodh

As properties are wrong, it is taken default properties..Correct like following..

fs.namenode.name.dir  should be like dfs.namenode.name.dir,
fs.datanode.data.dir  should be like dfs.datanode.data.dir


Reference:
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml

From: Vinodh Nagaraj [mailto:vinodh.dba.c@gmail.com]
Sent: 11 March 2016 13:54
To: user@hadoop.apache.org
Subject: Name node files are creating different directory

Hi,

I configured hadoop 2.7.1 on windows 7 (32 bit ) in C Drive.

I tried to format using "hdfs namenode -format',name node files are created at C:\tmp\hadoop-user\dfs\name.but  the property "C:\name" in hdfs-site.xml .

hdfs namenode -format

-10.219.149.100-1457674982841
16/03/11 11:13:03 INFO common.Storage: Storage directory \tmp\hadoop-487174\dfs\name has been successfully formatted.

core-site.xml

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
</configuration>

hdfs-site.xml

<configuration>
<property>
<name>fs.namenode.name.dir</name>
<value>C:\name</value>
</property>

<property>
<name>fs.datanode.data.dir</name>
<value>C:\data</value>
</property>

</configuration>

what is wrong in that?Please help me.

Thanks & Regards,
Vinodh.N

RE: Name node files are creating different directory

Posted by Brahma Reddy Battula <br...@huawei.com>.
Hi vinodh

As properties are wrong, it is taken default properties..Correct like following..

fs.namenode.name.dir  should be like dfs.namenode.name.dir,
fs.datanode.data.dir  should be like dfs.datanode.data.dir


Reference:
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml

From: Vinodh Nagaraj [mailto:vinodh.dba.c@gmail.com]
Sent: 11 March 2016 13:54
To: user@hadoop.apache.org
Subject: Name node files are creating different directory

Hi,

I configured hadoop 2.7.1 on windows 7 (32 bit ) in C Drive.

I tried to format using "hdfs namenode -format',name node files are created at C:\tmp\hadoop-user\dfs\name.but  the property "C:\name" in hdfs-site.xml .

hdfs namenode -format

-10.219.149.100-1457674982841
16/03/11 11:13:03 INFO common.Storage: Storage directory \tmp\hadoop-487174\dfs\name has been successfully formatted.

core-site.xml

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
</configuration>

hdfs-site.xml

<configuration>
<property>
<name>fs.namenode.name.dir</name>
<value>C:\name</value>
</property>

<property>
<name>fs.datanode.data.dir</name>
<value>C:\data</value>
</property>

</configuration>

what is wrong in that?Please help me.

Thanks & Regards,
Vinodh.N

RE: Name node files are creating different directory

Posted by Brahma Reddy Battula <br...@huawei.com>.
Hi vinodh

As properties are wrong, it is taken default properties..Correct like following..

fs.namenode.name.dir  should be like dfs.namenode.name.dir,
fs.datanode.data.dir  should be like dfs.datanode.data.dir


Reference:
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml

From: Vinodh Nagaraj [mailto:vinodh.dba.c@gmail.com]
Sent: 11 March 2016 13:54
To: user@hadoop.apache.org
Subject: Name node files are creating different directory

Hi,

I configured hadoop 2.7.1 on windows 7 (32 bit ) in C Drive.

I tried to format using "hdfs namenode -format',name node files are created at C:\tmp\hadoop-user\dfs\name.but  the property "C:\name" in hdfs-site.xml .

hdfs namenode -format

-10.219.149.100-1457674982841
16/03/11 11:13:03 INFO common.Storage: Storage directory \tmp\hadoop-487174\dfs\name has been successfully formatted.

core-site.xml

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
</configuration>

hdfs-site.xml

<configuration>
<property>
<name>fs.namenode.name.dir</name>
<value>C:\name</value>
</property>

<property>
<name>fs.datanode.data.dir</name>
<value>C:\data</value>
</property>

</configuration>

what is wrong in that?Please help me.

Thanks & Regards,
Vinodh.N

RE: Name node files are creating different directory

Posted by Brahma Reddy Battula <br...@huawei.com>.
Hi vinodh

As properties are wrong, it is taken default properties..Correct like following..

fs.namenode.name.dir  should be like dfs.namenode.name.dir,
fs.datanode.data.dir  should be like dfs.datanode.data.dir


Reference:
https://hadoop.apache.org/docs/r2.7.2/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml

From: Vinodh Nagaraj [mailto:vinodh.dba.c@gmail.com]
Sent: 11 March 2016 13:54
To: user@hadoop.apache.org
Subject: Name node files are creating different directory

Hi,

I configured hadoop 2.7.1 on windows 7 (32 bit ) in C Drive.

I tried to format using "hdfs namenode -format',name node files are created at C:\tmp\hadoop-user\dfs\name.but  the property "C:\name" in hdfs-site.xml .

hdfs namenode -format

-10.219.149.100-1457674982841
16/03/11 11:13:03 INFO common.Storage: Storage directory \tmp\hadoop-487174\dfs\name has been successfully formatted.

core-site.xml

<configuration>
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost/</value>
</property>
</configuration>

hdfs-site.xml

<configuration>
<property>
<name>fs.namenode.name.dir</name>
<value>C:\name</value>
</property>

<property>
<name>fs.datanode.data.dir</name>
<value>C:\data</value>
</property>

</configuration>

what is wrong in that?Please help me.

Thanks & Regards,
Vinodh.N