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

Spark version compatibility and compilation error for Spark 2.0.1 #201

Open
tkakantousis opened this issue Feb 2, 2017 · 6 comments
Open

Comments

@tkakantousis
Copy link

Hi all,

I'm trying compile latest master branch with spark 2.0.1 and hadoop 2.7.3 and I'm getting the following error:

[error] impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4
java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4

Setting hadoop 2.4.0 and spark 1.6.1. compiles fine though. Could someone point me to documentation stating which spark and hadoop versions are supported? Should I manually set the dependencies and if so how?

Thanks!

@tkakantousis tkakantousis changed the title Spark version compatibility and compilation error for Spark 2.0.1. Spark version compatibility and compilation error for Spark 2.0.1 Feb 2, 2017
@akshayrai
Copy link
Contributor

@tkakantousis, the Spark fetcher is undergoing some major refactoring and we haven't tested it against all the Spark versions. In your case, can you try incrementing the jacksonVersion to 2.5.4 in the Dependencies.scala and then retry?

https://github.com/linkedin/dr-elephant/blob/master/project/Dependencies.scala#L28

@suiyuan2009
Copy link

suiyuan2009 commented Feb 28, 2017

I met the same problem, hadoop2.7.3 and spark 2.0.2, there is no 2.5.4...see mvn repo

@suiyuan2009
Copy link

I solve the problem by modify sbt.version to 0.13.9 in project/build.properties, no need to change jacksonVersion to 2.5.4.

@akshayrai
Copy link
Contributor

@suiyuan2009, great! Thanks for posting your solution.

@superbobry
Copy link
Contributor

A related question: is there a reason to use older sbt?

@xor007
Copy link

xor007 commented Aug 31, 2017

+1 hadoop 2.7.3/spark 2.1.0 (HDP 2.6) even with sbt 0.13.9 could not complete compilation for me

astahlman added a commit to astahlman/dr-elephant that referenced this issue Mar 18, 2020
There are several issues that report compilation errors with a message like:

    [error] impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4
    java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4

Examples:

- linkedin#201
- linkedin#339
- linkedin#367
- linkedin#419
- linkedin#658

It looks like this message stems from a bug in Ivy which has since been fixed
(sbt/sbt#1598). I'm guessing the fix in Ivy is
included in sbt v0.13.9, because uprading sbt fixed the issue for me, and seems
to have helped others, too (e.g.,
linkedin#201 (comment)).
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

5 participants