Hi, guys,thanks for reply.
I have a table named 'MY_TABLE'
I have two ways to create it:
1. using habse shell script: create table 'MY_TABLE' bla-bla-bla... I use
hbase shell script for production deployment purposes. It's easier to run,
maintain and do migrations (change some table attributes)
2.
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
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!
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: