Skip to content

getindata/hive-metastore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hive-metastore

Hive-metastore helm chart

Installation

Hive metastore requires Postgres DB. It can be configured with values e.g.:

postgres:
  host: "postgresql"
  port: 5432
  db: metastore
  username: admin
  password: pass

It is possible to use an existing secret from another source. The createSecret flag in values.yaml is used for this purpose.If we are using an existing secret, its name should look like this: {{ .Release.Name }}-pgauth. If we want the secret to be generated from the data provided in the postgres section, the createSecret flag in values.yaml should be set to true.

The docker image is published on github repository (ghcr.io). Login to github repository to pull image:

docker login ghcr.io -u [github_username]

To install hive-metastore:

helm repo add getindata-hms https://getindata.github.io/hive-metastore
helm install hms getindata-hms/hive-metastore

Essential libraries for Flink 1.19.1 (/opt/flink/lib)

Example hive-site.xml

<configuration>
   <!-- PostgreSQL connection details -->
   <property>
      <name>javax.jdo.option.ConnectionURL</name>
      <value>jdbc:postgresql://postgres-postgresql:5432/metastore</value>
      <description>Metadata is stored in a PostgreSQL server</description>
   </property>

   <property>
      <name>javax.jdo.option.ConnectionDriverName</name>
      <value>org.postgresql.Driver</value>
      <description>PostgreSQL JDBC driver class</description>
   </property>

   <property>
      <name>javax.jdo.option.ConnectionUserName</name>
      <value>admin</value>
      <description>Username for connecting to the PostgreSQL server</description>
   </property>

   <property>
      <name>javax.jdo.option.ConnectionPassword</name>
      <value>pass</value>
      <description>Password for connecting to the PostgreSQL server</description>
   </property>

   <!-- Hive Metastore service details -->
   <property>
       <name>hive.metastore.uris</name>
       <value>thrift://hms-hive-metastore:9083</value>
       <description>IP address (or fully-qualified domain name) and port of the metastore host</description>
   </property>

   <property>
       <name>hive.metastore.schema.verification</name>
       <value>true</value>
   </property>
</configuration>