gatorsmile commented on a change in pull request #24391: 
[SPARK-27402][SQL][test-hadoop3.2][test-maven]  Fix hadoop-3.2 test 
issue(except the hive-thriftserver module)
URL: https://github.com/apache/spark/pull/24391#discussion_r281270398
 
 

 ##########
 File path: dev/sparktestsupport/modules.py
 ##########
 @@ -18,9 +18,15 @@
 from functools import total_ordering
 import itertools
 import re
+import os
 
 all_modules = []
 
+if os.environ.get("AMPLAB_JENKINS"):
+    hadoop_version = os.environ.get("AMPLAB_JENKINS_BUILD_PROFILE", 
"hadoop2.7")
+else:
+    hadoop_version = os.environ.get("HADOOP_PROFILE", "hadoop2.7")
+
 
 Review comment:
   We should have a log message to show which profile we are using; otherwise, 
it is hard for us to know which profile is activated. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to