File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -283,12 +283,16 @@ def get_hadoop_profiles(hadoop_version):
283283 """
284284
285285 sbt_maven_hadoop_profiles = {
286- "hadoop2.7" : ["-Phadoop-2.7" , "-Phive-1.2" ],
287- "hadoop3.2" : ["-Phadoop-3.2" , "-Phive-2.3" ],
286+ "hadoop2.7" : ["-Phadoop-2.7" ],
287+ "hadoop3.2" : ["-Phadoop-3.2" ],
288288 }
289289
290290 if hadoop_version in sbt_maven_hadoop_profiles :
291- return sbt_maven_hadoop_profiles [hadoop_version ]
291+ if ("ghprbPullTitle" in os .environ and
292+ "test-hive1.2" in os .environ ["ghprbPullTitle" ].lower ()):
293+ return sbt_maven_hadoop_profiles [hadoop_version ] + ["-Phive-1.2" ]
294+ else :
295+ return sbt_maven_hadoop_profiles [hadoop_version ]
292296 else :
293297 print ("[error] Could not find" , hadoop_version , "in the list. Valid options" ,
294298 " are" , sbt_maven_hadoop_profiles .keys ())
You can’t perform that action at this time.
0 commit comments