Skip to content

Commit

Permalink
build base hive metastore image
Browse files Browse the repository at this point in the history
  • Loading branch information
Aakcht committed Jan 20, 2025
1 parent 1041723 commit bcd143b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- name: qubership-hive-metastore-transfer
file: docker-transfer/Dockerfile
context: ""
- name: qubership-hive-metastore
file: docker/Dockerfile
context: ""
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ FROM eclipse-temurin:17-jre-noble

USER root

COPY --chmod=0755 docker/entrypoint.sh /opt/entrypoint.sh

RUN set -ex && \
apt-get update && apt-get install -y procps postgresql-client --no-install-recommends

Expand Down Expand Up @@ -58,8 +60,6 @@ RUN ln -s /opt/hadoop/share/hadoop/tools/lib/hadoop-aws* /opt/hadoop/share/hadoo
RUN mkdir -p /opt/hive-metastore-metrics/metrics \
&& sed -i '/export HADOOP_OPTS="\$METASTORE_HADOOP_OPTS \$HADOOP_OPTS"/a\ export HADOOP_OPTS="\$HADOOP_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9025 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -javaagent:\/opt\/hive-metastore\/lib\/jmx_prometheus_javaagent-1.0.1.jar=9028:\/opt\/hive-metastore\/conf\/jmx-exporter-config.yaml -Dcom.sun.management.jmxremote.ssl=false"' /opt/hive-metastore/bin/ext/metastore.sh

COPY --chmod=0755 entrypoint.sh /opt/entrypoint.sh

RUN mkdir -p ${TRUST_CERTS_DIR} && \
chmod 777 ${JAVA_HOME}/lib/security/cacerts && \
chmod -R 777 ${TRUST_CERTS_DIR}
Expand Down

0 comments on commit bcd143b

Please sign in to comment.