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

Metastore: Allow miniHMS to startup standalone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • 4.0.0
    • None
    • Standalone Metastore
    • None

    Description

      Similar to how StartMiniHS2Cluster works.

      https://github.com/apache/hive/blob/master/itests/hive-unit/src/test/java/org/apache/hive/jdbc/miniHS2/StartMiniHS2Cluster.java

      I had to add the following to the metastore-site.xml to connect to a localhost mysql8 (& add mysql jdbc driver as a test dep) and have a listener thrift endpoint.

      <property><name>javax.jdo.option.ConnectionURL</name><value>jdbc:mysql://localhost:3306/hive</value></property>
      <property><name>javax.jdo.option.ConnectionDriverName</name><value>com.mysql.cj.jdbc.driver</value></property>
      <property><name>javax.jdo.option.ConnectionUserName</name><value>hive</value></property>
      <property><name>javax.jdo.option.ConnectionPassword</name><value>hive</value></property>
      <property><name>datanucleus.connectionPool.maxPoolSize</name><value>4</value></property>
      <property><name>metastore.warehouse.dir</name><value>file:///tmp/hms/warehouse</value></property>
      <property><name>metastore.metastore.event.db.notification.api.auth</name><value>false</value></property>
      
      standalone-metastore$ mvn clean install test -Dtest=MiniHMS  -DminiHMS.run=true -Drat.skip=true  
      

      Copy the port off the logs and use it to run the metastore-benchmarks on mysql8.

      Attachments

        1. HIVE-24533.1.patch
          8 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: