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

Allow Docker Image of `apache/hive:4.0.0` to incrementally define the contents of 'hive-site.xml'?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • Not Applicable
    • None
    • None

    Description

      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
          <property>
              <name>hive.server2.support.dynamic.service.discovery</name>
              <value>true</value>
          </property>
          <property>
              <name>hive.zookeeper.quorum</name>
              <value>127.0.0.1:2181</value>
          </property>
      </configuration>
      
      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
          <property>
              <name>hive.server2.enable.doAs</name>
              <value>false</value>
          </property>
          <property>
              <name>hive.tez.exec.inplace.progress</name>
              <value>false</value>
          </property>
          <property>
              <name>hive.tez.exec.print.summary</name>
              <value>true</value>
          </property>
          <property>
              <name>hive.exec.scratchdir</name>
              <value>/opt/hive/scratch_dir</value>
          </property>
          <property>
              <name>hive.user.install.directory</name>
              <value>/opt/hive/install_dir</value>
          </property>
          <property>
              <name>tez.runtime.optimize.local.fetch</name>
              <value>true</value>
          </property>
          <property>
              <name>hive.exec.submit.local.task.via.child</name>
              <value>false</value>
          </property>
          <property>
              <name>mapreduce.framework.name</name>
              <value>local</value>
          </property>
          <property>
              <name>tez.local.mode</name>
              <value>true</value>
          </property>
          <property>
              <name>hive.metastore.warehouse.dir</name>
              <value>/opt/hive/data/warehouse</value>
          </property>
          <property>
              <name>metastore.metastore.event.db.notification.api.auth</name>
              <value>false</value>
          </property>
          <property>
              <name>hive.server2.support.dynamic.service.discovery</name>
              <value>true</value>
          </property>
          <property>
              <name>hive.zookeeper.quorum</name>
              <value>127.0.0.1:2181</value>
          </property>
      </configuration>
      
      • I did create a unit test at https://github.com/linghengqian/hivesever2-v400-sd-test to verify this issue. Just execute the following shell command to verify it on Ubuntu 22.04.4. Feel free to change the contents of the `hive-custom-conf` directory. The unit test uses three host ports, 2181, 10000, and 10002.
      sdk install java 22.0.2-graalce
      sdk use java 22.0.2-graalce
      git clone git@github.com:linghengqian/hivesever2-v400-sd-test.git
      cd ./hivesever2-v400-sd-test/
      docker compose -f ./docker-compose-lingh.yml pull
      docker compose -f ./docker-compose-lingh.yml up -d
      
      # ... Wait five seconds for HiveServer2 to finish initializing.
      
      ./mvnw clean test
      docker compose -f ./docker-compose-lingh.yml down
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            linghengqian Qiheng He
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: