Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The attempt to upgrade Spark version to 2.3.0 is not successful #218

Closed
TitusAn opened this issue May 12, 2018 · 2 comments
Closed

The attempt to upgrade Spark version to 2.3.0 is not successful #218

TitusAn opened this issue May 12, 2018 · 2 comments
Assignees

Comments

@TitusAn
Copy link
Contributor

TitusAn commented May 12, 2018

Describe the bug
The attempt to upgrade Spark version to 2.3.0 result in no success. The executable no longer passes some of the unit tests, with error

FAILURE! - in io.archivesunleashed.SimpleDfTest
io.archivesunleashed.SimpleDfTest  Time elapsed: 3.968 sec  <<< ERROR!
java.lang.IllegalAccessError: tried to access method com.google.common.base.Stopwatch.<init>()V from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
	at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:379)
FAILURE! - in io.archivesunleashed.ArchiveRecordTest
io.archivesunleashed.ArchiveRecordTest  Time elapsed: 0 sec  <<< ERROR!
org.apache.spark.SparkException: Only one SparkContext may be running in this JVM (see SPARK-2243). To ignore this error, set spark.driver.allowMultipleContexts = true. The currently running SparkContext was created at:
org.apache.spark.SparkContext.<init>(SparkContext.scala:75)
io.archivesunleashed.SimpleDfTest$$anonfun$1.apply$mcV$sp(SimpleDfTest.scala:40)
io.archivesunleashed.SimpleDfTest$$anonfun$1.apply(SimpleDfTest.scala:36)
Tests run: 50, Failures: 0, Errors: 11, Skipped: 0

To Reproduce
Steps to reproduce the behavior (e.g.):

  1. Open pom.xml in the root directory of the project
  2. Change <spark.version>2.1.1</spark.version> to <spark.version>2.3.0</spark.version>
  3. Build the project

Expected behavior
The project can be built successfully, and passes all unit tests.

Desktop/Laptop (please complete the following information):

  • OS: Ubuntu 16.04 LTS
  • Java: 1.8.0
  • Scala: 2.11.6

Additional context
Change logs of Spark 2.2 and 2.3 may provide insights into the problem.
Spark 2.2 Change Log
Spark 2.3 Change Log

@ruebot
Copy link
Member

ruebot commented May 12, 2018

@lintool do you have that branch laying around from the camp when we upgraded to 2.3.0, when we were working on the broken twitter stuff?

@ruebot
Copy link
Member

ruebot commented May 12, 2018

nvm, we got it here.

I'll take care of this one.

@ruebot ruebot self-assigned this May 12, 2018
ruebot added a commit that referenced this issue May 12, 2018
- Update tests to use workaround for SPARK-2243
- Comment out ExtractGraph test as per https://github.com/archivesunleashed/aut/pull/204/files#diff-4541b9834513985c360b64093fd45073
- Align Hadoop version with Apache Spark pom.xml https://github.com/apache/spark/blob/branch-2.3/pom.xml#L120
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

No branches or pull requests

2 participants