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

Switch to Threaded View
HBase, mail # user - Unable to connect from windows desktop to HBase


Copy link to this message
-
Re: Unable to connect from windows desktop to HBase
Azuryy Yu 2013-04-15, 10:41
you need to put  protobuf-java-2.4.1.jar under the hbase_home/lib, then
don't include it in your client class path. but if you used hbase-0.95 or
hbase-0.96.1, protobuf jar is also needed on your client's classpath.

On Mon, Apr 15, 2013 at 6:37 PM, Azuryy Yu <[EMAIL PROTECTED]> wrote:

>  config = HBaseConfiguration.create();
>
> this will read hbase-site.xml to get hmaster and zookeeper quorums, if
> not, then zookeeper quorums and hbase.master are all empty. so you cannot
> get connection.
>
>
>
>
> On Mon, Apr 15, 2013 at 6:29 PM, Omkar Joshi <[EMAIL PROTECTED]>wrote:
>
>> Hi Azuryy,
>>
>> Thanks for the reply !
>>
>> It solved the issue but I'm not clear as to why this is required; also
>> had to include the Google's protobuf-java-2.4.1.jar whose purpose is
>> unclear to me.
>>
>> Regards,
>> Omkar Joshi
>>
>>
>> -----Original Message-----
>> From: Azuryy Yu [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, April 15, 2013 3:22 PM
>> To: [EMAIL PROTECTED]
>> Subject: Re: Unable to connect from windows desktop to HBase
>>
>> you should put hbase-site.xml under your class path in your java client.
>>
>> then, don't need to specify zookeeper quorum in your code.
>>
>>
>> On Mon, Apr 15, 2013 at 5:35 PM, Omkar Joshi <[EMAIL PROTECTED]
>> >wrote:
>>
>> > Attaching the dumps from the HBase UI :
>> >
>> > Debug dump :
>> >
>> > 55 active threads
>> > Thread 10536 (IPC Client (47) connection to cldx-1139-1033/
>> > 172.25.6.69:9000 from hduser):
>> >   State: TIMED_WAITING
>> >   Blocked count: 1
>> >   Waited count: 2
>> >   Stack:
>> >     java.lang.Object.wait(Native Method)
>> >     org.apache.hadoop.ipc.Client$Connection.waitForWork(Client.java:706)
>> >     org.apache.hadoop.ipc.Client$Connection.run(Client.java:748)
>> > Thread 10535 (IPC Client (47) connection to cldx-1139-1033/
>> > 172.25.6.69:60000 from hduser):
>> >   State: TIMED_WAITING
>> >   Blocked count: 3
>> >   Waited count: 4
>> >   Stack:
>> >     java.lang.Object.wait(Native Method)
>> >
>> >
>> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.waitForWork(HBaseClient.java:534)
>> >
>> >
>> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.run(HBaseClient.java:579)
>> > Thread 10121 (1840929932@qtp-1863048490-7):
>> >   State: RUNNABLE
>> >   Blocked count: 77
>> >   Waited count: 415
>> >   Stack:
>> >     sun.management.ThreadImpl.getThreadInfo1(Native Method)
>> >     sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:174)
>> >     sun.management.ThreadImpl.getThreadInfo(ThreadImpl.java:139)
>> >
>> >
>> org.apache.hadoop.util.ReflectionUtils.printThreadInfo(ReflectionUtils.java:149)
>> >
>> >
>> org.apache.hadoop.util.ReflectionUtils.logThreadInfo(ReflectionUtils.java:203)
>> >
>> >
>> org.apache.hadoop.http.HttpServer$StackServlet.doGet(HttpServer.java:721)
>> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>> >     javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> >
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>> >
>> >
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
>> >
>> >
>> org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:835)
>> >
>> >
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>> >
>> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>> >
>> >
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> >
>> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>> >
>> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>> >
>> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>> >
>> >
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
>> >
>> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> >     org.mortbay.jetty.Server.handle(Server.java:326)
>> > Thread 1689 (MASTER_OPEN_REGION-cldx-1139-1033,60000,1365517046931-3):