If you mean you want to execute the program that you have written in
eclipse by connecting to a hbase cluster then the following simple
lines of code should help you.
Configuration hconf = HBaseConfiguration.create();
hconf.addResource("resources/config.xml");
hconf.set("hbase.zookeeper.quorum", "host1,host2,host3");//instead of
host1,2,3 you could also specify the actual ip addresses of the nodes
in your cluster
HTable table = new HTable(hconf, tableName);
String rowId = "some row id";
Get get = new Get(rowId);
Result r = table.get(g);
config.xml could contain other config options
On Mon, Nov 28, 2011 at 9:34 PM, silvia90 <[email protected]> wrote:
>
> Hi,
> i'm trying to connect eclipse with hbase on ubuntu, but i can't find any
> guide for do it.
> Some one can explain me how i can do it or link me a tutorial?
> Thanks.
> Silvia
> --
> View this message in context:
> http://old.nabble.com/Hbase-and-Eclipse-on-ubuntu-tp32878253p32878253.html
> Sent from the HBase User mailing list archive at Nabble.com.
>