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
HBase >> mail # user >> Re: Zookeeper tries to connect to localhost when i have specified another clearly.


+
Pavan Sudheendra 2013-08-21, 11:18
+
Jean-Marc Spaggiari 2013-08-21, 11:33
Copy link to this message
-
Re: Zookeeper tries to connect to localhost when i have specified another clearly.
Can you try passing the argument -Dhbase.zookeeper.quorum=10.34.187.170
while running the program

If this does'nt work either please check if HBASE_HOME and HBASE_CONF_DIR
is set correctly.

BR/Manoj
On Wed, Aug 21, 2013 at 4:48 PM, Pavan Sudheendra <[EMAIL PROTECTED]>wrote:

> Yes. My /etc/hosts have the correct mapping to localhost
>
> 127.0.0.1    localhost
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
>
> I've added the HBase jars to the Hadoop Classpath as well. Not sure why..
> I'm running this on a 6 node cloudera cluster which consist of 1
> jobtrackers and 5 tasktrackers..
>
> After a while all my map jobs fail.. Completely baffled because the map
> tasks were doing the required tasks..
>
>
>
> On Wed, Aug 21, 2013 at 4:45 PM, manoj p <[EMAIL PROTECTED]> wrote:
>
> > For your code to run, please ensure if you use the correct HBase/Hadoop
> jar
> > versions while compiling your program.
> >
> > BR/Manoj
> >
> >
> > On Wed, Aug 21, 2013 at 4:38 PM, manoj p <[EMAIL PROTECTED]> wrote:
> >
> > > Check your /etc/hosts file if you have the correct mapping to localhost
> > > for 127.0.0.1. Also ensure that if you have hbase.zookeeper.quorum in
> > your
> > > configuration and also check if HBase classpath is appended to Hadoop
> > > classpath.
> > >
> > >
> > > BR/Manoj
> > >
> > >
> > > On Wed, Aug 21, 2013 at 4:10 PM, Pavan Sudheendra <[EMAIL PROTECTED]
> > >wrote:
> > >
> > >> Hadoop Namenode reports the following error which is unusual :
> > >>
> > >>
> > >> 013-08-21 09:21:12,328 INFO org.apache.zookeeper.ClientCnxn: Opening
> > >> socket
> > >> connection to server localhost/127.0.0.1:2181. Will not attempt to
> > >> authenticate using SASL (Unable to locate a login configuration)
> > >> java.net.ConnectException: Connection refused
> > >>     at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> > >>     at
> > >> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> > >>     at
> > >>
> > >>
> >
> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
> > >>     at
> > >> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
> > >> 2013-08-21 09:33:11,033 WARN
> > >> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly
> > transient
> > >> ZooKeeper exception:
> > >> org.apache.zookeeper.KeeperException$ConnectionLossException:
> > >> KeeperErrorCode = ConnectionLoss for /hbase
> > >> 2013-08-21 09:33:11,033 INFO
> org.apache.hadoop.hbase.util.RetryCounter:
> > >> Sleeping 8000ms before retry #3...
> > >> 2013-08-21 09:33:11,043 WARN org.apache.hadoop.mapred.Task: Parent
> died.
> > >> Exiting attempt_201307181246_0548_m_000022_2
> > >>
> > >>
> > >> Because i have specified the address in the java file
> > >>     Configuration conf = HBaseConfiguration.create();
> > >>     conf.set("hbase.zookeeper.quorum", "10.34.187.170");
> > >>     conf.set("hbase.zookeeper.property.clientPort","2181");
> > >>     conf.set("hbase.master","10.34.187.170");
> > >>
> > >>
> > >>
> > >> All my map tasks fail like this! Please help.. I'm on a timebomb
> > >> --
> > >> Regards-
> > >> Pavan
> > >>
> > >
> > >
> >
>
>
>
> --
> Regards-
> Pavan
>
+
Pavan Sudheendra 2013-08-21, 11:42
+
Jean-Marc Spaggiari 2013-08-21, 11:45
+
Pavan Sudheendra 2013-08-21, 12:17
+
Jean-Marc Spaggiari 2013-08-21, 12:22
+
Pavan Sudheendra 2013-08-21, 12:29
+
Jean-Marc Spaggiari 2013-08-21, 12:31
+
Pavan Sudheendra 2013-08-21, 12:36
+
Pavan Sudheendra 2013-08-21, 12:37
+
Jean-Marc Spaggiari 2013-08-21, 12:39
+
Pavan Sudheendra 2013-08-21, 12:42
+
Jean-Marc Spaggiari 2013-08-21, 12:44
+
Pavan Sudheendra 2013-08-21, 12:49
+
Jean-Marc Spaggiari 2013-08-21, 12:51
+
Pavan Sudheendra 2013-08-21, 12:53
+
Pavan Sudheendra 2013-08-21, 12:56
+
Jean-Marc Spaggiari 2013-08-21, 13:00
+
Pavan Sudheendra 2013-08-21, 13:14
+
Jean-Marc Spaggiari 2013-08-21, 13:26
+
Pavan Sudheendra 2013-08-21, 13:39
+
Pavan Sudheendra 2013-08-21, 13:40
+
Jean-Marc Spaggiari 2013-08-21, 13:43
+
Pavan Sudheendra 2013-08-21, 13:52
+
Jean-Marc Spaggiari 2013-08-21, 18:32
+
Pavan Sudheendra 2013-08-22, 02:22
+
Jean-Marc Spaggiari 2013-08-22, 11:40
+
Pavan Sudheendra 2013-08-22, 13:00
+
Harsh J 2013-08-25, 04:46
+
Pavan Sudheendra 2013-08-25, 05:01
+
Harsh J 2013-08-25, 05:22
+
Pavan Sudheendra 2013-08-25, 05:30
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