Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> zookeeper on ec2 problem


+
Yi Jiang 2013-08-31, 05:09
+
German Blanco 2013-09-01, 16:15
Copy link to this message
-
Re: zookeeper on ec2 problem
Hello Yi,

    May I suggest you one thing, change the line of server.2 to the real
address of the server instead of localhost. I'm not saying it's the cause,
but I've never configured a cluster using localhost in my configurations.

Att
Diego
On Sat, Aug 31, 2013 at 2:09 AM, Yi Jiang <[EMAIL PROTECTED]> wrote:

> Hi, Everyone,
>
> I am recently setting up zookeeper on ec2
>
> I have followed the suggestion that using the internal ip of ec2, but it
> still shows up the error:
>
>
>
> root@ip-172-31-15-65:/home/yjiang/zookeeper-3.4.5/bin# ./zkServer.sh
> status
>
> JMX enabled by default
>
> Using config: /home/yjiang/zookeeper-3.4.5/bin/../conf/zoo.cfg
>
> Error contacting service. It is probably not running.
>
>
>
> But the instance is running in the background.
>
> Then when I use the ./zkCli.sh –server server-ip:2181 command, it shows
> below
>
>
>
>
>
> root@ip-172-31-15-65:/home/yjiang/zookeeper-3.4.5/bin# ./zkCli.sh -server
> ip-172-31-15-68.us-west-2.compute.internal:2181
>
> Connecting to ip-172-31-15-68.us-west-2.compute.internal:2181
>
> 2013-08-31 05:05:45,823 [myid:] - INFO  [main:Environment@100] - Client
> environment:zookeeper.version=3.4.5-1392090, built on 09/30/2012 17:52 GMT
>
> 2013-08-31 05:05:45,833 [myid:] - INFO  [main:Environment@100] - Client
> environment:host.name=ip-172-31-15-65.us-west-2.compute.internal
>
> 2013-08-31 05:05:45,833 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.version=1.7.0_25
>
> 2013-08-31 05:05:45,834 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.vendor=Oracle Corporation
>
> 2013-08-31 05:05:45,835 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.home=/usr/lib/jvm/java-7-oracle/jre
>
> 2013-08-31 05:05:45,836 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.class.path=/home/yjiang/zookeeper-3.4.5/bin/../build/classes:/home/yjiang/zookeeper-3.4.5/bin/../build/lib/*.jar:/home/yjiang/zookeeper-3.4.5/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/yjiang/zookeeper-3.4.5/bin/../lib/slf4j-api-1.6.1.jar:/home/yjiang/zookeeper-3.4.5/bin/../lib/netty-3.2.2.Final.jar:/home/yjiang/zookeeper-3.4.5/bin/../lib/log4j-1.2.15.jar:/home/yjiang/zookeeper-3.4.5/bin/../lib/jline-0.9.94.jar:/home/yjiang/zookeeper-3.4.5/bin/../zookeeper-3.4.5.jar:/home/yjiang/zookeeper-3.4.5/bin/../src/java/lib/*.jar:/home/yjiang/zookeeper-3.4.5/bin/../conf:/usr/lib/jvm/java-7-oracle/lib
>
> 2013-08-31 05:05:45,837 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
>
> 2013-08-31 05:05:45,837 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.io.tmpdir=/tmp
>
> 2013-08-31 05:05:45,838 [myid:] - INFO  [main:Environment@100] - Client
> environment:java.compiler=<NA>
>
> 2013-08-31 05:05:45,839 [myid:] - INFO  [main:Environment@100] - Client
> environment:os.name=Linux
>
> 2013-08-31 05:05:45,839 [myid:] - INFO  [main:Environment@100] - Client
> environment:os.arch=amd64
>
> 2013-08-31 05:05:45,840 [myid:] - INFO  [main:Environment@100] - Client
> environment:os.version=3.2.0-40-virtual
>
> 2013-08-31 05:05:45,841 [myid:] - INFO  [main:Environment@100] - Client
> environment:user.name=root
>
> 2013-08-31 05:05:45,842 [myid:] - INFO  [main:Environment@100] - Client
> environment:user.home=/root
>
> 2013-08-31 05:05:45,842 [myid:] - INFO  [main:Environment@100] - Client
> environment:user.dir=/home/yjiang/zookeeper-3.4.5/bin
>
> 2013-08-31 05:05:45,845 [myid:] - INFO  [main:ZooKeeper@438] - Initiating
> client connection,
> connectString=ip-172-31-15-68.us-west-2.compute.internal:2181
> sessionTimeout=30000
> watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@3b8a9e64
>
> Welcome to ZooKeeper!
>
> 2013-08-31 05:05:45,898 [myid:] - INFO
>  [main-SendThread(ip-172-31-15-68.us-west-2.compute.internal:2181):ClientCnxn$SendThread@966]
> - Opening socket connection to server
> ip-172-31-15-68.us-west-2.compute.internal/172.31.15.68:2181. Will not
Att.
Diego de Oliveira
System Architect
[EMAIL PROTECTED]
www.diegooliveira.com
Never argue with a fool -- people might not be able to tell the difference
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB