2013-02-06 9 views
5

Ich habe ein paar ebs-Dateisysteme auf ec2 erstellt, um sie mit hadoop zu verwenden. Ich habe JAVE_HOME in der Hadoop-Umgebung eingestellt. Aber wenn ich die erste Band zu formatieren Sie es mit der folgenden Meldung brichtHadoop: Format abgebrochen in/mnt/hdfs/1/namenode

[[email protected] conf]# sudo -u hdfs hadoop namenode -format 
13/02/06 15:33:22 INFO namenode.NameNode: STARTUP_MSG: 
/************************************************************ 
STARTUP_MSG: Starting NameNode 
STARTUP_MSG: host = hadoop-node01.mydomain.com/10.xx.xx.201 
STARTUP_MSG: args = [-format] 
STARTUP_MSG: version = 0.20.2-cdh3u5 
STARTUP_MSG: build = file:///data/1/tmp/topdir/BUILD/hadoop-0.20.2-cdh3u5 -r 30233064aaf5f2492bc687d61d72956876102109; compiled by 'root' on Fri Oct 5 18:45:46 PDT 2012 
************************************************************/ 
Re-format filesystem in /mnt/hdfs/1/namenode ? (Y or N) y 
Format aborted in /mnt/hdfs/1/namenode 
13/02/06 15:33:27 INFO namenode.NameNode: SHUTDOWN_MSG: 
/************************************************************ 
SHUTDOWN_MSG: Shutting down NameNode at hadoop-node01.mydomain.com/10.xx.xx.201 
************************************************************/ 

Das ist meine NameNode Konfiguration:

<?xml version="1.0"?> 
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?> 

<!-- Put site-specific property overrides in this file. --> 

<configuration> 
    <property> 
      <name>dfs.name.dir</name>   <value>/mnt/hdfs/1/namenode,/mnt/hdfs/2/namenode,/mnt/hdfs/3/namenode,/mnt/hdfs/4/namenode</value> 
    </property> 
    <property> 
    <name>dfs.data.dir</name> 
    <value>/mnt/hdfs/1/datanode,/mnt/hdfs/2/datanode,/mnt/hdfs/3/datanode,/mnt/hdfs/4/datanode</value> 
</property> 
</configuration> 

Hat jemand eine Ahnung, warum dieser Fehler passiert ist oder wie man um das Problem?

Antwort

14

Leider wird in 1.x die Eingabeaufforderung des Formatbefehls zwischen Groß- und Kleinschreibung unterschieden. Antworte stattdessen mit einem Großbuchstaben Y und es wird nicht abgebrochen.

+0

danke! Für mich geht das! –