Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4147

Slow Hive JDBC in concurrency mode to create/drop table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.10.0
    • None
    • HiveServer2, JDBC
    • None

    Description

      It's very slow using hive jdbc in concurrency mode to create/drop table, which is 20 times slower than using HiveMetatstoreClient.

      test steps:
      1. create 100 different hive table one by one by using hive jdbc: "create table ......"
      2. drop table one by one by using hive jdbc: "drop table ......" and timing
      3. create 100 different hive table one by one by using hive jdbc: "create table ......"
      4. drop tables one by one by using new HiveMetatstoreClient().dropTable("default", "table_name") and timing

      results
      step 2 is 20 times slower than step 4.
      basically hive jdbc is 20 times slower than HiveMetatstoreClient not only create/table, but also the same kind of calls.

      Dropping tables via this low level API could cause issues if there are any clients concurrently querying the table.

      Attachments

        Activity

          People

            brocknoland Brock Noland
            alo.alt Alexander Alten-Lorenz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: