Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD8DA10D2C for ; Tue, 16 Jul 2013 11:51:22 +0000 (UTC) Received: (qmail 63784 invoked by uid 500); 16 Jul 2013 11:51:20 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 63469 invoked by uid 500); 16 Jul 2013 11:51:15 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 63415 invoked by uid 99); 16 Jul 2013 11:51:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 11:51:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.128.173] (HELO mail-ve0-f173.google.com) (209.85.128.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 11:51:03 +0000 Received: by mail-ve0-f173.google.com with SMTP id jw11so400330veb.18 for ; Tue, 16 Jul 2013 04:50:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=RSIpWGPCsyMBAdl4Bbv0NTI3tcR/GbiCtyqMkLgHM+E=; b=EUvzgH3dLA4roBXr7tYx2TNH3s0hZbpZShjlaS0VsPCp8mHzEn5bj+9QCWjaGRvjvV 86wSKM0kfrBVcNtdJ3nERIkVkOhH5I2CEYGXTrqiXjBn7HFINEC5bCikrfPH3a6LIIKC PZgRx0SjEQI48dmb7hgHePDR720Y0tFLuQICYfATDhIfYmxWw+GscXYp4k1WQ9dPEstD NwiyhxMIkpSBrqUhsljG1qO+/1sm8qoROT4HUL7LkdKzRscjlmZXyBZ/fEGBqz3QvFp0 ai+Lvb4o/fdBM4wEl4A0noUzYEcGWf3Yf1k/k9SiyWpWhlDIsgjBXP4VKbfwahECiQN/ Fnjg== X-Received: by 10.220.177.8 with SMTP id bg8mr335601vcb.36.1373975422210; Tue, 16 Jul 2013 04:50:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.68.81 with HTTP; Tue, 16 Jul 2013 04:50:02 -0700 (PDT) In-Reply-To: References: From: Jean-Marc Spaggiari Date: Tue, 16 Jul 2013 07:50:02 -0400 Message-ID: Subject: Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed. To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c2c5eef8a98a04e19f94bc X-Gm-Message-State: ALoCoQndpNf69X5jZX9eebnEppnocv8jCa+0WE7ZPomGp9YY58HltmadC4jbKJSs4RN5oRkwpXyL X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2c5eef8a98a04e19f94bc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Pavan, You should try to avoid localhost. Try to prefers your host name. Is http://ubuntu:60010/master-status?filter=3Dallworking fine? JM 2013/7/16 Pavan Sudheendra > Hi all, > I further went to http://localhost:60010/master-status?filter=3Dall and > checked that: > [{"statustimems":-1,"status":"Waiting for a > call","starttimems":1373948304755,"description":"REPL IPC Server > handler 2 on > 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"W= aiting > for a call","starttimems":1373948304755,"description":"REPL IPC Server > handler 1 on > 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"W= aiting > for a call","starttimems":1373948304755,"description":"REPL IPC Server > handler 0 on 38039","state":"WAITING","statetimems":-1}, > > all the rpc calls gets stuck on waiting.. and my master it says active > on the tasks page for a while and dissapears. Any help much > appreciated. > > On Tue, Jul 16, 2013 at 8:54 AM, Pavan Sudheendra > wrote: > > @Kim how is that possible? I'm using the stable release. > > > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra > wrote: > >> @Jean, Nope, it didn't work. I even re-installed hbase. > >> > >> Has anyone worked with the Hbase-The definitive guide examples with > >> standalone mode? > >> > >> On Mon, Jul 15, 2013 at 10:06 PM, Kim Chew wrote: > >>> Another thing is, > >>> > >>> 2013-07-15 05:15:58,764 WARN org.apache.hadoop.ipc. > >>> HBaseServer: > >>> Incorrect header or version mismatch from 127.0.0.1:46149 got version > >>> 47 expected version 3 > >>> > >>> Seems like you are using different versions of HBase when compiling > your > >>> codes. > >>> > >>> Kim > >>> > >>> > >>> > >>> On Mon, Jul 15, 2013 at 5:40 AM, Jean-Marc Spaggiari < > >>> jean-marc@spaggiari.org> wrote: > >>> > >>>> You should change our hosts file to something like that: > >>>> > >>>> 127.0.0.1 localhost > >>>> 192.168.XXX.YYY ubuntu.ubuntu-domain ubuntu > >>>> > >>>> Where 192.168.XXX.YYY is your local host IP address > >>>> > >>>> Can you change and retry? (Restart). > >>>> > >>>> JM > >>>> > >>>> 2013/7/15 Pavan Sudheendra > >>>> > >>>> > The fact of the matter is i'm able to anything in the shell. It > works > >>>> > fine, but i'm not able to execute normal CRUD operations with the > JAVA > >>>> > API programatically. > >>>> > > >>>> > On Mon, Jul 15, 2013 at 5:48 PM, Pavan Sudheendra < > pavan0591@gmail.com> > >>>> > wrote: > >>>> > > Hi Jean, > >>>> > > Here is my /etc/hosts/ > >>>> > > > >>>> > > 127.0.0.1 localhost > >>>> > > 127.0.0.1 ubuntu > >>>> > > 127.0.0.1 ubuntu.ubuntu-domain ubuntu > >>>> > > > >>>> > > Yes i went to http://localhost:60010 and saw that my master is > running > >>>> > > > >>>> > > Here is the output of it > >>>> > > > >>>> > > hduser@ubuntu:/home/ubuntu/hbase-book/ch03$ jps > >>>> > > 17602 Jps > >>>> > > 8709 NameNode > >>>> > > 8929 DataNode > >>>> > > 9472 TaskTracker > >>>> > > 9252 JobTracker > >>>> > > 9172 SecondaryNameNode > >>>> > > 17136 HMaster > >>>> > > > >>>> > > The tail of the log: > >>>> > > > >>>> > > 2013-07-15 05:12:35,735 INFO > >>>> > > org.apache.hadoop.hbase.master.AssignmentManager: The master has > >>>> > > opened the region > >>>> > > users,,1373863643564.fcb6fdfa8c0f4d8c621f354c2aa146a9. that was > online > >>>> > > on localhost,40536,1373890342256 > >>>> > > 2013-07-15 05:12:35,736 DEBUG > >>>> > > org.apache.hadoop.hbase.zookeeper.ZKAssign: > >>>> > > master:37238-0x13fe23eeaec0000 Successfully deleted unassigned > node > >>>> > > for region fcb6fdfa8c0f4d8c621f354c2aa146a9 in expected state > >>>> > > RS_ZK_REGION_OPENED > >>>> > > 2013-07-15 05:12:43,485 INFO > >>>> > > org.apache.zookeeper.server.NIOServerCnxnFactory: Accepted socke= t > >>>> > > connection from /127.0.0.1:40840 > >>>> > > 2013-07-15 05:12:43,488 INFO > >>>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting t= o > >>>> > > establish new session at /127.0.0.1:40840 > >>>> > > 2013-07-15 05:12:43,490 INFO > >>>> > > org.apache.zookeeper.server.ZooKeeperServer: Established session > >>>> > > 0x13fe23eeaec0003 with negotiated timeout 40000 for client > >>>> > > /127.0.0.1:40840 > >>>> > > 2013-07-15 05:12:51,118 WARN > >>>> > > org.apache.zookeeper.server.NIOServerCnxn: caught end of stream > >>>> > > exception > >>>> > > EndOfStreamException: Unable to read additional data from client > >>>> > > sessionid 0x13fe23eeaec0003, likely client has closed socket > >>>> > > at > >>>> org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:22= 0) > >>>> > > at > >>>> > > >>>> > org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory= .java:208) > >>>> > > at java.lang.Thread.run(Thread.java:724) > >>>> > > 2013-07-15 05:12:51,124 INFO > >>>> > > org.apache.zookeeper.server.NIOServerCnxn: Closed socket > connection > >>>> > > for client /127.0.0.1:40840 which had sessionid 0x13fe23eeaec000= 3 > >>>> > > 2013-07-15 05:13:24,001 INFO > >>>> > > org.apache.zookeeper.server.ZooKeeperServer: Expiring session > >>>> > > 0x13fe23eeaec0003, timeout of 40000ms exceeded > >>>> > > 2013-07-15 05:13:24,001 INFO > >>>> > > org.apache.zookeeper.server.PrepRequestProcessor: Processed > session > >>>> > > termination for sessionid: 0x13fe23eeaec0003 > >>>> > > 2013-07-15 05:15:58,566 WARN org.apache.hadoop.ipc.HBaseServer: > >>>> > > Incorrect header or version mismatch from 127.0.0.1:46147 got > version > >>>> > > 47 expected version 3 > >>>> > > 2013-07-15 05:15:58,762 WARN org.apache.hadoop.ipc.HBaseServer: > >>>> > > Incorrect header or version mismatch from 127.0.0.1:46148 got > version > >>>> > > 47 expected version 3 > >>>> > > 2013-07-15 05:15:58,764 WARN org.apache.hadoop.ipc.HBaseServer: > >>>> > > Incorrect header or version mismatch from 127.0.0.1:46149 got > version > >>>> > > 47 expected version 3 > >>>> > > > >>>> > > > >>>> > > Thanks for replying. > >>>> > > > >>>> > > On Mon, Jul 15, 2013 at 5:32 PM, Jean-Marc Spaggiari > >>>> > > wrote: > >>>> > >> Hi Pavan, > >>>> > >> > >>>> > >> Before you try to connect with the Java API, just try with the > Shell > >>>> and > >>>> > >> look at the logs and WebUI. > >>>> > >> > >>>> > >> So few things. > >>>> > >> > >>>> > >> 1) Have you updated you /etc/hosts file with your host name to > point > >>>> to > >>>> > you > >>>> > >> local IP; > >>>> > >> 2) Have you checked the WebUI in you browser to see if your > master is > >>>> > >> running; > >>>> > >> 3) What is into your log file? > >>>> > >> > >>>> > >> JM > >>>> > >> > >>>> > >> 2013/7/15 Pavan Sudheendra > >>>> > >> > >>>> > >>> I've been trying to run examples from HBase-The definitve guid= e > and > >>>> > >>> i've been encountering with this error and i'm not able to get > past > >>>> > >>> it. I'm running in Stand alone mode if that helps. > >>>> > >>> > >>>> > >>> > >>>> > >>> Exception in thread "main" > >>>> > >>> org.apache.hadoop.hbase.MasterNotRunningException: =EF=BF=BD > >>>> > >>> 17136@ubuntulocalhost,32992,1373877731444 > >>>> > >>> at > >>>> > >>> > >>>> > > >>>> > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementat= ion.getMaster(HConnectionManager.java:615) > >>>> > >>> at > >>>> org.apache.hadoop.hbase.client.HBaseAdmin.(HBaseAdmin.java:94) > >>>> > >>> at util.HBaseHelper.(HBaseHelper.java:29) > >>>> > >>> at util.HBaseHelper.getHelper(HBaseHelper.java:33) > >>>> > >>> at client.PutExample.main(PutExample.java:22) > >>>> > >>> > >>>> > >>> > >>>> > >>> But my HMaster process is running: > >>>> > >>> > >>>> > >>> hduser@ubuntu:/home/ubuntu/hbase-book/ch03$ jps > >>>> > >>> 17602 Jps > >>>> > >>> 8709 NameNode > >>>> > >>> 8929 DataNode > >>>> > >>> 9472 TaskTracker > >>>> > >>> 9252 JobTracker > >>>> > >>> 9172 SecondaryNameNode > >>>> > >>> 17136 HMaster > >>>> > >>> > >>>> > >>> > >>>> > >>> -- > >>>> > >>> Regards- > >>>> > >>> Pavan > >>>> > >>> > >>>> > > > >>>> > > > >>>> > > > >>>> > > -- > >>>> > > Regards- > >>>> > > Pavan > >>>> > > >>>> > > >>>> > > >>>> > -- > >>>> > Regards- > >>>> > Pavan > >>>> > > >>>> > >> > >> > >> > >> -- > >> Regards- > >> Pavan > > > > > > > > -- > > Regards- > > Pavan > > > > -- > Regards- > Pavan > --001a11c2c5eef8a98a04e19f94bc--