I had try the followings, and it works..
SessionState session = new SessionState(conf);// the confi should have
enough informations,such as the access to hive meta server database(the
myslq 额头)
session.setIsSilent(true);
session.setIsVerbose(true);
SessionState.start(session);
Driver driver = new
You can directly embed the hive client library in your java program, and
use it without running a hive service. My blog post at
http://csgrad.blogspot.com/2010/04/to-use-language-other-than-java-say.htmldescribes
how to run hive queries from Jython. Something very similar
should work for Java.
D
Hello,
I would like to embed Hive (client) in my application to execute a sequence
of queries. Right now I do it using CLI (hive -f myScript.sql). Problem
with this approach is that I do not get an return / error code to know the
status of query programmatically.
So my question is what is the bes
Hi,
I was wondering whether it's possible to embed a Hive runtime inside
another Java program.
Basically, if the hadoop*xml are present in the classpath I expect it to
submit the job to the Hadoop cluster, but if not it will default to local
mode and execute the job.
Thanks in advance.
--
Rega
Hey all,
We have many projects that use hive. Now that hive is in maven I really
wanted to be able to embed hive in my application for unit testing. I know
some work has been done to unit test UDF's with mocks etc, but that is not
the testing I am looking for. I have workflows that need to chain t