Win a copy of Svelte and Sapper in Action this week 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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.

"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic