You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Stuti Awasthi <st...@hcl.com> on 2011/09/07 11:04:59 UTC

how to use different directory in HDFS

Hi Friends,

I have Hadoop and Hbase cluster in distributed mode. I am using thrift interface to access Hbase from Ruby.

Hbase root dir url is :
hdfs://<master_host_name>:54310/hbase

Now I want my different ruby applications should use same cluster to store data.
Currently all the tables are created under /hbase/<tablename>. I want different projects to have different directory inside which they can create their own specific table so that each project have unique table identity.

Eg :
For project A : /hbase/A/<Table1>
For project B: /hbase/B/<Table1>

Ruby projects connect to Hbase via thrift server which same as HDFSMaster server. So I just provide server IP and thrift port. Tables are automatically getting created inside /hbase directory.

Is anyone have idea how to achieve this ?


Thanks
Stuti Awasthi



________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Re: how to use different directory in HDFS

Posted by Stack <st...@duboce.net>.
On Wed, Sep 7, 2011 at 2:04 AM, Stuti Awasthi <st...@hcl.com> wrote:
> Now I want my different ruby applications should use same cluster to store data.
> Currently all the tables are created under /hbase/<tablename>. I want different projects to have different directory inside which they can create their own specific table so that each project have unique table identity.
>

There is no way to do this in hbase at the moment.  Prefix each table
name with the app name?
St.Ack