Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7753493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:04:32+00:00 2026-06-01T12:04:32+00:00

I am using Hive JDBC driver to do sql like query against my HDFS

  • 0

I am using Hive JDBC driver to do sql like query against my HDFS data store. I’ve been trying to use c3p0 to handle the connection pooling. I am not so sure it’s the right approach since Hive query can be taking quite long time sometimes which means the connection will be held for quite long not being released back to the pool, I am struggling to think of a right setting number for max number of connections in c3p0 configuration as well.

Is there any best practice for pooling the hive jdbc connection? c3p0? DBCP?

How about MAX_POOL_SIZE? Should it be bigger than normal setting for RDB ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T12:04:33+00:00Added an answer on June 1, 2026 at 12:04 pm

    Oh great, so the question in the thread you mention was actually asked by me a long ago 🙂
    It’d be interesting to see how to use that in your use case.

    But let me tell you Hive launches Hadoop jobs whenever required depending upon you query.
    So, if you want to execute multiple queries, which I believe is what you want to do here, you need to use a job scheduler that can run multiple jobs concurrently. Hadoop by default uses first-in-first-out(FIFO) scheduler, pulling jobs from a work queue. So, would like to switch to Fair scheduler or Capacity scheduler.

    The core idea behind the fair share scheduler was to assign resources to jobs such that on average over time, each job gets an equal share of the available resources.

    The capacity scheduler shares some of the principles of the fair scheduler but has distinct differences, too. First, capacity scheduling was defined for large clusters, which may have multiple, independent consumers and target applications.In capacity scheduling, instead of pools, several queues are created, each with a configurable number of map and reduce slots. Each queue is also assigned a guaranteed capacity (where the overall capacity of the cluster is the sum of each queue’s capacity). Second, ability to prioritize jobs within a queue. Lastly, is the presence of strict access controls on queues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to set up EMR workflow (with DynamoDB and Hive) using boto
I am using HIVE with two tables looking like (more or less): -TABLE1 defined
I am running hive query using get_json_object to read json strings from files in
I'm trying to replace registry hive file by using RegReplaceKey() (new file is created
I'd like to connect to a Hadoop-based Hive datastore using Perl. Hive allows connection
I'm thinking of using HBase to store logs (web log data), each log would
I would like to execute a Hive query on the server in an asynchronous
How can I use In clause in Hive I want to write something like
besides using Hive, is it a good idea in order to execute ad hoc
1) I started using hive from last 2 months. I have a same task

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.