You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Pavan Sudheendra <pa...@gmail.com> on 2013/07/15 13:37:34 UTC

Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

I've been trying to run examples from HBase-The definitve guide 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: �
17136@ubuntulocalhost,32992,1373877731444
at    org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Right now, its localhost. But Jean says avoid use of localhost..

Btw, has anyone tried successfully running examples of hbase-the
definitive guide in the stable release?

On Tue, Jul 16, 2013 at 5:37 PM, Rohit Kelkar <ro...@gmail.com> wrote:
> Depends on what your /etc/hosts file says
>
> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>
>> Ah. The value of quorun should be localhost or my ip address?
>>
>> On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
>> wrote:
>> > I suggested that because you were able to use the shell but not the
>> client
>> > code.
>> >
>> > - R
>> >
>> > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> >
>> >> Yes Jean, It is working fine.
>> >> @Rohit, i thought in the standalone mode it is not required.
>> >>
>> >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
>> >> wrote:
>> >> > In your client code can you try explicitly setting values of
>> >> > hbase.zookeeper.quorum
>> >> >
>> >> > - R
>> >> >
>> >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>> >> >
>> >> >> Hi Pavan,
>> >> >>
>> >> >> You should try to avoid localhost. Try to prefers your host name. Is
>> >> >> http://ubuntu:60010/master-status?filter=all<
>> >> >> http://localhost:60010/master-status?filter=all>working
>> >> >> fine?
>> >> >>
>> >> >> JM
>> >> >>
>> >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> >> >>
>> >> >> > Hi all,
>> >> >> > I further went to http://localhost:60010/master-status?filter=alland
>> >> >> > 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":"Waiting
>> >> >> > for a call","starttimems":1373948304755,"description":"REPL IPC
>> Server
>> >> >> > handler 1 on
>> >> >> >
>> >> >>
>> >>
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> >> >> > 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 <
>> >> pavan0591@gmail.com>
>> >> >> > wrote:
>> >> >> > > @Kim how is that possible? I'm using the stable release.
>> >> >> > >
>> >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
>> >> pavan0591@gmail.com
>> >> >> >
>> >> >> > 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 <kc...@gmail.com>
>> >> >> 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
>> >> >> vers--
>> Regards-
>> Pavan
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Hi jean,
I moved my development environment to eclipse instead of relying on the shell..
I added a bunch of jars as dependencies and everything works :)
Thanks for the help..

On Tue, Jul 16, 2013 at 8:22 PM, Jean-Marc Spaggiari
<je...@spaggiari.org> wrote:
> ;)
>
> Let's restart from the beginning. It should be simple steps.
>
> 1) Configure you host file to have only 2 lines. Your host name with you
> local IP (192.168.xx.xx), and localhost.
> 2) rm -rf your existing hbase installation dir.
> 3) uncompress the tar file.
> 4) bin/start-hbase.sh
>
> There is nothing more you have to do to test the standalone version. Don't
> touch any config file, don't modify anything.
>
> JM
>
> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>
>> Jean, I'm getting a whole bunch of errors if i try your method!
>> I don't why i'm the only one who's encountering all this type of errors ..
>>
>> On Tue, Jul 16, 2013 at 6:07 PM, Jean-Marc Spaggiari
>> <je...@spaggiari.org> wrote:
>> > Sure!
>> >
>> > Here is the /etc/hosts file from my "hbasetest" server where I run
>> > PerformanceEvaluation tests on a standalone HBase:
>> > jmspaggi@hbasetest:~$ cat /etc/hosts
>> > 127.0.0.1       localhost
>> > 192.168.23.105    hbasetest
>> >
>> > # The following lines are desirable for IPv6 capable hosts
>> > ::1 localhost ip6-localhost ip6-loopback
>> > fe00::0 ip6-localnet
>> > ff00::0 ip6-mcastprefix
>> > ff02::1 ip6-allnodes
>> > ff02::2 ip6-allrouters
>> > ff02::3 ip6-allhosts
>> >
>> >
>> > As you can see, keep it simple ;)
>> >
>> > 192.168.23.105 is the local IP;
>> > root@hbasetest:/home/jmspaggi# ifconfig eth0
>> > eth0      Link encap:Ethernet  HWaddr 90:2b:34:a0:16:d8
>> >           inet adr:192.168.23.105  Bcast:192.168.23.255
>> > Masque:255.255.255.0
>> >           adr inet6: fe80::922b:34ff:fea0:16d8/64 Scope:Lien
>> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>> >           RX packets:456 errors:0 dropped:0 overruns:0 frame:0
>> >           TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
>> >           collisions:0 lg file transmission:1000
>> >           RX bytes:43079 (42.0 KiB)  TX bytes:32650 (31.8 KiB)
>> >           Interruption:40 Adresse de base:0xa000
>> >
>> > And I do everything using "hbasetest" name.
>> >
>> > You can ignore the IPV6 lines in the hosts file.
>> >
>> > JM
>> >
>> > 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> >
>> >> Jean, can you post an example HBase stand-alone /etc/hosts file?
>> >> It would be very helpful.
>> >>
>> >> On Tue, Jul 16, 2013 at 5:43 PM, Jean-Marc Spaggiari
>> >> <je...@spaggiari.org> wrote:
>> >> > I will say it should be your host name. Not the IP nor "localhost".
>> >> >
>> >> > 2013/7/16 Rohit Kelkar <ro...@gmail.com>
>> >> >
>> >> >> Depends on what your /etc/hosts file says
>> >> >>
>> >> >> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> >> >>
>> >> >> > Ah. The value of quorun should be localhost or my ip address?
>> >> >> >
>> >> >> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <
>> rohitkelkar@gmail.com>
>> >> >> > wrote:
>> >> >> > > I suggested that because you were able to use the shell but not
>> the
>> >> >> > client
>> >> >> > > code.
>> >> >> > >
>> >> >> > > - R
>> >> >> > >
>> >> >> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> >> >> > >
>> >> >> > >> Yes Jean, It is working fine.
>> >> >> > >> @Rohit, i thought in the standalone mode it is not required.
>> >> >> > >>
>> >> >> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <
>> >> rohitkelkar@gmail.com>
>> >> >> > >> wrote:
>> >> >> > >> > In your client code can you try explicitly setting values of
>> >> >> > >> > hbase.zookeeper.quorum
>> >> >> > >> >
>> >> >> > >> > - R
>> >> >> > >> >
>> >> >> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>> >> >> > >> >
>> >> >> > >> >> Hi Pavan,
>> >> >> > >> >>
>> >> >> > >> >> You should try to avoid localhost. Try to prefers your host
>> >> name.
>> >> >> Is
>> >> >> > >> >> http://ubuntu:60010/master-status?filter=all<
>> >> >> > >> >> http://localhost:60010/master-status?filter=all>working
>> >> >> > >> >> fine?
>> >> >> > >> >>
>> >> >> > >> >> JM
>> >> >> > >> >>
>> >> >> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> >> >> > >> >>
>> >> >> > >> >> > Hi all,
>> >> >> > >> >> > I further went to
>> >> >> http://localhost:60010/master-status?filter=alland
>> >> >> > >> >> > 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":"Waiting
>> >> >> > >> >> > for a call","starttimems":1373948304755,"description":"REPL
>> >> IPC
>> >> >> > Server
>> >> >> > >> >> > handler 1 on
>> >> >> > >> >> >
>> >> >> > >> >>
>> >> >> > >>
>> >> >> >
>> >> >>
>> >>
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> >> >> > >> >> > 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 <
>> >> >> > >> pavan0591@gmail.com>
>> >> >> > >> >> > wrote:
>> >> >> > >> >> > > @Kim how is that possible? I'm using the stable release.
>> >> >> > >> >> > >
>> >> >> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
>> >> >> > >> pavan0591@gmail.com
>> >> >> > >> >> >
>> >> >> > >> >> > 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 <
>> >> >> kchew534@gmail.com>
>> >> >> > >> >> 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
>> >> >> > >> >> vers--
>> >> >> > Regards-
>> >> >> > Pavan
>> >> >> >
>> >> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Regards-
>> >> Pavan
>> >>
>>
>>
>>
>> --
>> Regards-
>> Pavan
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
;)

Let's restart from the beginning. It should be simple steps.

1) Configure you host file to have only 2 lines. Your host name with you
local IP (192.168.xx.xx), and localhost.
2) rm -rf your existing hbase installation dir.
3) uncompress the tar file.
4) bin/start-hbase.sh

There is nothing more you have to do to test the standalone version. Don't
touch any config file, don't modify anything.

JM

2013/7/16 Pavan Sudheendra <pa...@gmail.com>

> Jean, I'm getting a whole bunch of errors if i try your method!
> I don't why i'm the only one who's encountering all this type of errors ..
>
> On Tue, Jul 16, 2013 at 6:07 PM, Jean-Marc Spaggiari
> <je...@spaggiari.org> wrote:
> > Sure!
> >
> > Here is the /etc/hosts file from my "hbasetest" server where I run
> > PerformanceEvaluation tests on a standalone HBase:
> > jmspaggi@hbasetest:~$ cat /etc/hosts
> > 127.0.0.1       localhost
> > 192.168.23.105    hbasetest
> >
> > # The following lines are desirable for IPv6 capable hosts
> > ::1 localhost ip6-localhost ip6-loopback
> > fe00::0 ip6-localnet
> > ff00::0 ip6-mcastprefix
> > ff02::1 ip6-allnodes
> > ff02::2 ip6-allrouters
> > ff02::3 ip6-allhosts
> >
> >
> > As you can see, keep it simple ;)
> >
> > 192.168.23.105 is the local IP;
> > root@hbasetest:/home/jmspaggi# ifconfig eth0
> > eth0      Link encap:Ethernet  HWaddr 90:2b:34:a0:16:d8
> >           inet adr:192.168.23.105  Bcast:192.168.23.255
> > Masque:255.255.255.0
> >           adr inet6: fe80::922b:34ff:fea0:16d8/64 Scope:Lien
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:456 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 lg file transmission:1000
> >           RX bytes:43079 (42.0 KiB)  TX bytes:32650 (31.8 KiB)
> >           Interruption:40 Adresse de base:0xa000
> >
> > And I do everything using "hbasetest" name.
> >
> > You can ignore the IPV6 lines in the hosts file.
> >
> > JM
> >
> > 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> >
> >> Jean, can you post an example HBase stand-alone /etc/hosts file?
> >> It would be very helpful.
> >>
> >> On Tue, Jul 16, 2013 at 5:43 PM, Jean-Marc Spaggiari
> >> <je...@spaggiari.org> wrote:
> >> > I will say it should be your host name. Not the IP nor "localhost".
> >> >
> >> > 2013/7/16 Rohit Kelkar <ro...@gmail.com>
> >> >
> >> >> Depends on what your /etc/hosts file says
> >> >>
> >> >> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> >> >>
> >> >> > Ah. The value of quorun should be localhost or my ip address?
> >> >> >
> >> >> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <
> rohitkelkar@gmail.com>
> >> >> > wrote:
> >> >> > > I suggested that because you were able to use the shell but not
> the
> >> >> > client
> >> >> > > code.
> >> >> > >
> >> >> > > - R
> >> >> > >
> >> >> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> >> >> > >
> >> >> > >> Yes Jean, It is working fine.
> >> >> > >> @Rohit, i thought in the standalone mode it is not required.
> >> >> > >>
> >> >> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <
> >> rohitkelkar@gmail.com>
> >> >> > >> wrote:
> >> >> > >> > In your client code can you try explicitly setting values of
> >> >> > >> > hbase.zookeeper.quorum
> >> >> > >> >
> >> >> > >> > - R
> >> >> > >> >
> >> >> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
> >> >> > >> >
> >> >> > >> >> Hi Pavan,
> >> >> > >> >>
> >> >> > >> >> You should try to avoid localhost. Try to prefers your host
> >> name.
> >> >> Is
> >> >> > >> >> http://ubuntu:60010/master-status?filter=all<
> >> >> > >> >> http://localhost:60010/master-status?filter=all>working
> >> >> > >> >> fine?
> >> >> > >> >>
> >> >> > >> >> JM
> >> >> > >> >>
> >> >> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> >> >> > >> >>
> >> >> > >> >> > Hi all,
> >> >> > >> >> > I further went to
> >> >> http://localhost:60010/master-status?filter=alland
> >> >> > >> >> > 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":"Waiting
> >> >> > >> >> > for a call","starttimems":1373948304755,"description":"REPL
> >> IPC
> >> >> > Server
> >> >> > >> >> > handler 1 on
> >> >> > >> >> >
> >> >> > >> >>
> >> >> > >>
> >> >> >
> >> >>
> >>
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> >> >> > >> >> > 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 <
> >> >> > >> pavan0591@gmail.com>
> >> >> > >> >> > wrote:
> >> >> > >> >> > > @Kim how is that possible? I'm using the stable release.
> >> >> > >> >> > >
> >> >> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
> >> >> > >> pavan0591@gmail.com
> >> >> > >> >> >
> >> >> > >> >> > 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 <
> >> >> kchew534@gmail.com>
> >> >> > >> >> 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
> >> >> > >> >> vers--
> >> >> > Regards-
> >> >> > Pavan
> >> >> >
> >> >>
> >>
> >>
> >>
> >> --
> >> Regards-
> >> Pavan
> >>
>
>
>
> --
> Regards-
> Pavan
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Jean, I'm getting a whole bunch of errors if i try your method!
I don't why i'm the only one who's encountering all this type of errors ..

On Tue, Jul 16, 2013 at 6:07 PM, Jean-Marc Spaggiari
<je...@spaggiari.org> wrote:
> Sure!
>
> Here is the /etc/hosts file from my "hbasetest" server where I run
> PerformanceEvaluation tests on a standalone HBase:
> jmspaggi@hbasetest:~$ cat /etc/hosts
> 127.0.0.1       localhost
> 192.168.23.105    hbasetest
>
> # The following lines are desirable for IPv6 capable hosts
> ::1 localhost ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>
>
> As you can see, keep it simple ;)
>
> 192.168.23.105 is the local IP;
> root@hbasetest:/home/jmspaggi# ifconfig eth0
> eth0      Link encap:Ethernet  HWaddr 90:2b:34:a0:16:d8
>           inet adr:192.168.23.105  Bcast:192.168.23.255
> Masque:255.255.255.0
>           adr inet6: fe80::922b:34ff:fea0:16d8/64 Scope:Lien
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:456 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 lg file transmission:1000
>           RX bytes:43079 (42.0 KiB)  TX bytes:32650 (31.8 KiB)
>           Interruption:40 Adresse de base:0xa000
>
> And I do everything using "hbasetest" name.
>
> You can ignore the IPV6 lines in the hosts file.
>
> JM
>
> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>
>> Jean, can you post an example HBase stand-alone /etc/hosts file?
>> It would be very helpful.
>>
>> On Tue, Jul 16, 2013 at 5:43 PM, Jean-Marc Spaggiari
>> <je...@spaggiari.org> wrote:
>> > I will say it should be your host name. Not the IP nor "localhost".
>> >
>> > 2013/7/16 Rohit Kelkar <ro...@gmail.com>
>> >
>> >> Depends on what your /etc/hosts file says
>> >>
>> >> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> >>
>> >> > Ah. The value of quorun should be localhost or my ip address?
>> >> >
>> >> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
>> >> > wrote:
>> >> > > I suggested that because you were able to use the shell but not the
>> >> > client
>> >> > > code.
>> >> > >
>> >> > > - R
>> >> > >
>> >> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> >> > >
>> >> > >> Yes Jean, It is working fine.
>> >> > >> @Rohit, i thought in the standalone mode it is not required.
>> >> > >>
>> >> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <
>> rohitkelkar@gmail.com>
>> >> > >> wrote:
>> >> > >> > In your client code can you try explicitly setting values of
>> >> > >> > hbase.zookeeper.quorum
>> >> > >> >
>> >> > >> > - R
>> >> > >> >
>> >> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>> >> > >> >
>> >> > >> >> Hi Pavan,
>> >> > >> >>
>> >> > >> >> You should try to avoid localhost. Try to prefers your host
>> name.
>> >> Is
>> >> > >> >> http://ubuntu:60010/master-status?filter=all<
>> >> > >> >> http://localhost:60010/master-status?filter=all>working
>> >> > >> >> fine?
>> >> > >> >>
>> >> > >> >> JM
>> >> > >> >>
>> >> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> >> > >> >>
>> >> > >> >> > Hi all,
>> >> > >> >> > I further went to
>> >> http://localhost:60010/master-status?filter=alland
>> >> > >> >> > 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":"Waiting
>> >> > >> >> > for a call","starttimems":1373948304755,"description":"REPL
>> IPC
>> >> > Server
>> >> > >> >> > handler 1 on
>> >> > >> >> >
>> >> > >> >>
>> >> > >>
>> >> >
>> >>
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> >> > >> >> > 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 <
>> >> > >> pavan0591@gmail.com>
>> >> > >> >> > wrote:
>> >> > >> >> > > @Kim how is that possible? I'm using the stable release.
>> >> > >> >> > >
>> >> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
>> >> > >> pavan0591@gmail.com
>> >> > >> >> >
>> >> > >> >> > 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 <
>> >> kchew534@gmail.com>
>> >> > >> >> 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
>> >> > >> >> vers--
>> >> > Regards-
>> >> > Pavan
>> >> >
>> >>
>>
>>
>>
>> --
>> Regards-
>> Pavan
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Sure!

Here is the /etc/hosts file from my "hbasetest" server where I run
PerformanceEvaluation tests on a standalone HBase:
jmspaggi@hbasetest:~$ cat /etc/hosts
127.0.0.1       localhost
192.168.23.105    hbasetest

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


As you can see, keep it simple ;)

192.168.23.105 is the local IP;
root@hbasetest:/home/jmspaggi# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 90:2b:34:a0:16:d8
          inet adr:192.168.23.105  Bcast:192.168.23.255
Masque:255.255.255.0
          adr inet6: fe80::922b:34ff:fea0:16d8/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:456 errors:0 dropped:0 overruns:0 frame:0
          TX packets:237 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:43079 (42.0 KiB)  TX bytes:32650 (31.8 KiB)
          Interruption:40 Adresse de base:0xa000

And I do everything using "hbasetest" name.

You can ignore the IPV6 lines in the hosts file.

JM

2013/7/16 Pavan Sudheendra <pa...@gmail.com>

> Jean, can you post an example HBase stand-alone /etc/hosts file?
> It would be very helpful.
>
> On Tue, Jul 16, 2013 at 5:43 PM, Jean-Marc Spaggiari
> <je...@spaggiari.org> wrote:
> > I will say it should be your host name. Not the IP nor "localhost".
> >
> > 2013/7/16 Rohit Kelkar <ro...@gmail.com>
> >
> >> Depends on what your /etc/hosts file says
> >>
> >> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> >>
> >> > Ah. The value of quorun should be localhost or my ip address?
> >> >
> >> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
> >> > wrote:
> >> > > I suggested that because you were able to use the shell but not the
> >> > client
> >> > > code.
> >> > >
> >> > > - R
> >> > >
> >> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> >> > >
> >> > >> Yes Jean, It is working fine.
> >> > >> @Rohit, i thought in the standalone mode it is not required.
> >> > >>
> >> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <
> rohitkelkar@gmail.com>
> >> > >> wrote:
> >> > >> > In your client code can you try explicitly setting values of
> >> > >> > hbase.zookeeper.quorum
> >> > >> >
> >> > >> > - R
> >> > >> >
> >> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
> >> > >> >
> >> > >> >> Hi Pavan,
> >> > >> >>
> >> > >> >> You should try to avoid localhost. Try to prefers your host
> name.
> >> Is
> >> > >> >> http://ubuntu:60010/master-status?filter=all<
> >> > >> >> http://localhost:60010/master-status?filter=all>working
> >> > >> >> fine?
> >> > >> >>
> >> > >> >> JM
> >> > >> >>
> >> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> >> > >> >>
> >> > >> >> > Hi all,
> >> > >> >> > I further went to
> >> http://localhost:60010/master-status?filter=alland
> >> > >> >> > 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":"Waiting
> >> > >> >> > for a call","starttimems":1373948304755,"description":"REPL
> IPC
> >> > Server
> >> > >> >> > handler 1 on
> >> > >> >> >
> >> > >> >>
> >> > >>
> >> >
> >>
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> >> > >> >> > 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 <
> >> > >> pavan0591@gmail.com>
> >> > >> >> > wrote:
> >> > >> >> > > @Kim how is that possible? I'm using the stable release.
> >> > >> >> > >
> >> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
> >> > >> pavan0591@gmail.com
> >> > >> >> >
> >> > >> >> > 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 <
> >> kchew534@gmail.com>
> >> > >> >> 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
> >> > >> >> vers--
> >> > Regards-
> >> > Pavan
> >> >
> >>
>
>
>
> --
> Regards-
> Pavan
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Jean, can you post an example HBase stand-alone /etc/hosts file?
It would be very helpful.

On Tue, Jul 16, 2013 at 5:43 PM, Jean-Marc Spaggiari
<je...@spaggiari.org> wrote:
> I will say it should be your host name. Not the IP nor "localhost".
>
> 2013/7/16 Rohit Kelkar <ro...@gmail.com>
>
>> Depends on what your /etc/hosts file says
>>
>> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>>
>> > Ah. The value of quorun should be localhost or my ip address?
>> >
>> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
>> > wrote:
>> > > I suggested that because you were able to use the shell but not the
>> > client
>> > > code.
>> > >
>> > > - R
>> > >
>> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>> > >
>> > >> Yes Jean, It is working fine.
>> > >> @Rohit, i thought in the standalone mode it is not required.
>> > >>
>> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
>> > >> wrote:
>> > >> > In your client code can you try explicitly setting values of
>> > >> > hbase.zookeeper.quorum
>> > >> >
>> > >> > - R
>> > >> >
>> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>> > >> >
>> > >> >> Hi Pavan,
>> > >> >>
>> > >> >> You should try to avoid localhost. Try to prefers your host name.
>> Is
>> > >> >> http://ubuntu:60010/master-status?filter=all<
>> > >> >> http://localhost:60010/master-status?filter=all>working
>> > >> >> fine?
>> > >> >>
>> > >> >> JM
>> > >> >>
>> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> > >> >>
>> > >> >> > Hi all,
>> > >> >> > I further went to
>> http://localhost:60010/master-status?filter=alland
>> > >> >> > 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":"Waiting
>> > >> >> > for a call","starttimems":1373948304755,"description":"REPL IPC
>> > Server
>> > >> >> > handler 1 on
>> > >> >> >
>> > >> >>
>> > >>
>> >
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> > >> >> > 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 <
>> > >> pavan0591@gmail.com>
>> > >> >> > wrote:
>> > >> >> > > @Kim how is that possible? I'm using the stable release.
>> > >> >> > >
>> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
>> > >> pavan0591@gmail.com
>> > >> >> >
>> > >> >> > 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 <
>> kchew534@gmail.com>
>> > >> >> 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:46149got
>> > >> >> vers--
>> > Regards-
>> > Pavan
>> >
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
I will say it should be your host name. Not the IP nor "localhost".

2013/7/16 Rohit Kelkar <ro...@gmail.com>

> Depends on what your /etc/hosts file says
>
> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>
> > Ah. The value of quorun should be localhost or my ip address?
> >
> > On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
> > wrote:
> > > I suggested that because you were able to use the shell but not the
> > client
> > > code.
> > >
> > > - R
> > >
> > > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> > >
> > >> Yes Jean, It is working fine.
> > >> @Rohit, i thought in the standalone mode it is not required.
> > >>
> > >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
> > >> wrote:
> > >> > In your client code can you try explicitly setting values of
> > >> > hbase.zookeeper.quorum
> > >> >
> > >> > - R
> > >> >
> > >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
> > >> >
> > >> >> Hi Pavan,
> > >> >>
> > >> >> You should try to avoid localhost. Try to prefers your host name.
> Is
> > >> >> http://ubuntu:60010/master-status?filter=all<
> > >> >> http://localhost:60010/master-status?filter=all>working
> > >> >> fine?
> > >> >>
> > >> >> JM
> > >> >>
> > >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> > >> >>
> > >> >> > Hi all,
> > >> >> > I further went to
> http://localhost:60010/master-status?filter=alland
> > >> >> > 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":"Waiting
> > >> >> > for a call","starttimems":1373948304755,"description":"REPL IPC
> > Server
> > >> >> > handler 1 on
> > >> >> >
> > >> >>
> > >>
> >
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> > >> >> > 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 <
> > >> pavan0591@gmail.com>
> > >> >> > wrote:
> > >> >> > > @Kim how is that possible? I'm using the stable release.
> > >> >> > >
> > >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
> > >> pavan0591@gmail.com
> > >> >> >
> > >> >> > 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 <
> kchew534@gmail.com>
> > >> >> 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:46149got
> > >> >> vers--
> > Regards-
> > Pavan
> >
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Rohit Kelkar <ro...@gmail.com>.
Depends on what your /etc/hosts file says

On Tuesday, July 16, 2013, Pavan Sudheendra wrote:

> Ah. The value of quorun should be localhost or my ip address?
>
> On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com>
> wrote:
> > I suggested that because you were able to use the shell but not the
> client
> > code.
> >
> > - R
> >
> > On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
> >
> >> Yes Jean, It is working fine.
> >> @Rohit, i thought in the standalone mode it is not required.
> >>
> >> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
> >> wrote:
> >> > In your client code can you try explicitly setting values of
> >> > hbase.zookeeper.quorum
> >> >
> >> > - R
> >> >
> >> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
> >> >
> >> >> Hi Pavan,
> >> >>
> >> >> You should try to avoid localhost. Try to prefers your host name. Is
> >> >> http://ubuntu:60010/master-status?filter=all<
> >> >> http://localhost:60010/master-status?filter=all>working
> >> >> fine?
> >> >>
> >> >> JM
> >> >>
> >> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> >> >>
> >> >> > Hi all,
> >> >> > I further went to http://localhost:60010/master-status?filter=alland
> >> >> > 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":"Waiting
> >> >> > for a call","starttimems":1373948304755,"description":"REPL IPC
> Server
> >> >> > handler 1 on
> >> >> >
> >> >>
> >>
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> >> >> > 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 <
> >> pavan0591@gmail.com>
> >> >> > wrote:
> >> >> > > @Kim how is that possible? I'm using the stable release.
> >> >> > >
> >> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
> >> pavan0591@gmail.com
> >> >> >
> >> >> > 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 <kc...@gmail.com>
> >> >> 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
> >> >> vers--
> Regards-
> Pavan
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Ah. The value of quorun should be localhost or my ip address?

On Tue, Jul 16, 2013 at 5:32 PM, Rohit Kelkar <ro...@gmail.com> wrote:
> I suggested that because you were able to use the shell but not the client
> code.
>
> - R
>
> On Tuesday, July 16, 2013, Pavan Sudheendra wrote:
>
>> Yes Jean, It is working fine.
>> @Rohit, i thought in the standalone mode it is not required.
>>
>> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
>> wrote:
>> > In your client code can you try explicitly setting values of
>> > hbase.zookeeper.quorum
>> >
>> > - R
>> >
>> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>> >
>> >> Hi Pavan,
>> >>
>> >> You should try to avoid localhost. Try to prefers your host name. Is
>> >> http://ubuntu:60010/master-status?filter=all<
>> >> http://localhost:60010/master-status?filter=all>working
>> >> fine?
>> >>
>> >> JM
>> >>
>> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>> >>
>> >> > Hi all,
>> >> > I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
>> >> > for a call","starttimems":1373948304755,"description":"REPL IPC Server
>> >> > handler 1 on
>> >> >
>> >>
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> >> > 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 <
>> pavan0591@gmail.com>
>> >> > wrote:
>> >> > > @Kim how is that possible? I'm using the stable release.
>> >> > >
>> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
>> pavan0591@gmail.com
>> >> >
>> >> > 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 <kc...@gmail.com>
>> >> 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
>> >> > --
>> Regards-
>> Pavan
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Rohit Kelkar <ro...@gmail.com>.
I suggested that because you were able to use the shell but not the client
code.

- R

On Tuesday, July 16, 2013, Pavan Sudheendra wrote:

> Yes Jean, It is working fine.
> @Rohit, i thought in the standalone mode it is not required.
>
> On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com>
> wrote:
> > In your client code can you try explicitly setting values of
> > hbase.zookeeper.quorum
> >
> > - R
> >
> > On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
> >
> >> Hi Pavan,
> >>
> >> You should try to avoid localhost. Try to prefers your host name. Is
> >> http://ubuntu:60010/master-status?filter=all<
> >> http://localhost:60010/master-status?filter=all>working
> >> fine?
> >>
> >> JM
> >>
> >> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
> >>
> >> > Hi all,
> >> > I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
> >> > for a call","starttimems":1373948304755,"description":"REPL IPC Server
> >> > handler 1 on
> >> >
> >>
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> >> > 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 <
> pavan0591@gmail.com>
> >> > wrote:
> >> > > @Kim how is that possible? I'm using the stable release.
> >> > >
> >> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <
> pavan0591@gmail.com
> >> >
> >> > 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 <kc...@gmail.com>
> >> 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
> >> > --
> Regards-
> Pavan
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Yes Jean, It is working fine.
@Rohit, i thought in the standalone mode it is not required.

On Tue, Jul 16, 2013 at 5:25 PM, Rohit Kelkar <ro...@gmail.com> wrote:
> In your client code can you try explicitly setting values of
> hbase.zookeeper.quorum
>
> - R
>
> On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:
>
>> Hi Pavan,
>>
>> You should try to avoid localhost. Try to prefers your host name. Is
>> http://ubuntu:60010/master-status?filter=all<
>> http://localhost:60010/master-status?filter=all>working
>> fine?
>>
>> JM
>>
>> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>>
>> > Hi all,
>> > I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
>> > for a call","starttimems":1373948304755,"description":"REPL IPC Server
>> > handler 1 on
>> >
>> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
>> > 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 <pa...@gmail.com>
>> > wrote:
>> > > @Kim how is that possible? I'm using the stable release.
>> > >
>> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <pavan0591@gmail.com
>> >
>> > 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 <kc...@gmail.com>
>> 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 <pa...@gmail.com>
>> > >>>>
>> > >>>> > 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
>>



-- 
Regards-
Pavan

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Rohit Kelkar <ro...@gmail.com>.
In your client code can you try explicitly setting values of
hbase.zookeeper.quorum

- R

On Tuesday, July 16, 2013, Jean-Marc Spaggiari wrote:

> Hi Pavan,
>
> You should try to avoid localhost. Try to prefers your host name. Is
> http://ubuntu:60010/master-status?filter=all<
> http://localhost:60010/master-status?filter=all>working
> fine?
>
> JM
>
> 2013/7/16 Pavan Sudheendra <pa...@gmail.com>
>
> > Hi all,
> > I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
> > for a call","starttimems":1373948304755,"description":"REPL IPC Server
> > handler 1 on
> >
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> > 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 <pa...@gmail.com>
> > wrote:
> > > @Kim how is that possible? I'm using the stable release.
> > >
> > > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <pavan0591@gmail.com
> >
> > 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 <kc...@gmail.com>
> 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 <pa...@gmail.com>
> > >>>>
> > >>>> > 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
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Pavan,

You should try to avoid localhost. Try to prefers your host name. Is
http://ubuntu:60010/master-status?filter=all<http://localhost:60010/master-status?filter=all>working
fine?

JM

2013/7/16 Pavan Sudheendra <pa...@gmail.com>

> Hi all,
> I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
> for a call","starttimems":1373948304755,"description":"REPL IPC Server
> handler 1 on
> 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
> 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 <pa...@gmail.com>
> wrote:
> > @Kim how is that possible? I'm using the stable release.
> >
> > On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <pa...@gmail.com>
> 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 <kc...@gmail.com> 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 <pa...@gmail.com>
> >>>>
> >>>> > 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 socket
> >>>> > > connection from /127.0.0.1:40840
> >>>> > > 2013-07-15 05:12:43,488 INFO
> >>>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
> >>>> > > 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:220)
> >>>> > > 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 0x13fe23eeaec0003
> >>>> > > 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
> >>>> > > <je...@spaggiari.org> 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 <pa...@gmail.com>
> >>>> > >>
> >>>> > >>> I've been trying to run examples from HBase-The definitve guide
> 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: �
> >>>> > >>> 17136@ubuntulocalhost,32992,1373877731444
> >>>> > >>> at
> >>>> > >>>
> >>>> >
> >>>>
>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
> >>>> > >>> at
> >>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
> >>>> > >>> at util.HBaseHelper.<init>(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
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
Hi all,
I further went to http://localhost:60010/master-status?filter=all 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":"Waiting
for a call","starttimems":1373948304755,"description":"REPL IPC Server
handler 1 on 38039","state":"WAITING","statetimems":-1},{"statustimems":-1,"status":"Waiting
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 <pa...@gmail.com> wrote:
> @Kim how is that possible? I'm using the stable release.
>
> On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <pa...@gmail.com> 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 <kc...@gmail.com> 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 <pa...@gmail.com>
>>>>
>>>> > 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 <pa...@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 socket
>>>> > > connection from /127.0.0.1:40840
>>>> > > 2013-07-15 05:12:43,488 INFO
>>>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
>>>> > > 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:220)
>>>> > > 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 0x13fe23eeaec0003
>>>> > > 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
>>>> > > <je...@spaggiari.org> 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 <pa...@gmail.com>
>>>> > >>
>>>> > >>> I've been trying to run examples from HBase-The definitve guide 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: �
>>>> > >>> 17136@ubuntulocalhost,32992,1373877731444
>>>> > >>> at
>>>> > >>>
>>>> >
>>>>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
>>>> > >>> at
>>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>>> > >>> at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
@Kim how is that possible? I'm using the stable release.

