On Nov 29, 2012, at 4:59 AM, a...@hsk.hk wrote:

> Hi
> 
> Since NN and SNN are used in the same server:
> 
> 1) If i use the default "dfs.secondary.http.address", i.e. 0.0.0.0:50090  
> (commented out  dfs.secondary.http.address property)
> 
>      I got : Exception in thread "main" java.lang.IllegalArgumentException: 
> Does not contain a valid host:port authority: 0.0.0.0:0.0.0.0:0
> 
> 
0.0.0.0:<port #>  signifies that you should have a listener on all interfaces 
to the port specified in <port #>. 

You shouldn't have to set it and it should already be set in the defaults. 



> Thanks
> AC
> 
> 
> On 29 Nov 2012, at 5:46 PM, a...@hsk.hk wrote:
> 
>> Hi,
>> 
>> I found this error message in the .out file after trying to start 
>> SecondaryNameNode in secure mode
>> 
>> Exception in thread "main" java.lang.IllegalArgumentException: Does not 
>> contain a valid host:port authority: m146:m146:0
>>         at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:162)
>>         at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:128)
>>         at 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$1.run(SecondaryNameNode.java:205)
>>         at 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$1.run(SecondaryNameNode.java:190)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at javax.security.auth.Subject.doAs(Subject.java:396)
>>         at 
>> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
>>         at 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:190)
>>         at 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:129)
>>         at 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:567)
>> 
>> version: 1.0.4
>> distributed cluster: true
>> os: ubuntu 12.04
>> server: also the server of NameNode, the NameNode is already started in 
>> secure mode
>> 
>> QUESTION:   It seems that it is related to configuration but what does this 
>> error mean and where I would be wrong?  Please help!
>> 
>> Thanks
>> ac
>> 
>> 
>> 
>> 
>> P.S.
>> below is form the .log file
>> 
>> 2012-11-29 17:42:16,687 INFO 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: STARTUP_MSG: 
>> /************************************************************
>> STARTUP_MSG: Starting SecondaryNameNode
>> STARTUP_MSG:   host = m146......
>> STARTUP_MSG:   args = []
>> STARTUP_MSG:   version = 1.0.4
>> STARTUP_MSG:   build = 
>> https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0 -r 
>> 1393290; compiled by 'hortonfo' on Wed Oct  3 05:13:58 UTC 2012
>> ************************************************************/
>> 2012-11-29 17:42:17,174 INFO 
>> org.apache.hadoop.security.UserGroupInformation: Login successful for user 
>> hduser/m146......
>> 2012-11-29 17:42:17,405 INFO 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: Starting web 
>> server as: host/m146.......
>> 2012-11-29 17:42:17,434 INFO org.mortbay.log: Logging to 
>> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via 
>> org.mortbay.log.Slf4jLog
>> 2012-11-29 17:42:17,468 INFO org.apache.hadoop.http.HttpServer: Added global 
>> filtersafety (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
>> 2012-11-29 17:42:17,473 INFO 
>> org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: SHUTDOWN_MSG: 
>> /************************************************************
>> SHUTDOWN_MSG: Shutting down SecondaryNameNode at m146.......
>> ************************************************************/
> 

Reply via email to