Skip to content

Commit

Permalink
HIVE-28199: Fix docker issues with Hive 3.1.3 on Mac. (#5178)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandgoldenberg authored Apr 17, 2024
1 parent f06cc29 commit 881d38f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packaging/src/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,17 @@ COPY entrypoint.sh /
COPY conf $HIVE_HOME/conf
RUN chmod +x /entrypoint.sh


ARG UID=1000
RUN adduser --no-create-home --disabled-login --gecos "" --uid $UID hive && \
chown hive /opt/tez && \
chown hive /opt/hive && \
chown hive /opt/hadoop && \
chown hive /opt/hive/conf && \
mkdir -p /opt/hive/data/warehouse && \
chown hive /opt/hive/data/warehouse
chown hive /opt/hive/data/warehouse && \
mkdir -p /home/hive/.beeline && \
chown hive /home/hive/.beeline

USER hive
WORKDIR /opt/hive
Expand Down
12 changes: 11 additions & 1 deletion packaging/src/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
- '5432:5432'
volumes:
- hive-db:/var/lib/postgresql
networks:
- hive

metastore:
image: apache/hive:${HIVE_VERSION}
Expand All @@ -35,6 +37,8 @@ services:
- type: bind
source: ${POSTGRES_LOCAL_PATH}
target: /opt/hive/lib/postgres.jar
networks:
- hive

hiveserver2:
image: apache/hive:${HIVE_VERSION}
Expand All @@ -52,7 +56,13 @@ services:
- '10002:10002'
volumes:
- warehouse:/opt/hive/data/warehouse
networks:
- hive

volumes:
hive-db:
warehouse:
warehouse:

networks:
hive:
name: hive

0 comments on commit 881d38f

Please sign in to comment.