Re: Running a hive script from Java via API.

2014-05-16 Thread Edward Capriolo
Actually since hive 13 you seem to need a driver and a username and password. The username and pw can be blank or whatever but DriverManager.getConnection(url) does not seem to work any more. On Fri, May 16, 2014 at 5:11 PM, Jay Vyas wrote: > So i guess your saying "yes : just use the JDBC driv

Re: Running a hive script from Java via API.

2014-05-16 Thread Jay Vyas
So i guess your saying "yes : just use the JDBC driver with the jdbc:hive2://", and that is the equivalent of PigServer (with caveat that it can't run a hive script).

Re: Running a hive script from Java via API.

2014-05-16 Thread Szehon Ho
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

Running a hive script from Java via API.

2014-05-16 Thread Jay Vyas
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