apiVersion: v1
kind: ConfigMap
metadata:
  name: hivesite-cm
data:
  hive-site.xml: |
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
    <configuration>
      <property>
        <name>hive.metastore.uris</name>
        <value>thrift://metastore-int-svc.default.svc.cluster.local:9083</value>
        <description> Metastore service used by clients within same K8S cluster as metastore
            For metastore service used by clients in different K8S cluster as metastore set the value tag as
            thrift://'NODE-IP':'PORT-NUM'
        </description>
      <property>
        <name>spark.sql.warehouse.dir</name>
        <value>/opt/spark/work-dir/spark-warehouse</value>
      </property>
    </configuration>
