[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-12 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Attachment: HDFS-7684.004.patch

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS-7684.003.patch, HDFS-7684.004.patch, 
 HDFS.7684.001.patch, HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-12 Thread Chris Nauroth (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Nauroth updated HDFS-7684:

Target Version/s: 2.7.0
Hadoop Flags: Reviewed

+1 for patch v004, pending Jenkins run.  Akira, thank you for the help with the 
code review.  Good catch on the assert.

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS-7684.003.patch, HDFS-7684.004.patch, 
 HDFS.7684.001.patch, HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-10 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Status: Patch Available  (was: In Progress)

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.5.1, 2.4.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS-7684.003.patch, HDFS.7684.001.patch, 
 HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-10 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Status: In Progress  (was: Patch Available)

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.5.1, 2.4.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS-7684.003.patch, HDFS.7684.001.patch, 
 HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-10 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Attachment: HDFS-7684.003.patch

Hopefully this really fixes the spaces issue. Sorry about missing that earlier


 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS-7684.003.patch, HDFS.7684.001.patch, 
 HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-06 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Status: Patch Available  (was: Open)

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.5.1, 2.4.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS.7684.001.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-06 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Attachment: HDFS.7684.002.patch

update :

1) Added Lic. to test code file
2) Fixed the Tabs side

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS.7684.001.patch, HDFS.7684.002.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-02-06 Thread Anu Engineer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anu Engineer updated HDFS-7684:
---
Attachment: HDFS.7684.001.patch

Trims the Configuration values before reading them in.

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu
Assignee: Anu Engineer
 Attachments: HDFS.7684.001.patch


 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-7684) The host:port settings of dfs.namenode.secondary.http-address should be trimmed before use

2015-01-27 Thread Tianyin Xu (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-7684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tianyin Xu updated HDFS-7684:
-
Summary: The host:port settings of dfs.namenode.secondary.http-address 
should be trimmed before use  (was: The Host:Port Settings of 
dfs.namenode.secondary.http-address should be trimmed before use)

 The host:port settings of dfs.namenode.secondary.http-address should be 
 trimmed before use
 --

 Key: HDFS-7684
 URL: https://issues.apache.org/jira/browse/HDFS-7684
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: namenode
Affects Versions: 2.4.1, 2.5.1
Reporter: Tianyin Xu

 With the following setting,
 property
 namedfs.namenode.secondary.http-address/name
 valuemyhostname:50090 /value
 /property
 The secondary NameNode could not be started
 $ hadoop-daemon.sh start secondarynamenode
 starting secondarynamenode, logging to 
 /home/hadoop/hadoop-2.4.1/logs/hadoop-hadoop-secondarynamenode-xxx.out
 /home/hadoop/hadoop-2.4.1/bin/hdfs
 Exception in thread main java.lang.IllegalArgumentException: Does not 
 contain a valid host:port authority: myhostname:50090
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:163)
   at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:152)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.getHttpAddress(SecondaryNameNode.java:203)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:214)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.init(SecondaryNameNode.java:192)
   at 
 org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:651)
 We were really confused and misled by the log message: we thought about the 
 DNS problems (changed to IP address but no success) and the network problem 
 (tried to test the connections with no success...)
 It turned out to be that the setting is not trimmed and the additional space 
 character in the end of the setting caused the problem... OMG!!!...
 Searching on the Internet, we find we are really not alone.  So many users 
 encountered similar trim problems! The following lists a few:
 http://solaimurugan.blogspot.com/2013/10/hadoop-multi-node-cluster-configuration.html
 http://stackoverflow.com/questions/11263664/error-while-starting-the-hadoop-using-strat-all-sh
 https://issues.apache.org/jira/browse/HDFS-2799
 https://issues.apache.org/jira/browse/HBASE-6973



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)