hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Vimont <dan...@commonvox.org>
Subject Re: Run hbase shell script from java
Date Thu, 14 Jan 2016 00:52:43 GMT
Serega,

I agree with Anil Gupta that direct use of the Java API should prove much
more straightforward than indirectly invoking the HBase shell from within
Java.

If you need a brief "gist" example of how to use the Java API for HBase,
you can find one here:
https://gist.github.com/dvimont/a7791f61c4ba788fd827

Cheers,

Dan Vimont

On Thu, Jan 14, 2016 at 9:12 AM, anil gupta <anilgupta84@gmail.com> wrote:

> Hey Serega,
>
> Have you tried using Java API of HBase to create table? IMO, invoking a
> shell script from java program to create a table might not be the most
> elegant way.
> Have a look at
>
> https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/HBaseAdmin.html
>
> HTH,
> Anil Gupta
>
> On Wed, Jan 13, 2016 at 1:30 PM, Serega Sheypak <serega.sheypak@gmail.com>
> wrote:
>
> > Hi, is there any easy way/example/howto to run 'create table ' shell
> script
> > from java?
> > Usecase: I'm tired to write table DDL in shell script and in Java for
> > integration testing. I want to run shell script table DDL from java.
> > Thanks!
> >
>
>
>
> --
> Thanks & Regards,
> Anil Gupta
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message