You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/10 13:22:11 UTC

[GitHub] [spark] tgravescs commented on a change in pull request #25087: [SPARK-28234][CORE][PYTHON] Add python and JavaSparkContext support to get resources

tgravescs commented on a change in pull request #25087: [SPARK-28234][CORE][PYTHON]  Add python and JavaSparkContext support to get resources
URL: https://github.com/apache/spark/pull/25087#discussion_r302061450
 
 

 ##########
 File path: python/pyspark/context.py
 ##########
 @@ -1105,6 +1106,18 @@ def getConf(self):
         conf.setAll(self._conf.getAll())
         return conf
 
+    def resources(self):
+        resources = {}
+        jresources = self._jsc.resources()
+        for x in jresources:
+            name = jresources[x].name()
+            jaddresses = jresources[x].addresses()
+            addrs = []
+            for addr in jaddresses:
 
 Review comment:
   will update

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org