Installing and Configuring Hive Metastore
This section describes how to install and configure Hive Metastore on HPE Ezmeral Runtime Enterprise.
Prerequisites
- Log in as a Kubernetes Tenant Administrator or a Kubernetes Tenant Member in HPE Ezmeral Runtime Enterprise.
About this task
In HPE Ezmeral Runtime Enterprise, you can install Hive Metastore using GUI or manually using the Helm chart for Apache Spark.
Learn more about supported Spark versions at Interoperability Matrix for Spark.
Installing Hive Metastore Using the GUI
About this task
Procedure
- Log in as a Kubernetes Tenant Administrator or a Kubernetes Tenant Member on the HPE Ezmeral Runtime Enterprise GUI.
- Click Applications in the main menu. You will see Kubernetes Applications tiles under KubeDirector tab.
- Navigate to Hive Metastore tile and click Launch.
-
Configure Cluster Detail and
Settings on Create
Application screen.
- Cluster Detail:
- Enter the Name and Description of the application.
- Settings:
- Set the CPU and Memory (GB) resources.
-
To view
yaml
, click Edit/Launch yaml. - Click Submit.
Results
Installing Hive Metastore Using the Helm
Prerequisites
- Install and configure Helm 3.
- Install and configure kubectl..
About this task
Install the Hive Metastore on Data Fabric tenants which are HPE Ezmeral Data Fabric on Kubernetes tenants or HPE Ezmeral Data Fabric on Bare Metal tenants or non Data Fabric tenants using the Helm chart.
To configure Hive Metastore to work with the MySQL Database, you must have a secret with MySQL server credentials in a tenant namespace. See Creating a Hive Metastore Secret.
Procedure
- Installing Hive Metastore on Data Fabric
tenants:
To
helm install
the Hive Metastore on data-fabric (internal
orexternal
) tenants, run the following command:helm install <hive-metastore-name> ./<path-to-hive-metastore-chart> -n <tenant-namespace>
- Installing Hive Metastore on non Data Fabric
tenants:
To
helm install
the Hive Metastore on non data-fabric (none
) tenants, run the following command:helm install <hive-metastore-name> ./<path-to-hive-metastore-chart> -n <tenant-namespace> --set tenantIsUnsecure=true
helm install
:
--set mysqlDB=true --set hiveSecret=<hive-metastore-secret-name>
Installing the Helm chart in a non-tenant namespace can cause error due to missing configmaps and secrets.
Running the helm install
installs the Hive Metastore in
a tenant namespace.
Example
- To
helm install
the Hive Metastore on Data Fabric (internal
orexternal
) tenants, run the following command:helm install hivemeta ./hivemeta-chart -n sampletenant
- To
helm install
the Hive Metastore on non Data Fabric (none
) tenants, run the following command:helm install hivemeta ./hivemeta-chart -n sampletenant --set tenantIsUnsecure=true
helm install
:
--set mysqlDB=true --set hiveSecret=hivemeta-secret