Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # dev >> HDFS Federation Exception


Copy link to this message
-
HDFS Federation Exception
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