Master fails to start if does not have a resolveable hostname
--------------------------------------------------------------
Key: FLUME-796
URL: https://issues.apache.org/jira/browse/FLUME-796
Project: Flume
Issue Type: Bug
Reporter: Jonathan Hsieh
To duplicate:
* As root, run 'hostname foobar'
* Attempt to start the flume master.
You will see this error message:
2011-10-13 14:31:17,554 [main] ERROR util.NetUtils: Unable to get canonical
host name! foobar: foobar
java.net.UnknownHostException: foobar: foobar
at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
at com.cloudera.util.NetUtils.<clinit>(NetUtils.java:43)
at
com.cloudera.flume.master.FlumeMaster.inferMasterHostID(FlumeMaster.java:464)
at com.cloudera.flume.master.FlumeMaster.main(FlumeMaster.java:533)
2011-10-13 14:31:17,560 [main] INFO master.FlumeMaster: Inferred master server
index 0
Later you may see:
2011-10-13 14:31:19,629 [main] INFO master.ZKInProcessServer: server
0.0.0.0:3181 not up yet
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira