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

impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4 #419

Closed
cdmikechen opened this issue Aug 17, 2018 · 3 comments

Comments

@cdmikechen
Copy link

I use url in Quick Setup Instructions - https://downloads.typesafe.com/typesafe-activator/1.3.12/typesafe-activator-1.3.12.zip to download play. I found when sbt complied dr-elephant, it report error : [error] (*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = com.fasterxml.jackson.core#jackson-databind;2.5.4. but I do not find version 2.5.4 in /project/Dependencis.scala.so how could I solve this problem?
here is my conf:

hadoop_version=2.6.0
spark_version=2.2.1
play_opts="-Dsbt.repository.config=app-conf/resolver.conf"
@cdmikechen
Copy link
Author

cdmikechen commented Aug 19, 2018

solve problem by this https://stackoverflow.com/questions/16614794/illegalstateexception-impossible-to-get-artifacts-when-data-has-not-been-loaded.
add

dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.5.4"

on plugins.sbt and in Dependencies.scala change to

"com.fasterxml.jackson.core" % "jackson-databind" % "2.5.4"

In compling, also change some code for Spark2.2.0's change about Spark UI class.

@bspallholtz
Copy link

In plugins.sbt and Dependencies.scala what exactly needs to be updated?

@erwa
Copy link
Contributor

erwa commented May 1, 2019

I'm working on #553 and encountered this same issue when adding a dependency on tony-core to Dependencies.scala. Was able to fix it by excluding Jackson:

    "com.linkedin.tony" % "tony-core" % tonyVersion excludeAll(
      ExclusionRule(organization = "com.fasterxml.jackson.core"),
      ExclusionRule(organization = "org.apache.hadoop")
    )

@erwa erwa closed this as completed May 1, 2019
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)).
oleksiilopasov pushed a commit to oleksiilopasov/dr-elephant that referenced this issue Mar 26, 2020
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

3 participants