You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ganesh Viswanathan <ga...@gmail.com> on 2016/11/18 18:44:07 UTC
Describe-Table Java API
Hello,
Is there a java API for HBase (using Admin or other libraries) to describe
a table and get its columnFamilies? I see the *describe 'tablename'* shell
command in HBase. But I don't see one in the Admin API docs:
https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Admin.html
Thanks,
Ganesh
Re: Describe-Table Java API
Posted by Ganesh Viswanathan <ga...@gmail.com>.
Thanks Ted. Yes, that worked great.
On Fri, Nov 18, 2016 at 10:51 AM, Ted Yu <yu...@gmail.com> wrote:
> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/
> client/Admin.html#getTableDescriptor-org.apache.hadoop.hbase.TableName-
>
> On Fri, Nov 18, 2016 at 10:44 AM, Ganesh Viswanathan <ga...@gmail.com>
> wrote:
>
> > Hello,
> >
> > Is there a java API for HBase (using Admin or other libraries) to
> describe
> > a table and get its columnFamilies? I see the *describe 'tablename'*
> shell
> > command in HBase. But I don't see one in the Admin API docs:
> >
> > https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/
> client/Admin.html
> >
> >
> > Thanks,
> > Ganesh
> >
>
Re: Describe-Table Java API
Posted by Ted Yu <yu...@gmail.com>.
https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Admin.html#getTableDescriptor-org.apache.hadoop.hbase.TableName-
On Fri, Nov 18, 2016 at 10:44 AM, Ganesh Viswanathan <ga...@gmail.com>
wrote:
> Hello,
>
> Is there a java API for HBase (using Admin or other libraries) to describe
> a table and get its columnFamilies? I see the *describe 'tablename'* shell
> command in HBase. But I don't see one in the Admin API docs:
>
> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/Admin.html
>
>
> Thanks,
> Ganesh
>