Hi, Try making your hostname all lower case (sudo hostname xxxx, and change /etc/hostname). I think this may be an issue caused by/related to the GIRAPH-904 patch.
Young On Thu, Jul 24, 2014 at 10:25 AM, Jing Fan <[email protected]> wrote: > Does anyone know the reason of this error and the solution? > > Thank you very much! > > > On Wed, Jul 23, 2014 at 4:51 PM, Jing Fan <[email protected]> wrote: > >> Hi Vivek, >> >> Giraph comes wtih Zookeeper itself so I didn't install it separately. I >> run the same program several times. Sometimes it can succeed but most of >> the time it will come with the Zookeeper null error. >> >> Thanks. >> >> >> On Wed, Jul 23, 2014 at 4:35 PM, Sardeshmukh, Vivek < >> [email protected]> wrote: >> >>> Hi Jing, >>> >>> >>> Did you install Zookeeper? Is it running? If yes, then on which port? >>> I'm not sure whether it is necessary to install Zookeeper separately >>> but it's not that complicated to install so installed it and I didn't had >>> any problem. >>> >>> >>> To install zookeeper : >>> >>> wget --no-check-certificate >>> http://apache.mesi.com.ar/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz >>> >>> >>> tar zxvf zookeeper-3.4.5.tar.gz >>> >>> cd zookeeper-3.4.5 >>> >>> mv conf/zoo_sample.cfg conf/zoo.cfg >>> >>> sudo bin/zkServer.sh start >>> >>> >>> And when running a giraph job specify the zookeeper port- >>> -Dgiraph.zkList=<hostname where u installed zookeeper>:2181 >>> >>> >>> >>> Vivek >>> ------------------------------ >>> *From:* Jing Fan <[email protected]> >>> *Sent:* Wednesday, July 23, 2014 4:14 PM >>> *To:* [email protected] >>> *Subject:* Zookeeper server null error when running giraph >>> >>> Hi, >>> >>> When I run giraph, I always have following error message and the task >>> will fail >>> >>> 14/07/23 23:10:21 INFO zookeeper.ClientCnxn: Opening socket connection to >>> server localhost/127.0.0.1:22181. Will not attempt to authenticate using >>> SASL (unknown error) >>> 14/07/23 23:10:21 WARN zookeeper.ClientCnxn: Session 0x1476505b6cd0009 for >>> server null, unexpected error, closing socket connection and attempting >>> reconnect >>> java.net.ConnectException: Connection refused >>> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) >>> at >>> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739) >>> at >>> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) >>> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) >>> >>> >>> Does anyone know the reason and how to solve it? >>> >>> >>> Thanks! >>> >>> >> >
