Zhihua Deng created HIVE-27670:
----------------------------------
Summary: Failed to build the image locally on Apple silicon
Key: HIVE-27670
URL: https://issues.apache.org/jira/browse/HIVE-27670
Project: Hive
Issue Type: Improvement
Reporter: Zhihua Deng
When using build.sh to build the image, the arg HADOOP_VERSION is empty, and
the build is failed as a consequence.
{noformat}
=> ERROR [env 5/2] RUN tar -xzvf /opt/hadoop-$HADOOP_VERSION.tar.gz -C /opt/
&& rm -rf /opt/hadoop-$HADOOP_VERSION 0.1s
------
> [env 5/2] RUN tar -xzvf /opt/hadoop-$HADOOP_VERSION.tar.gz -C /opt/ &&
rm -rf /opt/hadoop-$HADOOP_VERSION/share/doc/* && tar -xzvf
/opt/apache-hive-$HIVE_VERSION-bin.tar.gz -C /opt/ && rm -rf
/opt/apache-hive-$HIVE_VERSION-bin/jdbc/* && tar -xzvf
/opt/apache-tez-$TEZ_VERSION-bin.tar.gz -C /opt && rm -rf
/opt/apache-tez-$TEZ_VERSION-bin/share/*:
#0 0.135 tar (child): /opt/hadoop-.tar.gz: Cannot open: No such file or
directory{noformat}
This is caused by the "--build-arg"s following --build-arg
"BUILD_ENV=unarchive" weren't passed to the build command, we'd better add a
'\' at the end of "BUILD_ENV=unarchive" to get rid of the problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)