-
Notifications
You must be signed in to change notification settings - Fork 230
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
Update Databricks build scripts [databricks] #5588
Changes from 1 commit
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 |
---|---|---|
|
@@ -26,7 +26,8 @@ | |
base_spark_pom_version = '3.1.1' | ||
base_spark_version_to_install_databricks_jars = base_spark_pom_version | ||
clusterid = '' | ||
build_profiles = '' | ||
# can take comma seperated maven options, e.g., -Pfoo=1,-Dbar=2,... | ||
mvn_opt = '' | ||
jar_path = '' | ||
# `spark_conf` can take comma seperated multiple spark configurations, e.g., spark.foo=1,spark.bar=2,...' | ||
spark_conf = '' | ||
|
@@ -43,7 +44,7 @@ def usage(): | |
' -d <scriptdestination>' | ||
' -z <sparktgz>' | ||
' -v <basesparkpomversion>' | ||
' -b <buildprofiles>' | ||
' -b <mvnoptions>' | ||
' -j <jarpath>' | ||
' -n <skipstartingcluster>' | ||
' -f <sparkconf>' | ||
|
@@ -60,7 +61,7 @@ def usage(): | |
'dest=', | ||
'sparktgz=', | ||
'basesparkpomversion=', | ||
'buildprofiles=', | ||
'mvnoptions=', | ||
'jarpath', | ||
'sparkconf', | ||
'sparkinstallver=']) | ||
|
@@ -89,7 +90,7 @@ def usage(): | |
elif opt in ('-v', '--basesparkpomversion'): | ||
base_spark_pom_version = arg | ||
elif opt in ('-b', '--bulidprofiles'): | ||
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. Should we change --bulidprofiles to --mvnoptions? |
||
build_profiles = arg | ||
mvn_opt = arg | ||
elif opt in ('-j', '--jarpath'): | ||
jar_path = arg | ||
elif opt in ('-f', '--sparkconf'): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,10 @@ def main(): | |
print("rsync command: %s" % rsync_command) | ||
subprocess.check_call(rsync_command, shell = True) | ||
|
||
ssh_command = "bash -c 'ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@%s -p 2200 -i %s %s %s %s %s %s 2>&1 | tee buildout; if [ `echo ${PIPESTATUS[0]}` -ne 0 ]; then false; else true; fi'" % (master_addr, params.private_key_file, params.script_dest, params.tgz_dest, params.base_spark_pom_version, params.base_spark_version_to_install_databricks_jars, params.build_profiles) | ||
ssh_command = "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@%s -p 2200 -i %s " \ | ||
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. To avoid this mismatching, pass parameters through shell environment for the script file build.sh instead, e.g., |
||
"'SPARKSRCTGZ=%s BASE_SPARK_VERSION=%s BASE_SPARK_VERSION_TO_INSTALL_DATABRICKS_JARS=%s MVN_OPT=%s \ | ||
bash %s %s 2>&1 | tee buildout; if [ `echo ${PIPESTATUS[0]}` -ne 0 ]; then false; else true; fi'" % \ | ||
(master_addr, params.private_key_file, params.tgz_dest, params.base_spark_pom_version, params.base_spark_version_to_install_databricks_jars, params.mvn_opt, params.script_dest, ' '.join(params.script_args)) | ||
print("ssh command: %s" % ssh_command) | ||
subprocess.check_call(ssh_command, shell = True) | ||
|
||
|
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 assume the below databricks321,!snapshot-shims should be removed
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.
Oh yes, my fault, this changed of the line 321 was wrongly revoked in my local branch. Fixed