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

Javac error: incompatible types: SparkContext cannot be converted to ADAMContext #1217

heuermh opened this issue Oct 18, 2016 · 1 comment


Copy link

@heuermh heuermh commented Oct 18, 2016

Not sure if this is an issue or something that we knew would happen.

When updating a downstream application dependency from ADAM version 0.19.1-SNAPSHOT to ADAM Spark 2 release version 0.20.0, javac reports a compiler error:

[ERROR] adam-commands/src/main/java/c/g/h/a/commands/
  error: incompatible types: SparkContext cannot be converted to ADAMContext
[ERROR]         JavaADAMContext javaAdamContext = new JavaADAMContext(sc);

The fix is an explicit wrapping in ADAMContext first

ADAMContext ac = new ADAMContext(sc);
JavaADAMContext javaAdamContext = new JavaADAMContext(ac);
Copy link
Member Author

@heuermh heuermh commented Dec 9, 2016

Fixed by #1298

@heuermh heuermh closed this Dec 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.