viirya commented on a change in pull request #28569:
URL: https://github.com/apache/spark/pull/28569#discussion_r426952135
##########
File path: python/pyspark/resource/profile.py
##########
@@ -15,10 +15,61 @@
# limitations under the License.
#
-from pyspark.resource.executorrequests import ExecutorResourceRequest,\
- ExecutorResourceRequests
-from pyspark.resource.resourceprofile import ResourceProfile
-from pyspark.resource.taskrequests import TaskResourceRequest,
TaskResourceRequests
+from pyspark.resource.requests import TaskResourceRequest,
TaskResourceRequests, \
+ ExecutorResourceRequests, ExecutorResourceRequest
+
+
+class ResourceProfile(object):
+
+ """
+ .. note:: Evolving
+
+ Resource profile to associate with an RDD. A
:class:`pyspark.resource.ResourceProfile`
+ allows the user to specify executor and task requirements for an RDD that
will get
+ applied during a stage. This allows the user to change the resource
requirements between
+ stages. This is meant to be immutable so user doesn't change it after
building.
Review comment:
nit: doesn't change -> cannot change?
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]