You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by GO-HADOOP <om...@gmail.com> on 2009/01/14 22:16:46 UTC
Access Hbase through web application
How do i access HBase Master or slave running on a different Servers from a
web application hosted in different box?
I saw some implementation like HBase::Client.new("http://xyz:61001/api")
allow accessing the remove dfs cluster but could not get through it.
Regards
--
View this message in context: http://www.nabble.com/Access-Hbase-through-web-application-tp21465344p21465344.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Access Hbase through web application
Posted by stack <st...@duboce.net>.
GO-HADOOP wrote:
> I am still not able to connect dfs cluster from the laptop which is in
> windows box. My windows box does not have dfs cluster running.
>
> In the given examples i see
> HBaseConfiguration config = new HBaseConfiguration()
> will do everything.
>
> What i am looking for is, is there a way to do something like
>
> HBaseConfiguraiton config = new HBaseConfiguration(server:port)
>
>
Set the hbase.master property in your hbase.site.xml or on your new
config instance above, do configset("hbase.master", "server:port").
I would suggest you read the hbase getting started documentation or the
hbase in ten minutes up on the wiki.
St.Ack
Re: Access Hbase through web application
Posted by GO-HADOOP <om...@gmail.com>.
I am still not able to connect dfs cluster from the laptop which is in
windows box. My windows box does not have dfs cluster running.
In the given examples i see
HBaseConfiguration config = new HBaseConfiguration()
will do everything.
What i am looking for is, is there a way to do something like
HBaseConfiguraiton config = new HBaseConfiguration(server:port)
that way i can access the HBase from the application that is running in a
box which do not have HBase or DFS running.
Is there a way to do this?
stack-3 wrote:
>
> GO-HADOOP wrote:
>> Thanks, My web app is in Java it self but could not figure out how to
>> access
>> the hbase environment hosted in my desktop through the web application in
>> my
>> laptop.
>>
>> How do i define location of the master can you please highlight more.
>>
> Sure:
>
> See hbase.org. The documentation tab is a good place to start. Has
> sample client code: http://hadoop.apache.org/hbase/docs/r0.18.1/.
>
> St.Ack
>
>
>>
>>
>>
>> stack-3 wrote:
>>
>>> GO-HADOOP wrote:
>>>
>>>> How do i access HBase Master or slave running on a different Servers
>>>> from
>>>> a
>>>> web application hosted in different box?
>>>>
>>>> I saw some implementation like
>>>> HBase::Client.new("http://xyz:61001/api")
>>>> allow accessing the remove dfs cluster but could not get through it.
>>>>
>>>>
>>> Where did you see that? It doesn't look right.
>>>
>>> Your webapp is ruby?
>>>
>>> HBase is java. If ruby, then you'll need to go via a gateway. We have
>>> REST and thrift gateways. Checkout the wiki for how to use.
>>>
>>> Regards accessing hbase cluster from a remote client, just tell the
>>> hbase client where the master is located. It takes care of all the
>>> rest.
>>>
>>> St.Ack
>>>
>>>
>>>
>>
>>
>
>
>
--
View this message in context: http://www.nabble.com/Access-Hbase-through-web-application-tp21465344p21566943.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Access Hbase through web application
Posted by stack <st...@duboce.net>.
GO-HADOOP wrote:
> Thanks, My web app is in Java it self but could not figure out how to access
> the hbase environment hosted in my desktop through the web application in my
> laptop.
>
> How do i define location of the master can you please highlight more.
>
Sure:
See hbase.org. The documentation tab is a good place to start. Has
sample client code: http://hadoop.apache.org/hbase/docs/r0.18.1/.
St.Ack
>
>
>
> stack-3 wrote:
>
>> GO-HADOOP wrote:
>>
>>> How do i access HBase Master or slave running on a different Servers from
>>> a
>>> web application hosted in different box?
>>>
>>> I saw some implementation like HBase::Client.new("http://xyz:61001/api")
>>> allow accessing the remove dfs cluster but could not get through it.
>>>
>>>
>> Where did you see that? It doesn't look right.
>>
>> Your webapp is ruby?
>>
>> HBase is java. If ruby, then you'll need to go via a gateway. We have
>> REST and thrift gateways. Checkout the wiki for how to use.
>>
>> Regards accessing hbase cluster from a remote client, just tell the
>> hbase client where the master is located. It takes care of all the rest.
>>
>> St.Ack
>>
>>
>>
>
>
Re: Access Hbase through web application
Posted by GO-HADOOP <om...@gmail.com>.
Thanks, My web app is in Java it self but could not figure out how to access
the hbase environment hosted in my desktop through the web application in my
laptop.
How do i define location of the master can you please highlight more.
stack-3 wrote:
>
> GO-HADOOP wrote:
>> How do i access HBase Master or slave running on a different Servers from
>> a
>> web application hosted in different box?
>>
>> I saw some implementation like HBase::Client.new("http://xyz:61001/api")
>> allow accessing the remove dfs cluster but could not get through it.
>>
> Where did you see that? It doesn't look right.
>
> Your webapp is ruby?
>
> HBase is java. If ruby, then you'll need to go via a gateway. We have
> REST and thrift gateways. Checkout the wiki for how to use.
>
> Regards accessing hbase cluster from a remote client, just tell the
> hbase client where the master is located. It takes care of all the rest.
>
> St.Ack
>
>
--
View this message in context: http://www.nabble.com/Access-Hbase-through-web-application-tp21465344p21465621.html
Sent from the HBase User mailing list archive at Nabble.com.
Re: Access Hbase through web application
Posted by stack <st...@duboce.net>.
GO-HADOOP wrote:
> How do i access HBase Master or slave running on a different Servers from a
> web application hosted in different box?
>
> I saw some implementation like HBase::Client.new("http://xyz:61001/api")
> allow accessing the remove dfs cluster but could not get through it.
>
Where did you see that? It doesn't look right.
Your webapp is ruby?
HBase is java. If ruby, then you'll need to go via a gateway. We have
REST and thrift gateways. Checkout the wiki for how to use.
Regards accessing hbase cluster from a remote client, just tell the
hbase client where the master is located. It takes care of all the rest.
St.Ack