Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR excludes 'hive-thriftserver' in modules to test for hadoop3.2 for now as well

How was this patch tested?

Manually tested via run-tests.py

>>> x = [x.name for x in determine_modules_to_test([modules.sql])]
>>> x # doctest: +NORMALIZE_WHITESPACE
... # doctest: +SKIP
['sql', 'avro', 'hive', 'mllib', 'sql-kafka-0-10', 'examples', 'hive-thriftserver',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l manually tested with HADOOP_PROFILE=hadoop3.2 python -m doctest run-tests.py and python -m doctest run-tests.py

hadoop_version = os.environ.get("HADOOP_PROFILE", "hadoop2.7")
if hadoop_version == "hadoop3.2":
print("[info] Skip unsupported module:", "hive-thriftserver")
all_modules = [m for m in all_modules if m.name != "hive-thriftserver"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarily, I tested all_modules. This is just to move the codes to remove later in single place.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just does the same thing as before, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea I just moved.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Thank you.

@HyukjinKwon HyukjinKwon changed the title [SPARK-27402][INFRA][FOLLOW-UP] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now [SPARK-27402][INFRA][FOLLOW-UP][test-hadoop3.2][test-maven] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now May 20, 2019
@dongjoon-hyun
Copy link
Member

Thank you so much, @HyukjinKwon !

else:
hadoop_version = os.environ.get("HADOOP_PROFILE", "hadoop2.7")
print("[info] Choosing supported modules with Hadoop profile", hadoop_version)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is a partial revert of SPARK-27402, ping @wangyum .

changed_modules = toposort_flatten(
{m: set(m.dependencies).intersection(modules_to_test) for m in modules_to_test}, sort=True)

# TODO: Skip hive-thriftserver module for hadoop-3.2. remove this once hadoop-3.2 support it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just keeping this change isn't enough because build and some other checks use profiles from root's build_profile_flags.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK. Thank you @HyukjinKwon

Copy link
Member Author

@HyukjinKwon HyukjinKwon May 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, this fix itself is a temp fix too in order to make the affected scope isolated and minimised. To fix it properly, we should maybe be able to fix it within Module at modules.py (and remove this entire module conditionally)

@HyukjinKwon
Copy link
Member Author

profiles look fine so far. I will switch to SBT's to make sure it doesn't affect our regular builds.

@HyukjinKwon HyukjinKwon changed the title [SPARK-27402][INFRA][FOLLOW-UP][test-hadoop3.2][test-maven] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now [SPARK-27402][INFRA][FOLLOW-UP][test-hadoop3.2] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now May 20, 2019
@HyukjinKwon
Copy link
Member Author

retest this please

@HyukjinKwon HyukjinKwon changed the title [SPARK-27402][INFRA][FOLLOW-UP][test-hadoop3.2] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now [SPARK-27402][INFRA][FOLLOW-UP] Exclude 'hive-thriftserver' in modules to test for hadoop3.2 for now May 20, 2019
@HyukjinKwon
Copy link
Member Author

retest this please

@HyukjinKwon
Copy link
Member Author

okie profiles look good.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105544 has finished for PR 24644 at commit 92abff8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105545 has finished for PR 24644 at commit 92abff8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105543 has finished for PR 24644 at commit 92abff8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105542 has finished for PR 24644 at commit fd05eaf.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@wangyum
Copy link
Member

wangyum commented May 20, 2019

@HyukjinKwon May be need add [test-maven] in title because of HIVE-21639.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105541 has finished for PR 24644 at commit 995ef1a.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105547 has finished for PR 24644 at commit 92abff8.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented May 20, 2019

Do you mean regular PR build with hadoop 2.7 is affected? I am trying to see if this PR affects regular build with hadoop 2.7

@HyukjinKwon
Copy link
Member Author

retest this please

@wangyum
Copy link
Member

wangyum commented May 20, 2019

hadoop-3.2 needs [test-maven]. hadoop-2.7 does not [test-maven].

@HyukjinKwon
Copy link
Member Author

yea thanks for clarification.

@SparkQA
Copy link

SparkQA commented May 20, 2019

Test build #105557 has finished for PR 24644 at commit 92abff8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member Author

Okie. I think it's ready if I am not mistaken.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Merged to master.

@HyukjinKwon
Copy link
Member Author

Thanks, @dongjoon-hyun

@HyukjinKwon HyukjinKwon deleted the SPARK-27402 branch March 3, 2020 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants