Running Spring Boot container fails with File not found exception for hadoop-core-1.2.1

StackOverflow https://stackoverflow.com//questions/24047042

  •  21-12-2019
  •  | 
  •  

Question

This question has been posted before but I am not sure if it was ever resolved. I am facing exactly the same issue as (19608050 - same title). I am using spring-boot-started-web:1.1.0.RC1 ,spring-data-hadoop 1.0.2.RELEASE and hbase 0.94.3. I can see the hadoop-core-1.2.1 jar under the lib\ in the jarred file which I deploy.

I have a small sample project which I posted on: https://github.com/klopes/test-spring-boot-hadoop.git. It compiles (and unit tests worked successfully) but it fails to deploy.

If I start the app by clicking on the main class in my IDE, it runs without any exceptions and the jar is loaded, also gradle runBoot works just fine. Seems like a spring boot class loader bug.

Was it helpful?

Solution

You are using a very old version of Spring Boot. Your app runs for me with Spring Boot 1.1.0.BUILD-SNAPSHOT, at least the context starts with no errors. There are no test cases so I'm not sure if it's actually working though.

OTHER TIPS

@EnableAutoConfiguration(exclude = {VelocityAutoConfiguration.class})
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top