Cannot connect to Hbase via Java API

2014-12-16 Thread Marco
Hi, Hbase is installed correctly and working (hbase shell works fine). But I'm not able to use the Java API to connect to an existing Hbase Table: <<< val conf = HBaseConfiguration.create() conf.clear() conf.set("hbase.zookeeper.quorum", "ip:2181"); conf.set("hbase.zookeeper.property.clientPor

Re: Cannot connect to Hbase via Java API

2014-12-16 Thread Ted Yu
bq. conf.set("hbase.zookeeper.quorum", "ip:2181"); Have you tried omitting port in the above config ? On Tue, Dec 16, 2014 at 6:19 AM, Marco wrote: > > Hi, > > Hbase is installed correctly and working (hbase shell works fine). > > But I'm not able to use the Java API to connect to an existing Hb

Re: Cannot connect to Hbase via Java API

2014-12-16 Thread Marco
no effect :( 2014-12-16 15:19 GMT+01:00 Marco : > Hi, > > Hbase is installed correctly and working (hbase shell works fine). > > But I'm not able to use the Java API to connect to an existing Hbase Table: > > <<< > val conf = HBaseConfiguration.create() > > conf.clear() > > conf.set("hbase.zookeep

Re: Cannot connect to Hbase via Java API

2014-12-16 Thread Ted Yu
bq. conf.clear() Why is the above needed ? Try removing it. Cheers On Tue, Dec 16, 2014 at 7:57 AM, Marco wrote: > > no effect :( > > 2014-12-16 15:19 GMT+01:00 Marco : > > Hi, > > > > Hbase is installed correctly and working (hbase shell works fine). > > > > But I'm not able to use the Java AP

Re: Cannot connect to Hbase via Java API

2014-12-16 Thread Marco
I tried it also completely without setting the config manually, so just val conf = HBaseConfiguration.create() directly on the server, where hbase/hadoop etc. is installed. Same issueI guess there is no connection issue but an issue with the region server (?) Understanding what exactly the

Re: Cannot connect to Hbase via Java API

2014-12-16 Thread anil gupta
Hi Marco, Did you make sure that hbase-site.xml is present the classpath of your java app? As per your error, it looks like thats not the case. Thanks, Anil On Tue, Dec 16, 2014 at 10:29 AM, Marco wrote: > > I tried it also completely without setting the config manually, > > so just > > val co

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Wilm Schumacher
Could you please post the /etc/hosts ./conf/hbase-site.conf ./conf/regionservers ./log/hbase*regionsserver.log ? The error says, that your regionserver is not running (or something happend with the server). This could mean, that a) the regionserver never started b) the regionserver died c) the r

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Marco
Hi Wilm, I've attached the logs. The region server logs only contain debug messages and mostly like the pattern, which I've pasted. I'm using the HortonWorksStack and have a single machine, on which runs the complete stack (no cluster). Hbase shell, Hive and Apache Phoenix works fine. BR Marco

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Wilm Schumacher
Hi, I didn't found the content of the conf/regionservers files attached. Could you check whether it contains "localhost" or "host"/"myHost"? It should contain "host" or "myHost". Did you edit the content of the files for the attachment? Sometimes it is "myHost", sometimes it "host". This should

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Marco
Hi Wilm, the regionservers only contain the hostname. And yes, I've changed the namehostname is consistent. ipV6 I could try but after searching for it, the issue seem to be different (other excption). Also, I've installed hortonworks sandbox on my notebook and there I've the same issue. Co

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Wilm Schumacher
Am 17.12.2014 um 14:29 schrieb Marco: > Hi Wilm, > > the regionservers only contain the hostname. sounds good. > And yes, I've changed the > namehostname is consistent. > > ipV6 I could try but after searching for it, the issue seem to be > different (other excption). > > Also, I've installed

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Marco
>Tonight I will take a closer look at the sandbox (never >used it before). Perhaps I'll find something. But there are some GB to >download ;). That would be cool :) Thx. 2014-12-17 14:56 GMT+01:00 Wilm Schumacher : > Am 17.12.2014 um 14:29 schrieb Marco: >> Hi Wilm, >> >> the regionservers only

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Wilm Schumacher
Am 17.12.2014 um 15:27 schrieb Marco: >> Tonight I will take a closer look at the sandbox (never >> used it before). Perhaps I'll find something. But there are some GB to >> download ;). > That would be cool :) Thx. *mumble curses* I cannot import the Hortenwork VM. VM-Import says the image is cor

Re: Cannot connect to Hbase via Java API

2014-12-17 Thread Marco
Ok, btw I've used "HDP 2.2 on Sandbox" 2014-12-18 4:19 GMT+01:00 Wilm Schumacher : > Am 17.12.2014 um 15:27 schrieb Marco: >>> Tonight I will take a closer look at the sandbox (never >>> used it before). Perhaps I'll find something. But there are some GB to >>> download ;). >> That would be cool :

Re: Cannot connect to Hbase via Java API

2014-12-18 Thread Asher Devuyst
Are you able to put data to the table, scan data from the table, and count the rows all using the shell? You mentioned you could start the shell, but not that you had done any operations with it. I would start there before using the api. On Dec 18, 2014 2:08 AM, "Marco" wrote: > Ok, btw I've u

Re: Cannot connect to Hbase via Java API

2014-12-18 Thread Marco
Yes, that's all possible. 2014-12-18 14:12 GMT+01:00 Asher Devuyst : > Are you able to put data to the table, scan data from the table, and count > the rows all using the shell? > You mentioned you could start the shell, but not that you had done any > operations with it. I would start there be

Re: Cannot connect to Hbase via Java API

2014-12-18 Thread Wilm Schumacher
Hi, I just took a look into the hdp 2.2 sandbox, and unfortunately it was a waste of time and I went older ;). At the first boot, without me doing anything in the configs, zookeeper throwed errors at startup and got killed (couldn't connect). However, ignoring this I started hbase, which hdp reco

Re: Cannot connect to Hbase via Java API

2014-12-18 Thread Marco
Hi Wilm, I also think, I'll try it with a hbase standalone install. Also via the logging of Apache Phoenix, I see that this framework can without any issues use the region server and it's the same hbase-site.xml.,. Nevertheless, thank you very much for your efforts!!! Best wishes, Marco 2014-12

Re: Cannot connect to Hbase via Java API

2015-01-14 Thread Marco
Hi, the issue was that my Hbase client library did not fit to the server version. Desperate ;) as I was, I switched on the debug log level and have seen some messages, telling me that some node @ zookeeper would be missing but that wouldn't be an error (?)...so that has looked suspicious to me and