Skip to content

Commit

Permalink
Fix Spark 3.5.2 with scala 2.13 binary release name
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Mar 5, 2025
1 parent a1db382 commit 12635de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/util/install_spark_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ function install_spark() {
local scala_version="$3"
local spark_version_short=$(echo "${spark_version}" | cut -d '.' -f 1,2 | tr -d '.')
local scala_suffix=$([ "${scala_version}" == '2.13' ] && echo '-scala-2.13' || echo '')
local scala_suffix_short=$([ "${scala_version}" == '2.13' ] && echo '-scala2.13' || echo '')
local mirror_host='https://www.apache.org/dyn/closer.lua/'
local url_query='?action=download'
local checksum_suffix='sha512'
local url_path="spark/spark-${spark_version}/"
local local_binary="spark-${spark_version}-bin-hadoop${hadoop_version}${scala_suffix}.tgz"
local local_binary="spark-${spark_version}-bin-hadoop${hadoop_version}${scala_suffix_short}.tgz"
local local_binary_checksum="${local_binary}.${checksum_suffix}"
local local_source="spark-${spark_version}.tgz"
local local_source_checksum="${local_source}.${checksum_suffix}"
Expand Down

0 comments on commit 12635de

Please sign in to comment.