hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelvin Rawls <kel...@iswcorp.com>
Subject RE: Getting data from Hbase from client/remote computer
Date Wed, 01 Sep 2010 03:48:50 GMT
Shuja

No real magic code here, Google JMX Tutorial and take any hello world JMX example - gut method
and change signature as needed - add HBase access code from any working example - get JMX
client from tutorial mod as required and it just works. 

We are up against a deadline here - but if there is lots of interest I can put together a
complete simple example later -  can't post current app yet ... 

Kelvin
________________________________________
From: Shuja Rehman [shujamughal@gmail.com]
Sent: Tuesday, August 31, 2010 3:55 PM
To: user@hbase.apache.org
Subject: Re: Getting data from Hbase from client/remote computer

Kelvin

Can you give me some more details or some reference links from where i can
learn how to use JMXBean stuff to connect to master server and then perform
operations on hbase.

Thanks

On Tue, Aug 31, 2010 at 8:58 PM, Kelvin Rawls <kelvin@iswcorp.com> wrote:

> Shuja:
>
> getting back to your original question, we are using JMXBeans and Locater
> code that return references to the proxies for the JMXBeans to allow remote
> clients to access HBase without any knowledge of HBase or Hadoop
>
> Kelvin
> ________________________________________
> From: saint.ack@gmail.com [saint.ack@gmail.com] On Behalf Of Stack [
> stack@duboce.net]
> Sent: Tuesday, August 31, 2010 11:13 AM
> To: user@hbase.apache.org
> Subject: Re: Getting data from Hbase from client/remote computer
>
> You don't have to instantiate the webserver.  It comes up on by
> default.  Browse to http://MASTER_HOST:60010/.
>
> I'd suggest you read the 'getting started' doc referred to earlier.
> St.Ack
>
> On Tue, Aug 31, 2010 at 4:32 AM, Shuja Rehman <shujamughal@gmail.com>
> wrote:
> > Hi All
> >
> > I have also try by enabling the web server on the remote machine and use
> the
> > following code.
> >
> > String host="myserver.mycompany.com <http://myserver.mycompany.com:60000
> >";
> >    int port=80;
> >    String protocol = "http";
> >    HBaseConfiguration config = new HBaseConfiguration();
> >    config.addResource(new  URL(protocol,host,port,"/hbase-site.xml"));
> >
> > but the same error. Can anybody help me out??
> > Thanks
> >
> >
> > On Tue, Aug 31, 2010 at 12:38 PM, Shuja Rehman <shujamughal@gmail.com
> >wrote:
> >
> >> Hi
> >> I am trying to implement according to documentation and i also added
> this
> >> line to connect remote server
> >>
> >>  HBaseConfiguration config = new HBaseConfiguration();
> >>  config.set("hbase.master", "myserver.mycompany.com:60000");
> >>
> >> but I am getting following exception
> >>
> >> WARNING: instantiating HBaseConfiguration() is deprecated. Please use
> >> HBaseConfiguration#create() to construct a plain Configuration
> >> Exception in thread "main" java.lang.NoClassDefFoundError:
> >> org/apache/zookeeper/KeeperException
> >>         at
> >>
> org.apache.hadoop.hbase.client.HConnectionManager.getClientZooKeeperWatcher(HConnectionManager.java:176)
> >> ...
> >>
> >> Is anything missing??
> >>
> >> Thanks
> >>
> >>
> >> On Fri, Aug 27, 2010 at 1:33 AM, Jean-Daniel Cryans <
> jdcryans@apache.org>wrote:
> >>
> >>> Check the documentation:
> >>>
> >>>
> >>>
> http://hbase.apache.org/docs/r0.20.6/api/org/apache/hadoop/hbase/client/package-summary.html#overview
> >>>
> >>> J-D
> >>>>>> On Thu, Aug 26, 2010 at 12:41 PM, Shuja Rehman <
> shujamughal@gmail.com>
> >>> wrote:
> >>> > Hi All
> >>> >
> >>> > I am new to hbase client API and want to know how to get data from
> hbase
> >>> > from cleint/remote machine. The target is to develop a java program
> >>> which
> >>> > should connect to hbase server and then get results from it.
> >>> >
> >>> > Anyone have any example???
> >>> >
> >>> > Thanks
> >>> >
> >>> > --
> >>> > Regards
>



--
Regards
Shuja-ur-Rehman Baig
http://pk.linkedin.com/in/shujamughal
Cell: +92 3214207445

Mime
View raw message