[
https://issues.apache.org/jira/browse/FLUME-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13126978#comment-13126978
]
Jonathan Hsieh commented on FLUME-796:
--------------------------------------
if you then set hostname to 'localhost' or something that can be resolved in
/etc/hosts or via dns, it should work.
> 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