On Tue, Jul 16, 2013 at 8:37 AM, Pavan Sudheendra <pa...@gmail.com> 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 <kc...@gmail.com> 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 <pa...@gmail.com>
>>>
>>> > 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 <pa...@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 socket
>>> > > connection from /127.0.0.1:40840
>>> > > 2013-07-15 05:12:43,488 INFO
>>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
>>> > > 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:220)
>>> > > 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 0x13fe23eeaec0003
>>> > > 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
>>> > > <je...@spaggiari.org> 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 <pa...@gmail.com>
>>> > >>
>>> > >>> I've been trying to run examples from HBase-The definitve guide 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: �
>>> > >>> 17136@ubuntulocalhost,32992,1373877731444
>>> > >>> at
>>> > >>>
>>> >
>>>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
>>> > >>> at
>>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>> > >>> at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
@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 <kc...@gmail.com> 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 <pa...@gmail.com>
>>
>> > 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 <pa...@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 socket
>> > > connection from /127.0.0.1:40840
>> > > 2013-07-15 05:12:43,488 INFO
>> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
>> > > 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:220)
>> > > 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 0x13fe23eeaec0003
>> > > 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
>> > > <je...@spaggiari.org> 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 <pa...@gmail.com>
>> > >>
>> > >>> I've been trying to run examples from HBase-The definitve guide 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: �
>> > >>> 17136@ubuntulocalhost,32992,1373877731444
>> > >>> at
>> > >>>
>> >
>>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
>> > >>> at
>> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>> > >>> at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Kim Chew <kc...@gmail.com>.
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 <pa...@gmail.com>
>
> > 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 <pa...@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 socket
> > > connection from /127.0.0.1:40840
> > > 2013-07-15 05:12:43,488 INFO
> > > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
> > > 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:220)
> > > 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 0x13fe23eeaec0003
> > > 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
> > > <je...@spaggiari.org> 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 <pa...@gmail.com>
> > >>
> > >>> I've been trying to run examples from HBase-The definitve guide 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: �
> > >>> 17136@ubuntulocalhost,32992,1373877731444
> > >>> at
> > >>>
> >
>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
> > >>> at
> org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
> > >>> at util.HBaseHelper.<init>(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
> >
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
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 <pa...@gmail.com>

> 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 <pa...@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 socket
> > connection from /127.0.0.1:40840
> > 2013-07-15 05:12:43,488 INFO
> > org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
> > 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:220)
> > 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 0x13fe23eeaec0003
> > 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
> > <je...@spaggiari.org> 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 <pa...@gmail.com>
> >>
> >>> I've been trying to run examples from HBase-The definitve guide 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: �
> >>> 17136@ubuntulocalhost,32992,1373877731444
> >>> at
> >>>
>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
> >>> at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
> >>> at util.HBaseHelper.<init>(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
>

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
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 <pa...@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 socket
> connection from /127.0.0.1:40840
> 2013-07-15 05:12:43,488 INFO
> org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
> 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:220)
> 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 0x13fe23eeaec0003
> 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
> <je...@spaggiari.org> 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 <pa...@gmail.com>
>>
>>> I've been trying to run examples from HBase-The definitve guide 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: �
>>> 17136@ubuntulocalhost,32992,1373877731444
>>> at
>>>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
>>> at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>> at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Pavan Sudheendra <pa...@gmail.com>.
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 socket
connection from /127.0.0.1:40840
2013-07-15 05:12:43,488 INFO
org.apache.zookeeper.server.ZooKeeperServer: Client attempting to
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:220)
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 0x13fe23eeaec0003
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
<je...@spaggiari.org> 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 <pa...@gmail.com>
>
>> I've been trying to run examples from HBase-The definitve guide 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: �
>> 17136@ubuntulocalhost,32992,1373877731444
>> at
>>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
>> at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>> at util.HBaseHelper.<init>(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

Re: Trying to run HBase in standalone and not able to access Java API! Desperate help needed.

Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
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 <pa...@gmail.com>

> I've been trying to run examples from HBase-The definitve guide 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: �
> 17136@ubuntulocalhost,32992,1373877731444
> at
>  org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:615)
> at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
> at util.HBaseHelper.<init>(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
>