It is not really recommended anymore, as HiveServer2 with a client is the where the community is focusing now. And JDBC-client supports mode where the HiveServer2 is embedded.
Some older product like HiveCLI or Beeline did like what you said, but again this mode might not be fully supported. For testing, you can execute scripts from Driver.run(script). Many examples in the hive unit-test code about that. Hope that helps, Szehon On Fri, May 16, 2014 at 9:00 AM, Jay Vyas <jayunit...@gmail.com> wrote: > Hi hive. > > Is there an API akin to PigServer, which allows you to run a hive script > from Java directly, using hive embedded mode, without use of JDBC? > > -- > Jay Vyas > http://jayunit100.blogspot.com >