Skip to content

Commit

Permalink
Integrate Apache Iceberg jars with Rock Image
Browse files Browse the repository at this point in the history
  • Loading branch information
theoctober19th committed Jan 24, 2024
1 parent 4531412 commit cde3628
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ parts:
overlay-script: |
AWS_JAVA_SDK_BUNDLE_VERSION='1.12.540'
HADOOP_AWS_VERSION='3.3.6'
ICEBERG_SPARK_RUNTIME_VERSION='3.4_2.12'
ICEBERG_VERSION='1.4.3'
mkdir -p $CRAFT_PART_INSTALL/opt/spark/jars
cd $CRAFT_PART_INSTALL/opt/spark/jars
wget -q "https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/${AWS_JAVA_SDK_BUNDLE_VERSION}/aws-java-sdk-bundle-${AWS_JAVA_SDK_BUNDLE_VERSION}.jar"
Expand All @@ -119,6 +121,14 @@ parts:
echo "DOWNLOAD ERROR: spark-metrics-assembly-3.4-1.0.0.jar could not be downloaded properly! Exiting...." >&2
exit 1
fi
wget -q "https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}/${ICEBERG_VERSION}/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar"
wget -q "https://repo1.maven.org/maven2/org/apache/iceberg/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}/${ICEBERG_VERSION}/iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar.sha1"
echo "`cat iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar.sha1` iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar" | sha1sum --check
if [[ $? -ne 0 ]]
then
echo "DOWNLOAD ERROR: iceberg-spark-runtime-${ICEBERG_SPARK_RUNTIME_VERSION}-${ICEBERG_VERSION}.jar could not be downloaded properly! Exiting...." >&2
exit 1
fi
stage:
- opt/spark/jars

Expand Down

0 comments on commit cde3628

Please sign in to comment.