You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by ryan-williams <gi...@git.apache.org> on 2015/02/12 20:27:06 UTC

[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

GitHub user ryan-williams opened a pull request:

    https://github.com/apache/spark/pull/4571

    [SPARK-5778] throw if nonexistent metrics config file provided

    previous behavior was to log an error; this is fine in the general
    case where no `spark.metrics.conf` parameter was specified, in which
    case a default `metrics.properties` is looked for, and the execption
    logged and suppressed if it doesn't exist.
    
    if the user has purposefully specified a metrics.conf file, however,
    it makes more sense to show them an error when said file doesn't
    exist.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ryan-williams/spark metrics

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4571.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #4571
    
----
commit 105288e2c661ed631e64cfdc3aeb79b2aea858eb
Author: Ryan Williams <ry...@gmail.com>
Date:   2015-02-12T19:06:25Z

    throw if nonexistent metrics config file provided
    
    previous behavior was to log an error; this is fine in the general
    case where no `spark.metrics.conf` parameter was specified, in which
    case a default `metrics.properties` is looked for, and the execption
    logged and suppressed if it doesn't exist.
    
    if the user has purposefully specified a metrics.conf file, however,
    it makes more sense to show them an error when said file doesn't
    exist.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74430516
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27529/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74430513
  
      [Test build #27529 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27529/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            logError("Sink class " + classPath + " cannot be instantialized")`



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by ryan-williams <gi...@git.apache.org>.
Github user ryan-williams commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74346703
  
    I just rebased and tacked a couple of trivial commits to `MetricsConfig` onto the end of this, jfyi


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74161339
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27376/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by ryan-williams <gi...@git.apache.org>.
Github user ryan-williams commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74395577
  
    seems like another spurious failure to me. That one passed in the previous build


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74727631
  
    Pulling it in now, thanks ryan!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74356598
  
    Jenkins, retest this please


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74152045
  
      [Test build #27378 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27378/consoleFull) for   PR 4571 at commit [`45f1d3e`](https://github.com/apache/spark/commit/45f1d3ef1f1363f8e07a69d9ba52b08a9dfcec82).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74188379
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27399/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74427064
  
    Jenkins, retest this please. (sorry @ryan-williams we're trying to get tests in better shape).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by ryan-williams <gi...@git.apache.org>.
Github user ryan-williams commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74151752
  
    I threw in a couple of other trivial things:
    * `throw` if a bad `Sink` class is specified
    * exclude `conf/metrics.properties`, if present, from RAT checks
    
    lmk if you want me to make those separate JIRAs/PRs


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74188598
  
    This looks good. @pwendell I'm not sure which branch you want this in, so I will let you do the merge.



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74358592
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27468/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by ryan-williams <gi...@git.apache.org>.
Github user ryan-williams commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4571#discussion_r24619183
  
    --- Diff: core/src/main/scala/org/apache/spark/metrics/MetricsConfig.scala ---
    @@ -47,21 +47,27 @@ private[spark] class MetricsConfig(val configFile: Option[String]) extends Loggi
         setDefaultProperties(properties)
     
         // If spark.metrics.conf is not set, try to get file in class path
    -    var is: InputStream = null
    -    try {
    -      is = configFile match {
    -        case Some(f) => new FileInputStream(f)
    -        case None => Utils.getSparkClassLoader.getResourceAsStream(METRICS_CONF)
    +    (configFile match {
    --- End diff --
    
    cool, thanks, went with the first one.
    
    incidentally I had a `Some()` where I should have had an `Option()`, which your candidates all fix, that I think was breaking the tests


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74161679
  
      [Test build #27378 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27378/consoleFull) for   PR 4571 at commit [`45f1d3e`](https://github.com/apache/spark/commit/45f1d3ef1f1363f8e07a69d9ba52b08a9dfcec82).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            logError("Sink class " + classPath + " cannot be instantialized")`



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74358589
  
      [Test build #27468 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27468/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            logError("Sink class " + classPath + " cannot be instantialized")`



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74427338
  
    Overall, looks good to me. I do like the idea of failing here, since otherwise it can be very confusing to people why their settings are not being picked up. To avoid surprise here I think it's best to avoid backporting this patch (once merged) into older versions and just enforce it in new versions.
    
    One other issue, it's not super well documented in the existing code base what type of error propagation we expect when initializing a spark environment on the executors. It would be good to verify that this gets thrown up the chain in a way that gets presented nicely to the user. I wouldn't block the patch on that (it's not newly introduced here), but having nicer internal documentation about the expectations that callers should have if SparkEnv's fail to initialize would be nice.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74151241
  
      [Test build #27376 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27376/consoleFull) for   PR 4571 at commit [`b98e325`](https://github.com/apache/spark/commit/b98e3257f04449aee35175499f2abbf3e66a4a03).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74136376
  
      [Test build #27368 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27368/consoleFull) for   PR 4571 at commit [`105288e`](https://github.com/apache/spark/commit/105288e2c661ed631e64cfdc3aeb79b2aea858eb).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74161326
  
      [Test build #27376 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27376/consoleFull) for   PR 4571 at commit [`b98e325`](https://github.com/apache/spark/commit/b98e3257f04449aee35175499f2abbf3e66a4a03).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74346811
  
    Jenkins, retest this please.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by hammer <gi...@git.apache.org>.
Github user hammer commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74716043
  
    @pwendell @rxin looks ready to merge?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4571#discussion_r24617668
  
    --- Diff: core/src/main/scala/org/apache/spark/metrics/MetricsConfig.scala ---
    @@ -47,21 +47,27 @@ private[spark] class MetricsConfig(val configFile: Option[String]) extends Loggi
         setDefaultProperties(properties)
     
         // If spark.metrics.conf is not set, try to get file in class path
    -    var is: InputStream = null
    -    try {
    -      is = configFile match {
    -        case Some(f) => new FileInputStream(f)
    -        case None => Utils.getSparkClassLoader.getResourceAsStream(METRICS_CONF)
    +    (configFile match {
    --- End diff --
    
    I've been thinking about style quite a bit recently as I'm working on a style guide. In this case, you'd want to break the chain down with intermediate variables. Otherwise the cognitive complexity of the chaining/nesting makes it hard to understand.
    
    I wrote 3 versions of them, with each version gradually becoming more Java-like. I think either would be fine here.
    
    version 1
    ```scala
    val isOpt: Option[InputStream] = configFile.map(new FileInputStream(_)).orElse {
      try {
        Option(Utils.getSparkClassLoader.getResourceAsStream(METRICS_CONF))
      } catch {
        case e: Exception =>
          logError("Error loading default configuration file", e)
          None
      }
    }
    
    isOpt.foreach { is =>
      try {
        properties.load(is)
      } finally {
        is.close()
      }
    }
    ```
    
    version 2
    ```scala
    var isOpt: Option[InputStream] = configFile.map { f =>
      logInfo("Loading MetricsConfig file: $f")
      new FileInputStream(f)
    }
    
    if (!isOpt.isDefined) {
      try {
        is = Option(Utils.getSparkClassLoader.getResourceAsStream(METRICS_CONF))
      } catch {
        case e: Exception =>
          logError("Error loading default configuration file", e)
      }
    }
    
    isOpt.foreach { is =>
      try {
        properties.load(is)
      } finally {
        is.close()
      }
    }
    ```
    
    version 3
    ```scala
    var is: InputStream = configFile.map(new FileInputStream(_)).orNull
    
    if (is == null) {
      try {
        is = Option(Utils.getSparkClassLoader.getResourceAsStream(METRICS_CONF))
      } catch {
        case e: Exception =>
          logError("Error loading default configuration file", e)
      }
    }
    
    if (is != null) {
      try {
        properties.load(is)
      } finally {
        is.close()
      }
    }
    ```



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74140463
  
      [Test build #27368 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27368/consoleFull) for   PR 4571 at commit [`105288e`](https://github.com/apache/spark/commit/105288e2c661ed631e64cfdc3aeb79b2aea858eb).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by ryan-williams <gi...@git.apache.org>.
Github user ryan-williams commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74354106
  
    looks like similar sorts of probably-spurious to those that I saw on #4573; thoughts, @rxin? re-test?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74161691
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27378/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74356791
  
      [Test build #27468 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27468/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74180671
  
      [Test build #27399 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27399/consoleFull) for   PR 4571 at commit [`1b74f69`](https://github.com/apache/spark/commit/1b74f69d08854af7870bf169260e0700ee4016ab).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74427279
  
      [Test build #27529 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27529/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74351885
  
      [Test build #27464 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27464/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            logError("Sink class " + classPath + " cannot be instantialized")`
      * `  case class Params(`



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74140479
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27368/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74188373
  
      [Test build #27399 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27399/consoleFull) for   PR 4571 at commit [`1b74f69`](https://github.com/apache/spark/commit/1b74f69d08854af7870bf169260e0700ee4016ab).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:
      * `            logError("Sink class " + classPath + " cannot be instantialized")`



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74347031
  
      [Test build #27464 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/27464/consoleFull) for   PR 4571 at commit [`5bccb14`](https://github.com/apache/spark/commit/5bccb142b85411b6c76f2faa0215d1f2dc85374e).
     * This patch merges cleanly.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/4571#issuecomment-74351891
  
    Test FAILed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/27464/
    Test FAILed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-5778] throw if nonexistent metrics conf...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/4571


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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