Re: Hbase shell script from java

2016-04-25 Thread Saad Mufti
ance or other reasons. > > -Saurabh > > -Original Message- > From: Saad Mufti [mailto:saad.mu...@gmail.com] > Sent: Sunday, April 24, 2016 2:55 PM > To: user@hbase.apache.org > Subject: Re: Hbase shell script from java > > Why can't you install hbase on yo

RE: Hbase shell script from java

2016-04-25 Thread Saurabh Malviya (samalviy)
[mailto:saad.mu...@gmail.com] Sent: Sunday, April 24, 2016 2:55 PM To: user@hbase.apache.org Subject: Re: Hbase shell script from java Why can't you install hbase on your local machine, with the configuration pointing it to your desired cluster, then run the hbase shell and its script locally? I believe

Re: Hbase shell script from java

2016-04-24 Thread Saad Mufti
.eu/executing-operating-system-commands-from-java/ > > > On Apr 23, 2016, at 10:18 PM, Saurabh Malviya (samalviy) < > samal...@cisco.com> wrote: > > > > Hi, > > > > Is there any way to run hbase shell script from Java. Also mentioned > this question earlie

Re: Hbase shell script from java

2016-04-24 Thread Saurabh Malviya (samalviy)
iya (samalviy) <samal...@cisco.com> > wrote: > > Hi, > > Is there any way to run hbase shell script from Java. Also mentioned this > question earlier in below url earlier. > > As we are having bunch of scripts and need to change frequently for > performance tuning.

Re: Hbase shell script from java

2016-04-24 Thread Ted Yu
Please see https://blog.art-of-coding.eu/executing-operating-system-commands-from-java/ > On Apr 23, 2016, at 10:18 PM, Saurabh Malviya (samalviy) <samal...@cisco.com> > wrote: > > Hi, > > Is there any way to run hbase shell script from Java. Also mentioned this >

Hbase shell script from java

2016-04-23 Thread Saurabh Malviya (samalviy)
Hi, Is there any way to run hbase shell script from Java. Also mentioned this question earlier in below url earlier. As we are having bunch of scripts and need to change frequently for performance tuning. http://grokbase.com/p/hbase/user/161ezbnk11/run-hbase-shell-script-from-java -Saurabh

Re: Run hbase shell script from java

2016-01-14 Thread Serega Sheypak
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.

Re: Run hbase shell script from java

2016-01-13 Thread anil gupta
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

Run hbase shell script from java

2016-01-13 Thread Serega Sheypak
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!

Re: Run hbase shell script from java

2016-01-13 Thread Daniel Vimont
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: