You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Alexander Kolbasov <ak...@conviva.com> on 2014/08/12 08:34:56 UTC

Getting access to hadoop output from Hive JDBC session

Hello,

I am switching from Hive 0.9 to Hive 0.12 and decided to start using Hive metadata server mode. As it turns out, Hive1 JDBC driver connected as "jdbc:hive://" only works via direct access to the metastore database. The Hive2 driver connected as "jdbc:hive2://" does work with the remote Hive metastore server, but there is another serious difference in behavior. When I was using Hive1 driver I saw Hadoop output - the information about Hive job ID and the usual Hadoop output showing percentages of map and reduce done. The Hive2 driver silently waited for map/reduce to complete and just produced the result.

As I can see, both Hive itself and beeline are able to get the same Hadoop output as I was getting with Hive1 driver, so it should be somehow possible but it isn't clear how they do this. Can someone suggest the way to get Hadoop output with Hive2 JDBC driver?

Thanks for any help!

- Alex




Re: Getting access to hadoop output from Hive JDBC session

Posted by Vaibhav Gumashta <vg...@hortonworks.com>.
Alex,

This is probably what you are looking for: Beeline should have an option
for user to see the query progress (
https://issues.apache.org/jira/browse/HIVE-7615).

Thanks,
--Vaibhav

On Mon, Aug 11, 2014 at 11:34 PM, Alexander Kolbasov <ak...@conviva.com>
wrote:

>  Hello,
>
>  I am switching from Hive 0.9 to Hive 0.12 and decided to start using
> Hive metadata server mode. As it turns out, Hive1 JDBC driver connected as
> "jdbc:hive://" only works via direct access to the metastore database. The
> Hive2 driver connected as "jdbc:hive2://" does work with the remote Hive
> metastore server, but there is another serious difference in behavior. When
> I was using Hive1 driver I saw Hadoop output - the information about Hive
> job ID and the usual Hadoop output showing percentages of map and reduce
> done. The Hive2 driver silently waited for map/reduce to complete and just
> produced the result.
>
>  As I can see, both Hive itself and beeline are able to get the same
> Hadoop output as I was getting with Hive1 driver, so it should be somehow
> possible but it isn't clear how they do this. Can someone suggest the way
> to get Hadoop output with Hive2 JDBC driver?
>
>  Thanks for any help!
>
>  - Alex
>
>
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.