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 <shujamug...@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 
> <jdcry...@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 <shujamug...@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
>> > Shuja-ur-Rehman Baig
>> > http://pk.linkedin.com/in/shujamughal
>> > Cell: +92 3214207445
>> >
>>
>
>
>
> --
> Regards
> Shuja-ur-Rehman Baig
> http://pk.linkedin.com/in/shujamughal
> Cell: +92 3214207445
>



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

Reply via email to