Skip to content

Commit 1f749bc

Browse files
committed
Start Metastore with empty catalog
1 parent 950ea8a commit 1f749bc

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

metastore-image/Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ RUN cd /opt && \
4040

4141
COPY hive-conf/hive-site.xml /opt/apache-hive-2.3.6-bin/conf
4242

43-
# Copy metastore_db backup file and restore it
44-
COPY ./metastore_db_backup.tar /
45-
RUN cd /; \
46-
tar xf /metastore_db_backup.tar; \
47-
rm /metastore_db_backup.tar;
48-
43+
4944
ENV HADOOP_HOME /opt/hadoop-2.9.2
5045
ENV DERBY_INSTALL /opt/db-derby-10.10.2.0-bin
5146
ENV DERBY_HOME /opt/db-derby-10.10.2.0-bin

metastore-image/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# start Derby
44
/opt/db-derby-10.10.2.0-bin/bin/startNetworkServer -h 0.0.0.0 &
55

6-
# create Metastore schema. Not needed because we restored a database backup
7-
# /opt/apache-hive-2.3.6-bin/bin/schematool -initSchema -dbType derby
6+
# create Metastore schema
7+
/opt/apache-hive-2.3.6-bin/bin/schematool -initSchema -dbType derby
88

99
# start Metastore
1010
/opt/apache-hive-2.3.6-bin/bin/hive --service metastore -p 9083
-5.46 MB
Binary file not shown.

0 commit comments

Comments
 (0)