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

HiveServer2 should take hiveconf for non Hive properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.2, 2.3.2, 3.0.0
    • 4.0.0-alpha-1
    • None
    • None

    Description

      The -hiveconf command line option works in HiveServer2 with properties in HiveConf.java, but not so well with other properties (like mapred properties or spark properties to control underlying execution engine, or custom properties understood by custom listeners)

      It is inconsistent with HiveCLI.

      HiveCLI behavior:

      ./bin/hive --hiveconf a=b
      hive> set a;
      a=b 

      HiveServer2 behavior:

      ./bin/hiveserver2 --hiveconf a=b
      beeline> set a;
      +-----------------+
      |       set       |
      +-----------------+
      | a is undefined  |
      +-----------------+

      Although it is possible to set up hive-site.xml or even mapred-site.xml to fill in the relevant properties, it is more convenient when testing HS2 with different configuration to be able to use --hiveconf to change on the fly.

      Attachments

        1. HIVE-19767.2.patch
          6 kB
          Szehon Ho
        2. HIVE-19767.3.patch
          8 kB
          Szehon Ho
        3. HIVE-19767.4.patch
          4 kB
          Szehon Ho
        4. HIVE-19767.5.patch
          4 kB
          Szehon Ho
        5. HIVE-19767.patch
          2 kB
          Szehon Ho

        Issue Links

          Activity

            People

              szehon Szehon Ho
              szehon Szehon Ho
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: