Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Re: Zookeeper tries to connect to localhost when i have specified another clearly.


Copy link to this message
-
Re: Zookeeper tries to connect to localhost when i have specified another clearly.
Jean-Marc Spaggiari 2013-08-21, 12:51
Are you able to connect to your ZK server shell and list the nodes?

2013/8/21 Pavan Sudheendra <[EMAIL PROTECTED]>

> Yes.. I can do everything.. But i do not want my Hadoop Namenode to report
> logs like this.. Also, it says
>
> KeeperException, re-throwing exception
> org.apache.zookeeper.KeeperException$ConnectionLossException:
> KeeperErrorCode = ConnectionLoss for /hbase/
>
>
>
>
>
> On Wed, Aug 21, 2013 at 6:14 PM, Jean-Marc Spaggiari <
> [EMAIL PROTECTED]> wrote:
>
> > Sound correct. You are able to start the shell and scan the few first
> line
> > of the tables, right?
> >
> > 2013/8/21 Pavan Sudheendra <[EMAIL PROTECTED]>
> >
> > > This is my hbase-site.xml file if it helps:
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > >
> > > <!--Autogenerated by Cloudera CM on 2013-07-09T09:26:49.841Z-->
> > > <configuration>
> > >   <property>
> > >     <name>hbase.rootdir</name>
> > >
> > >
> > >
> >
> <value>hdfs://ip-10-34-187-170.eu-west-1.compute.internal:8020/hbase</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.client.write.buffer</name>
> > >     <value>2097152</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.client.pause</name>
> > >     <value>1000</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.client.retries.number</name>
> > >     <value>10</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.client.scanner.caching</name>
> > >     <value>1</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.client.keyvalue.maxsize</name>
> > >     <value>10485760</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.rpc.timeout</name>
> > >     <value>60000</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.security.authentication</name>
> > >     <value>simple</value>
> > >   </property>
> > >   <property>
> > >     <name>zookeeper.session.timeout</name>
> > >     <value>60000</value>
> > >   </property>
> > >   <property>
> > >     <name>zookeeper.znode.parent</name>
> > >     <value>/hbase</value>
> > >   </property>
> > >   <property>
> > >     <name>zookeeper.znode.rootserver</name>
> > >     <value>root-region-server</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.zookeeper.quorum</name>
> > >     <value>ip-10-34-187-170.eu-west-1.compute.internal</value>
> > >   </property>
> > >   <property>
> > >     <name>hbase.zookeeper.property.clientPort</name>
> > >     <value>2181</value>
> > >   </property>
> > > </configuration>
> > >
> > >
> > >
> > > On Wed, Aug 21, 2013 at 6:09 PM, Jean-Marc Spaggiari <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > > Hum.
> > > >
> > > > Things seems to be correct there.
> > > >
> > > > Can you try something simple like:
> > > >
> > > >             Configuration config = HBaseConfiguration.create();
> > > >             config.set("hbase.zookeeper.quorum", "ip-10-34-187-170");
> > > >             HTable table  = new HTable (config,
> > > > Bytes.toBytes("TABLE_NAME"));
> > > >
> > > > And see if it works?
> > > >
> > > > JM
> > > >
> > > > 2013/8/21 Pavan Sudheendra <[EMAIL PROTECTED]>
> > > >
> > > > > Is this a zookeeper specific error or something?
> > > > >
> > > > >
> > > > > On Wed, Aug 21, 2013 at 6:06 PM, Pavan Sudheendra <
> > [EMAIL PROTECTED]
> > > > > >wrote:
> > > > >
> > > > > > Hi Jean,
> > > > > >
> > > > > > ubuntu@ip-10-34-187-170:~$ cat /etc/hostname
> > > > > > ip-10-34-187-170
> > > > > > ubuntu@ip-10-34-187-170:~$ hostname
> > > > > > ip-10-34-187-170
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Wed, Aug 21, 2013 at 6:01 PM, Jean-Marc Spaggiari <
> > > > > > [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >> And what about:
> > > > > >> # cat /etc/hostname
> > > > > >>
> > > > > >> and
> > > > > >> # hostname
> > > > > >>
> > > > > >> ?
> > > > > >>
> > > > > >> 2013/8/21 Pavan Sudheendra <[EMAIL PROTECTED]>
> > > > > >>
> > > > > >> > Sure..
> > > > > >> > /etc/hosts file:
> > > > > >> >