File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,7 @@ RUN cd /opt && \
40
40
41
41
COPY hive-conf/hive-site.xml /opt/apache-hive-2.3.6-bin/conf
42
42
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
+
49
44
ENV HADOOP_HOME /opt/hadoop-2.9.2
50
45
ENV DERBY_INSTALL /opt/db-derby-10.10.2.0-bin
51
46
ENV DERBY_HOME /opt/db-derby-10.10.2.0-bin
Original file line number Diff line number Diff line change 3
3
# start Derby
4
4
/opt/db-derby-10.10.2.0-bin/bin/startNetworkServer -h 0.0.0.0 &
5
5
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
8
8
9
9
# start Metastore
10
10
/opt/apache-hive-2.3.6-bin/bin/hive --service metastore -p 9083
You can’t perform that action at this time.
0 commit comments