-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Hadoop 2.7 release. Also, more straightforward pkg_pre_download #62
base: master
Are you sure you want to change the base?
Changes from 1 commit
f5b0683
d11c2cb
212e305
a7688e0
0b01e77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,7 @@ function download_packages { | |
if [[ ! -z ${pkg_pre_download+x} ]]; then | ||
# Does that folder actually exist? | ||
if [[ -d ${pkg_pre_download} ]] ; then | ||
test -d ${CLOUD_HOME}/pkg || rmdir ${CLOUD_HOME}/pkg | ||
test -h ${CLOUD_HOME}/pkg && rm ${CLOUD_HOME}/pkg | ||
rm -f pkg | ||
ln -s ${pkg_pre_download} ${CLOUD_HOME}/pkg | ||
echo "Skipping downloads... using ${pkg_pre_download}" | ||
return 0 | ||
|
@@ -98,7 +97,7 @@ function download_packages { | |
"${mirror}/zookeeper/zookeeper-${pkg_zookeeper_ver}/zookeeper-${pkg_zookeeper_ver}.tar.gz" | ||
"${mirror}/spark/spark-${pkg_spark_ver}/spark-${pkg_spark_ver}-bin-${pkg_spark_hadoop_ver}.tgz") | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
if [[ "$kafka_enabled" -eq 1 ]]; then | ||
urls=("${urls[@]}" "${mirror}/kafka/${pkg_kafka_ver}/kafka_${pkg_kafka_scala_ver}-${pkg_kafka_ver}.tgz") | ||
fi | ||
|
@@ -119,7 +118,7 @@ function download_packages { | |
fname=$(basename "$x"); | ||
echo "fetching ${x}"; | ||
wget -c -O "${CLOUD_HOME}/pkg/${fname}" "$x" || { rm -f "${CLOUD_HOME}/pkg/${fname}"; echo "Error Downloading: ${fname}"; errorList="${errorList} ${x} ${NL}"; }; | ||
done | ||
done | ||
|
||
if [[ -n "${errorList}" ]]; then | ||
echo "Failed to download: ${NL} ${errorList}"; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ pkg_src_maven="https://repo1.maven.org/maven2" | |
pkg_accumulo_ver="1.8.1" | ||
pkg_hbase_ver="1.2.6" | ||
# Note pkg_spark_hadoop_ver below if modifying | ||
pkg_hadoop_ver="2.7.4" | ||
pkg_hadoop_ver="2.7.5" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 actually we need to use the "archive" site in general i'll add a ticket for this. That way this would keep working instead of having to upgrade There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ddseapy yeah, here is the convo |
||
# Note, just the major+minor from Hadoop, not patch level | ||
hadoop_base_ver=${pkg_hadoop_ver:0:3} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can agree with the simplification but I don't always run commands from the $CLOUD_HOME directory. Should we make it
rm -f ${CLOUD_HOME}/pkg
to be sure?