Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Hive JDBC queries timeouts and status

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am running a Hadoop cluster with Hive and wonder if there is any way of getting the status of a query and setting a default timeout.
Since I am running the JDBC Hive calls from an outside node that has not Hadoop installed I cannot get status of a job the regular way.
I have made investigations but have not found anything yet that could solve this. (Maybe there isn't any way)

There is a method in the API called setQueryTimeout but if you run a query it will throw an exception like:

I suspect that since the calls are waiting for a ResultSet they have to be blocking and syncronous.
Is there a way to get info about status of a Hive Query?
I am using Hive 0.13.

When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!