hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Praveen Sripati <praveensrip...@gmail.com>
Subject HDFS Federation Exception
Date Wed, 11 Jan 2012 06:53:18 GMT
Hi,

I am trying to setup a HDFS federation and getting the below error. Also,
pasted the core-site.xml and hdfs-site.xml at the bottom of the mail. Did I
miss something in the configuration files?

2012-01-11 12:12:15,759 ERROR namenode.NameNode (NameNode.java:main(803)) -
Exception in namenode join
java.lang.IllegalArgumentException: Can't parse port ''
        at
org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:198)
        at
org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:153)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:174)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:228)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.getAddress(NameNode.java:205)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.getRpcServerAddress(NameNode.java:266)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.loginAsNameNodeUser(NameNode.java:317)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:329)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:458)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:450)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:751)
        at
org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:799)

*core-site.xml*

<?xml version="1.0"?>
<configuration>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/home/praveensripati/tmp/hadoop-0.23.0/tmp</value>
    </property>
</configuration>

*hdfs-site.xml*

<?xml version="1.0"?>
<configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>dfs.permissions</name>
        <value>false</value>
    </property>
    <property>
        <name>dfs.federation.nameservices</name>
        <value>ns1</value>
    </property>
    <property>
        <name>dfs.namenode.rpc-address.ns1</name>
        <value>hdfs://praveen-laptop:9001</value>
      </property>
    <property>
        <name>dfs.namenode.http-address.ns1</name>
        <value>praveen-laptop:50071</value>
    </property>
    <property>
            <name>dfs.namenode.secondaryhttp-address.ns1</name>
        <value>praveen-laptop:50091</value>
    </property>
</configuration>

Regards,
Praveen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message