File tree 2 files changed +25
-8
lines changed
extensions/extensions-docker/aissemble-hive-service
src/main/resources/docker
2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 184
184
</execution >
185
185
</executions >
186
186
</plugin >
187
+ <plugin >
188
+ <groupId >org.codehaus.mojo</groupId >
189
+ <artifactId >wagon-maven-plugin</artifactId >
190
+ <version >2.0.2</version >
191
+ <executions >
192
+ <execution >
193
+ <id >get-hadoop</id >
194
+ <phase >prepare-package</phase >
195
+ <goals >
196
+ <goal >download-single</goal >
197
+ </goals >
198
+ <configuration >
199
+ <url >https://dlcdn.apache.org</url >
200
+ <fromFile >hadoop/common/hadoop-${version.hadoop} /hadoop-${version.hadoop} .tar.gz</fromFile >
201
+ <toFile >${dockerbuild.bin.directory} /hadoop.tar.gz</toFile >
202
+ <skipIfExists >true</skipIfExists >
203
+ </configuration >
204
+ </execution >
205
+ </executions >
206
+ </plugin >
187
207
</plugins >
188
208
</build >
189
209
Original file line number Diff line number Diff line change @@ -17,17 +17,14 @@ RUN set -eux; \
17
17
microdnf install -y gzip util-linux
18
18
19
19
# Install hadoop
20
- RUN cd /tmp \
21
- && curl https://archive.apache.org/dist/hadoop/common/hadoop-${HADOOP_VERSION}/hadoop-${HADOOP_VERSION}.tar.gz \
22
- | tar -xzf - \
20
+ RUN --mount=source=${BIN_DIR},target=/tmp/bin cd /tmp \
21
+ && tar -xzf /tmp/bin/hadoop.tar.gz \
23
22
&& mv hadoop-${HADOOP_VERSION} $HADOOP_HOME
24
23
25
24
# Use standalone binary instead of full-service version on original image
26
- COPY ${BIN_DIR}/hive-standalone-metastore-server-bin.tar.gz /tmp
27
- RUN cd /tmp \
28
- && tar -xf /tmp/hive-standalone-metastore-server-bin.tar.gz \
29
- && mv apache-hive-metastore-${METASTORE_VERSION}-bin $HIVE_HOME \
30
- && rm /tmp/hive-standalone-metastore-server-bin.tar.gz
25
+ RUN --mount=source=${BIN_DIR},target=/tmp/bin cd /tmp \
26
+ && tar -xf /tmp/bin/hive-standalone-metastore-server-bin.tar.gz \
27
+ && mv apache-hive-metastore-${METASTORE_VERSION}-bin $HIVE_HOME
31
28
32
29
# Update library jars used by Hive and Hadoop
33
30
COPY --chmod=755 ./src/main/resources/scripts/setup.sh $HIVE_HOME/setup.sh
You can’t perform that action at this time.
0 commit comments