You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by pwendell <gi...@git.apache.org> on 2014/03/09 02:38:39 UTC

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

GitHub user pwendell opened a pull request:

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

    SPARK-1167: Remove metrics-ganglia from default build due to LGPL issues...

    This patch removes Ganglia integration from the default build. It
    allows users willing to link against LGPL code to use Ganglia
    by adding build flags or linking against a new Spark artifact called
    spark-ganglia-lgpl.
    
    This brings Spark in line with the Apache policy on LGPL code
    enumerated here:
    
    https://www.apache.org/legal/3party.html#options-optional

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

    $ git pull https://github.com/pwendell/spark ganglia

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

    https://github.com/apache/spark/pull/108.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 #108
    
----
commit d3d9d6f062b732eb08d3ccd75fedb02602a4eb97
Author: Patrick Wendell <pw...@gmail.com>
Date:   2014-03-09T00:29:35Z

    SPARK-1167: Remove metrics-ganglia from default build due to LGPL issues.
    
    This patch removes Ganglia integration from the default build. It
    allows users willing to link against LGPL code to use Ganglia
    by adding build flags or linking against a new Spark artifact called
    spark-ganglia-lgpl.
    
    This brings Spark in line with the Apache policy on LGPL code
    enumerated here:
    
    https://www.apache.org/legal/3party.html#options-optional

----


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37135373
  
    @mateiz if you could take a glance at this that would be great. This has to get merged into 0.9.1 so I want to make sure a few people look at it.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37210258
  
     Merged build triggered.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#discussion_r10417262
  
    --- Diff: docs/monitoring.md ---
    @@ -48,11 +48,22 @@ Each instance can report to zero or more _sinks_. Sinks are contained in the
     
     * `ConsoleSink`: Logs metrics information to the console.
     * `CSVSink`: Exports metrics data to CSV files at regular intervals.
    -* `GangliaSink`: Sends metrics to a Ganglia node or multicast group.
     * `JmxSink`: Registers metrics for viewing in a JXM console.
     * `MetricsServlet`: Adds a servlet within the existing Spark UI to serve metrics data as JSON data.
     * `GraphiteSink`: Sends metrics to a Graphite node.
     
    +Spark also supports a Ganglia sink which is not included in the default build due to
    +licensing restrictions:
    +
    +* `GangliaSink`: Sends metrics to a Ganglia node or multicast group.
    +
    +To install the `GangliaSink` you'll need to perform a custom build of Spark. _**Note that
    +by embedding this library you will include [LGPL](http://www.gnu.org/copyleft/lesser.html)-licensed 
    +code in your Spark package**_. For sbt users, set the 
    +`SPARK_GANGLIA_LGPL` environment varaible before building. For Maven users, enable 
    +the `-Pspark-ganglia-lgpl` profile. For users linking applications against Spark, link 
    +include the `spark-ganglia-lgpl` artifact as a dependency.
    --- End diff --
    
    This is kind of confusing because it's not clear that you should *both* build a custom Spark *and* have applications link to spark-ganglia-lgpl. It made it sound like you do one of the Maven command, or the SBT one, or adding that dependency. But in fact you need to deploy the special build to the cluster and also link your app to this.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37136294
  
    Will this require the spark-ec2 scripts to pull in this dependency as well?


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37118026
  
    Merged build finished.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37217443
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13097/


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37117125
  
     Merged build triggered.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37137320
  
    @aarondav the spark-ec2 scripts set up a ganglia cluster separately... they actually don't use the `GangliaSink` in Spark at present. If change spark ec2 to use that then yep, we'll have to use a special build of Spark for those scripts that includes the gaglia library.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37116233
  
     Merged build triggered.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37117120
  
    Merged build finished.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37154826
  
    Hey @mateiz updated the docs.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37156420
  
    Merged build started.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

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


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37116234
  
    Merged build started.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37217440
  
    Merged build finished.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37158466
  
    One or more automated tests failed
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13089/


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37207969
  
    Jenkins, test 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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37156275
  
    Cool, looks good then.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37158463
  
    Merged build finished.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37118027
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13080/


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37117121
  
    All automated tests passed.
    Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13079/


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37210259
  
    Merged build started.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37117126
  
    Merged build started.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#discussion_r10417447
  
    --- Diff: docs/monitoring.md ---
    @@ -48,11 +48,22 @@ Each instance can report to zero or more _sinks_. Sinks are contained in the
     
     * `ConsoleSink`: Logs metrics information to the console.
     * `CSVSink`: Exports metrics data to CSV files at regular intervals.
    -* `GangliaSink`: Sends metrics to a Ganglia node or multicast group.
     * `JmxSink`: Registers metrics for viewing in a JXM console.
     * `MetricsServlet`: Adds a servlet within the existing Spark UI to serve metrics data as JSON data.
     * `GraphiteSink`: Sends metrics to a Graphite node.
     
    +Spark also supports a Ganglia sink which is not included in the default build due to
    +licensing restrictions:
    +
    +* `GangliaSink`: Sends metrics to a Ganglia node or multicast group.
    +
    +To install the `GangliaSink` you'll need to perform a custom build of Spark. _**Note that
    +by embedding this library you will include [LGPL](http://www.gnu.org/copyleft/lesser.html)-licensed 
    +code in your Spark package**_. For sbt users, set the 
    +`SPARK_GANGLIA_LGPL` environment varaible before building. For Maven users, enable 
    +the `-Pspark-ganglia-lgpl` profile. For users linking applications against Spark, link 
    +include the `spark-ganglia-lgpl` artifact as a dependency.
    --- End diff --
    
    Makes sense, I'll update. Though it depends what you are doing. If you run locally you can just link against it - if you run on a cluster and mark Spark as provided you need to do it in both places. The second is going to be way more likely for this so I'll just mention to do both things.


---
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.
---

[GitHub] spark pull request: SPARK-1167: Remove metrics-ganglia from defaul...

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

    https://github.com/apache/spark/pull/108#issuecomment-37156418
  
     Merged build triggered.


---
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.
---