tgravescs commented on a change in pull request #24615: [SPARK-27488][CORE]
Driver interface to support GPU resources
URL: https://github.com/apache/spark/pull/24615#discussion_r286184673
##########
File path: core/src/main/scala/org/apache/spark/SparkConf.scala
##########
@@ -777,6 +808,35 @@ private[spark] object SparkConf extends Logging {
}
}
+ /**
+ * A function to help parsing configs with multiple parts where the base and
+ * suffix could be one of many options. For instance configs like:
+ * spark.executor.resource.{resourceName}.{count/addresses}
+ * This function takes an Array of configs you got from the
+ * getAllWithPrefix function, selects only those that end with the suffix
+ * passed in and returns just the base part of the config before the first
+ * '.' and its value.
+ */
+ def getConfigsWithSuffix(
Review comment:
ok what do you suggest?
----------------------------------------------------------------
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]