-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add Arguments for Distributed Mode in Qualification Tool CLI #1429
Merged
parthosa
merged 14 commits into
NVIDIA:spark-rapids-tools-distributed-base
from
parthosa:spark-rapids-tools-distributed-args-v2
Dec 20, 2024
Merged
Changes from 9 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
5dea85d
Add arguments for running tools in distributed mode
parthosa e629799
Refactor to use tools config file
parthosa 55e1e06
Update specification
parthosa 33a4841
Update tools config file
parthosa ad88b94
Update comment
parthosa d0a3ec0
Add pylint exception
parthosa 04edb7d
Include hdfs output dir in tools config file
parthosa 5989d00
Add comment about assumption of Spark JARs
parthosa 117f987
Revert changes in stats report
parthosa b252e7f
Submission mode Args
parthosa 34d1dc1
Modify the arguments structure
parthosa 00584f6
Bump up the API version for tools config file
parthosa 9b8111a
Update python arg tests
parthosa 1ea8147
Remove pylint disable rule in CSPs
parthosa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,10 @@ def _process_estimation_model_args(self) -> None: | |
estimation_model_args = QualEstimationModel.create_default_model_args(selected_model) | ||
self.ctxt.set_ctxt('estimationModelArgs', estimation_model_args) | ||
|
||
def _process_distributed_tools_args(self) -> None: | ||
distributed_tools_enabled = self.wrapper_options.get('distributedToolsEnabled') | ||
self.ctxt.set_ctxt('distributedToolsEnabled', distributed_tools_enabled) | ||
|
||
def _process_custom_args(self) -> None: | ||
""" | ||
Qualification tool processes extra arguments: | ||
|
@@ -181,6 +185,7 @@ def _process_custom_args(self) -> None: | |
self._process_estimation_model_args() | ||
self._process_offline_cluster_args() | ||
self._process_eventlogs_args() | ||
self._process_distributed_tools_args() | ||
# This is noise to dump everything | ||
# self.logger.debug('%s custom arguments = %s', self.pretty_name(), self.ctxt.props['wrapperCtx']) | ||
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. not related to this PR, interesting to see we have unused code here. |
||
|
||
|
@@ -375,7 +380,7 @@ def create_stdout_table_pprinter(total_apps: pd.DataFrame, | |
|
||
df = self._read_qualification_output_file('summaryReport') | ||
# 1. Operations related to XGboost modelling | ||
if self.ctxt.get_ctxt('estimationModelArgs')['xgboostEnabled']: | ||
if not df.empty and self.ctxt.get_ctxt('estimationModelArgs')['xgboostEnabled']: | ||
try: | ||
df = self.__update_apps_with_prediction_info(df, | ||
self.ctxt.get_ctxt('estimationModelArgs')) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
QQ: What prompt that change in all the cloud_api classes??
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.
Addition of method
create_distributed_submission_job()
inPlatformBase
required all CSPs to implement this. Now, since CSPs do not support distributed mode now, we would have to implement this method in all CSPs modules with body aspass
.Currently, we use the above approach for methods such as:
However, I think there are pros and cons to this approach.
Pros: In each CSP class we are clear what is implemented, what is not.
Cons: It adds redundant code in all CSP classes.
By adding the pylint exception, it would not be mandatory for each CSP to define methods with body as
pass
. Let me know your thoughts on this.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.
From offline discussion, removed the disable rule for pylint and added
create_distributed_submission_job()
in each CSP.