[SPARK-23807][FOLLOW-UP][BUILD][TEST-HADOOP3.1] Add test-hadoop3.1 phrase
## What changes were proposed in this pull request? Add `test-hadoop3.1` phrase to test Spark against Spark’s Hadoop 3.1 profile. ## How was this patch tested? Tested on jenkins. This is output: ``` [info] Using build tool sbt with Hadoop profile hadoop3.1 under environment amplab_jenkins ... [info] Building Spark (w/Hive 1.2.1) using SBT with these arguments: -Phadoop-3.1 -Pkubernetes -Phive-thriftserver -Pkinesis-asl -Pyarn -Pspark-ganglia-lgpl -Phive -Pmesos test:package streaming-kinesis-asl-assembly/assembly ``` https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/103282/console Closes #24045 from wangyum/SPARK-23807. Authored-by: Yuming Wang <yumwang@ebay.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
This commit is contained in:
parent
93ea353cae
commit
8ab13065f6
|
@ -173,6 +173,8 @@ def main():
|
|||
os.environ["AMPLAB_JENKINS_BUILD_PROFILE"] = "hadoop2.6"
|
||||
if "test-hadoop2.7" in ghprb_pull_title:
|
||||
os.environ["AMPLAB_JENKINS_BUILD_PROFILE"] = "hadoop2.7"
|
||||
if "test-hadoop3.1" in ghprb_pull_title:
|
||||
os.environ["AMPLAB_JENKINS_BUILD_PROFILE"] = "hadoop3.1"
|
||||
|
||||
build_display_name = os.environ["BUILD_DISPLAY_NAME"]
|
||||
build_url = os.environ["BUILD_URL"]
|
||||
|
|
|
@ -274,6 +274,7 @@ def get_hadoop_profiles(hadoop_version):
|
|||
|
||||
sbt_maven_hadoop_profiles = {
|
||||
"hadoop2.7": ["-Phadoop-2.7"],
|
||||
"hadoop3.1": ["-Phadoop-3.1"],
|
||||
}
|
||||
|
||||
if hadoop_version in sbt_maven_hadoop_profiles:
|
||||
|
|
Loading…
Reference in a new issue