Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/6560#discussion_r31836771
--- Diff: core/src/main/scala/org/apache/spark/metrics/MetricsConfig.scala
---
@@ -97,5 +90,23 @@ private[spark] class MetricsConfig(val configFile:
Option[String]) extends Loggi
case None => propertyCategories.getOrElse(DEFAULT_PREFIX, new
Properties)
}
}
-}
+ private[this] def loadPropertiesFromFile(): Unit = {
+ var is: InputStream = null
+ try {
+ is = configFile match {
+ case Some(f) => new FileInputStream(f)
+ case None =>
Utils.getSparkClassLoader.getResourceAsStream(DEFAULT_METRICS_CONF_FILENAME)
+ }
+
+ if (is != null) {
+ properties.load(is)
+ }
+ } catch {
+ case e: Exception => logError("Error loading configure file", e)
--- End diff --
nit configuration file
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]