You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ping Luo <lu...@yahoo.com> on 2013/11/04 20:55:04 UTC

Hadoop 2.2.0: hdfs configuration

I am trying to setup Hadoop 2.2.0 in cluster mode. I modified the hdfs-site.xml file in $HADOOP_HOME/etc/hadoop as below:



  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/home/hadoop/hdfs/namenode/</value>
  </property>
  <property>
    <name>dfs.namenode.hosts</name>
    <value>localhost</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/home/hadoop/hdfs/datanode/</value>
  </property>


 I then tried to format the namenode with 
      hdfs namenode -format
It was trying to format filesystem in Storage Directory /tmp/hadoop-hadoop/dfs/name

Can anyone tell me why the command did read the configuration I provided?

Another question is where are the default configuration files? 

Luo

Re: Hadoop 2.2.0: hdfs configuration

Posted by Ping Luo <lu...@yahoo.com>.

I provided the config directory explicitly and now it works

hdfs --config etc/hadoop namenode -format


________________________________
 From: Ping Luo <lu...@yahoo.com>
To: "user@hadoop.apache.org" <us...@hadoop.apache.org> 
Sent: Monday, November 4, 2013 1:55 PM
Subject: Hadoop 2.2.0: hdfs configuration
 


I am trying to setup Hadoop 2.2.0 in cluster mode. I modified the hdfs-site.xml file in $HADOOP_HOME/etc/hadoop as below:



  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/home/hadoop/hdfs/namenode/</value>
  </property>
  <property>
    <name>dfs.namenode.hosts</name>
    <value>localhost</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/home/hadoop/hdfs/datanode/</value>
  </property>


 I then tried to format the namenode with 
      hdfs namenode -format
It was trying to format filesystem in Storage Directory /tmp/hadoop-hadoop/dfs/name

Can anyone tell me why the command did read the configuration I provided?

Another question is where are the default configuration files? 

Luo

Re: Hadoop 2.2.0: hdfs configuration

Posted by Ping Luo <lu...@yahoo.com>.

I provided the config directory explicitly and now it works

hdfs --config etc/hadoop namenode -format


________________________________
 From: Ping Luo <lu...@yahoo.com>
To: "user@hadoop.apache.org" <us...@hadoop.apache.org> 
Sent: Monday, November 4, 2013 1:55 PM
Subject: Hadoop 2.2.0: hdfs configuration
 


I am trying to setup Hadoop 2.2.0 in cluster mode. I modified the hdfs-site.xml file in $HADOOP_HOME/etc/hadoop as below:



  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/home/hadoop/hdfs/namenode/</value>
  </property>
  <property>
    <name>dfs.namenode.hosts</name>
    <value>localhost</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/home/hadoop/hdfs/datanode/</value>
  </property>


 I then tried to format the namenode with 
      hdfs namenode -format
It was trying to format filesystem in Storage Directory /tmp/hadoop-hadoop/dfs/name

Can anyone tell me why the command did read the configuration I provided?

Another question is where are the default configuration files? 

Luo

Re: Hadoop 2.2.0: hdfs configuration

Posted by Ping Luo <lu...@yahoo.com>.

I provided the config directory explicitly and now it works

hdfs --config etc/hadoop namenode -format


________________________________
 From: Ping Luo <lu...@yahoo.com>
To: "user@hadoop.apache.org" <us...@hadoop.apache.org> 
Sent: Monday, November 4, 2013 1:55 PM
Subject: Hadoop 2.2.0: hdfs configuration
 


I am trying to setup Hadoop 2.2.0 in cluster mode. I modified the hdfs-site.xml file in $HADOOP_HOME/etc/hadoop as below:



  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/home/hadoop/hdfs/namenode/</value>
  </property>
  <property>
    <name>dfs.namenode.hosts</name>
    <value>localhost</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/home/hadoop/hdfs/datanode/</value>
  </property>


 I then tried to format the namenode with 
      hdfs namenode -format
It was trying to format filesystem in Storage Directory /tmp/hadoop-hadoop/dfs/name

Can anyone tell me why the command did read the configuration I provided?

Another question is where are the default configuration files? 

Luo

Re: Hadoop 2.2.0: hdfs configuration

Posted by Ping Luo <lu...@yahoo.com>.

I provided the config directory explicitly and now it works

hdfs --config etc/hadoop namenode -format


________________________________
 From: Ping Luo <lu...@yahoo.com>
To: "user@hadoop.apache.org" <us...@hadoop.apache.org> 
Sent: Monday, November 4, 2013 1:55 PM
Subject: Hadoop 2.2.0: hdfs configuration
 


I am trying to setup Hadoop 2.2.0 in cluster mode. I modified the hdfs-site.xml file in $HADOOP_HOME/etc/hadoop as below:



  <property>
    <name>dfs.namenode.name.dir</name>
    <value>/home/hadoop/hdfs/namenode/</value>
  </property>
  <property>
    <name>dfs.namenode.hosts</name>
    <value>localhost</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>/home/hadoop/hdfs/datanode/</value>
  </property>


 I then tried to format the namenode with 
      hdfs namenode -format
It was trying to format filesystem in Storage Directory /tmp/hadoop-hadoop/dfs/name

Can anyone tell me why the command did read the configuration I provided?

Another question is where are the default configuration files? 

Luo