Skip to content

Conversation

@tdas
Copy link
Contributor

@tdas tdas commented Aug 23, 2014

Due to maven bug https://jira.codehaus.org/browse/MNG-1378, maven could not resolve spark streaming classes required by the spark-streaming test-jar dependency of external/flume-sink. There is no particular reason that the external/flume-sink has to depend on Spark Streaming at all, so I am eliminating this dependency. Also I have removed the exclusions present in the Flume dependencies, as there is no reason to exclude them (they were excluded in the external/flume module to prevent dependency collisions with Spark).

Since Jenkins will test the sbt build and the unit test, I only tested maven compilation locally.

@tdas
Copy link
Contributor Author

tdas commented Aug 23, 2014

@tdas
Copy link
Contributor Author

tdas commented Aug 23, 2014

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Aug 23, 2014

QA tests have started for PR 2101 at commit 93b559f.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 23, 2014

QA tests have finished for PR 2101 at commit 93b559f.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@tdas
Copy link
Contributor Author

tdas commented Aug 23, 2014

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Aug 23, 2014

QA tests have started for PR 2101 at commit 8f42621.

  • This patch merges cleanly.

@tdas
Copy link
Contributor Author

tdas commented Aug 23, 2014

Update: I added the exclusions back in, because

  1. Netty with flume can cause runtime exceptions in Spark. The flume-sink needs to run with Spark/Spark Stremaing.
  2. Thrift dependency of Flume 1.4.0 cannot be resolved by SBT - https://issues.apache.org/jira/browse/FLUME-2379

SparkSinkSuite requires netty to work, so netty has been added explicitly to test. The version of netty is the one that Flume 1.4.0 depends on - http://mvnrepository.com/artifact/org.apache.flume/flume-ng-core/1.4.0 .

@SparkQA
Copy link

SparkQA commented Aug 23, 2014

QA tests have finished for PR 2101 at commit 8f42621.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@pwendell
Copy link
Contributor

Okay pulling this in. Thanks TD.

asfgit pushed a commit that referenced this pull request Aug 23, 2014
…ume sink

Due to maven bug https://jira.codehaus.org/browse/MNG-1378, maven could not resolve spark streaming classes required by the spark-streaming test-jar dependency of external/flume-sink. There is no particular reason that the external/flume-sink has to depend on Spark Streaming at all, so I am eliminating this dependency. Also I have removed the exclusions present in the Flume dependencies, as there is no reason to exclude them (they were excluded in the external/flume module to prevent dependency collisions with Spark).

Since Jenkins will test the sbt build and the unit test, I only tested maven compilation locally.

Author: Tathagata Das <[email protected]>

Closes #2101 from tdas/spark-sink-pom-fix and squashes the following commits:

8f42621 [Tathagata Das] Added Flume sink exclusions back, and added netty to test dependencies
93b559f [Tathagata Das] Removed dependency on spark streaming test from spark flume sink
(cherry picked from commit 3004074)

Signed-off-by: Patrick Wendell <[email protected]>
@asfgit asfgit closed this in 3004074 Aug 23, 2014
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…ume sink

Due to maven bug https://jira.codehaus.org/browse/MNG-1378, maven could not resolve spark streaming classes required by the spark-streaming test-jar dependency of external/flume-sink. There is no particular reason that the external/flume-sink has to depend on Spark Streaming at all, so I am eliminating this dependency. Also I have removed the exclusions present in the Flume dependencies, as there is no reason to exclude them (they were excluded in the external/flume module to prevent dependency collisions with Spark).

Since Jenkins will test the sbt build and the unit test, I only tested maven compilation locally.

Author: Tathagata Das <[email protected]>

Closes apache#2101 from tdas/spark-sink-pom-fix and squashes the following commits:

8f42621 [Tathagata Das] Added Flume sink exclusions back, and added netty to test dependencies
93b559f [Tathagata Das] Removed dependency on spark streaming test from spark flume sink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants