If this helps: >cat /etc/hosts
127.0.0.1 localhost 127.0.1.1 ubuntu # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters xx.xx.xx.xx myhostname.myhostname.com debauto where xx.xx.xx.xx is my servers public ip, and myhostname is my domain name. On Wed, May 2, 2012 at 10:42 PM, S Ahmed <sahmed1...@gmail.com> wrote: > Hi Jun, > > I'm on a dedicated box, not ec2. > BTW, I am running everything (zookeeper and kafka) on the same server. > Just to recap, I'm doing everthing default as per the quickstart. > Zookeeper started just fine. > When trying to run kafka server with config/server.properties I got: > > Error: Exception thrown by the agent : java.net.MalformedURLException: > Local host name unknown: java.net.UnknownHostException: myhostname: > myhostname > > Why does it repeat the hostname in the exception? > > That's all the exception I got, is there a way to get a more detailed > exception, is that what you are referring to? > > > On Wed, May 2, 2012 at 9:57 PM, Jun Rao <jun...@gmail.com> wrote: > >> Could you put the stack trace of the exception? Normally, you don't need >> to >> define hostname in broker. You only need to do that if somehow the local >> ip >> is not accessible to the clients (e.g., EC2) >> >> Thanks, >> >> Jun >> >> On Wed, May 2, 2012 at 6:06 PM, S Ahmed <sahmed1...@gmail.com> wrote: >> >> > I downloaded 0.7, updated and packaged using sbt. >> > >> > I was able to run zooker, but when I tried running the kafka server I >> got: >> > >> > Error: Exception thrown by the agent : java.net.MalformedURLException: >> > Local host name unknown: java.net.UnknownHostException: myhostname: >> > myhostname >> > >> > (where myhostname was my host name :) ) >> > >> > Do I need to tweak the config property files or something? I didn't >> touch >> > anything, just wanted to get it going. >> > >> > >