forked from boozallen/aissemble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boozallen#127 V2 Metastore Service Chart
Signed-off-by: Peter McClonski <mcclonski_peter@bah.com>
- Loading branch information
1 parent
c2acab9
commit 5fb052e
Showing
22 changed files
with
185 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 14 additions & 19 deletions
33
...ensions-docker/aissemble-hive/aissemble-hive-service/src/main/resources/docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
FROM openjdk:11-jre-slim | ||
ARG METASTORE_VERSION | ||
FROM apache/hive:${METASTORE_VERSION} as appsource | ||
|
||
FROM eclipse-temurin:17-jre as final | ||
|
||
LABEL org.opencontainers.image.source = "https://github.com/boozallen/aissemble" | ||
|
||
WORKDIR /opt | ||
|
||
ENV HADOOP_VERSION=3.3.6 | ||
ENV METASTORE_VERSION=3.0.0 | ||
|
||
ENV HADOOP_HOME=/opt/hadoop-${HADOOP_VERSION} | ||
ENV HIVE_HOME=/opt/apache-hive-metastore-${METASTORE_VERSION}-bin | ||
ARG JARS_DIR | ||
|
||
RUN apt-get update && apt-get install curl -y | ||
ENV HADOOP_HOME=/opt/hadoop | ||
ENV HIVE_HOME=/opt/hive | ||
|
||
RUN curl -L https://dlcdn.apache.org/hive/hive-standalone-metastore-${METASTORE_VERSION}/hive-standalone-metastore-${METASTORE_VERSION}-bin.tar.gz | tar zxf - && \ | ||
curl -L https://dlcdn.apache.org/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz | tar zxf - | ||
|
||
RUN curl -L https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.30/mysql-connector-java-8.0.30.jar \ | ||
-o ${HIVE_HOME}/lib/mysql-connector-java-8.0.30.jar && \ | ||
curl -L https://repo1.maven.org/maven2/com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar \ | ||
-o ${HIVE_HOME}/lib/javax.activation-1.2.0.jar && \ | ||
curl https://github.com/delta-io/connectors/releases/download/v0.6.0/delta-hive-assembly_2.12-0.6.0.jar \ | ||
-o ${HIVE_HOME}/lib/delta-hive-assembly_2.12-0.6.0.jar | ||
COPY --from=appsource /opt/hadoop ${HADOOP_HOME} | ||
COPY --from=appsource /opt/hive ${HIVE_HOME} | ||
|
||
RUN groupadd -r hive --gid=1000 && \ | ||
useradd --home ${HIVE_HOME} -g hive --shell /usr/sbin/nologin --uid 1000 hive && \ | ||
chown hive:hive -R ${HIVE_HOME} | ||
chown hive:hive -R ${HIVE_HOME} && \ | ||
ln -s ${JAVA_HOME} /opt/jre | ||
|
||
ADD ${JARS_DIR}/* ${HIVE_HOME}/lib/ | ||
|
||
USER hive | ||
EXPOSE 9083 | ||
|
||
ENTRYPOINT ["/opt/apache-hive-metastore-3.0.0-bin/bin/start-metastore"] | ||
ENTRYPOINT ["/opt/hive/bin/hive", "--skiphadoopversion", "--skiphbasecp", "--verbose", "--service", "metastore"] |
30 changes: 0 additions & 30 deletions
30
...ions-helm/extensions-helm-hive/aissemble-hive-metastore-service-chart/README.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
...ions-helm-spark-infrastructure/aissemble-hive-metastore-service-chart/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# aiSSEMBLE™ Hive Metastore Service Helm Chart | ||
Baseline Helm chart for packaging and deploying Hive Metastore Services. Chart is built and managed during the normal Maven build lifecycle and placed in the **target/helm/repo** directory. See https://github.com/kokuwaio/helm-maven-plugin for more details. | ||
|
||
# Basic usage with Helm CLI | ||
To use the module, perform [extension-helm setup](../README.md#leveraging-extensions-helm) and override the chart version with the desired aiSSEMBLE version. For example: | ||
```bash | ||
helm install hive-metastore-service ghcr.io/boozallen/aissemble-hive-metastore-service-chart --version <AISSEMBLE-VERSION> | ||
``` | ||
**Note**: *the version should match the aiSSEMBLE project version.* | ||
|
||
# Properties | ||
| Property | Description | Required Override | Default | | ||
|-------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| app.name | Sets label for app.kubernetes.io/name | No | hive-metastore-service | | ||
| app.version | Sets label for app.kubernetes.io/version | No | Chart.AppVersion (aiSSEMBLE project version) | | ||
| replicaCount | Sets desired number of replicas (instances) | No | 1 | | ||
| hostname | The hostname for the application | No | hive-metastore-service | | ||
| image.name | The image name | Yes | boozallen/aissemble-hive-service | | ||
| image.imagePullPolicy | The image pull policy | No | IfNotPresent | | ||
| image.dockerRepo | The image docker repository | No | ghcr.io/ | | ||
| image.tag | The image tag | No | Chart.AppVersion | | ||
| deployment.ports | The deployment ports | No |   - name: "thrift" <br/>  containerPort: 9083 | | ||
| deployment.env | The environment variables for the pod | No | See [values.yaml](./values.yaml) | | ||
| deployment.restartPolicy | The deployment restart policy | No | Always | | ||
| deployment.volumeMounts | The deployment volume mounts | No |   - name: metastore-service-config <br/>  mountPath: /opt/hive/conf/metastore-site.xml <br/>  subPath: metastore-site.xml | | ||
| deployment.volumes | The deployment volumes | No |   - name: metastore-service-config <br/>  configMap: <br/>   name: metastore-service-config <br/>   items: <br/>     - key: metastore-site.xml <br/>     path: metastore-site.xml | | ||
| service.spec.ports | The service spec ports | No |   - name: "thrift" <br/>  port: 9083 <br/>  targetPort: 9083 | | ||
| configMap.metastoreServiceConfig.baseProperties | Default configuration for the metastore service | No | See [values.yaml](./values.yaml) | | ||
| configMap.metastoreServiceConfig.properties | Optional configuration for the metastore service. Properties added here will be included in the configuration without overriding the default properties | No | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.