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

Cannot start spark #40

Open
danrope opened this issue Dec 3, 2015 · 3 comments
Open

Cannot start spark #40

danrope opened this issue Dec 3, 2015 · 3 comments

Comments

@danrope
Copy link

danrope commented Dec 3, 2015

Hello,

I am able to successfully pull/run the container and I can confirm hadoop is indeed working. However, any attempt to start spark (spark-shell or other) results in a hang and I cannot find logs that have any information indicating what might be going wrong. Unsure if any of the below helps:

  • I have created a 4GB VM and am using it
  • My physical machine is Win7
  • I am using DockerToolbox-1.9.1b
  • /etc/hosts has 'sandbox' resolving to the IP of the 4 GB VM

In another experiment, I tried running start-all.sh and saw the following exception in the log:

Exception in thread "main" java.lang.ClassFormatError: org.apache.spark.launcher
.Main (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.10)
at java.lang.ClassLoader.defineClass(libgcj.so.10)
at java.security.SecureClassLoader.defineClass(libgcj.so.10)
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)

This made me think it might be using the wrong JVM (perhaps above is GNU java 1.5?). But the hadoop process is indeed using Java 1.7.

Any help or advice on where to see what might be going wrong much appreciated!
Thanks.

@robinloxley1
Copy link

try to remove docker images and pull again.

docker rmi -f

@jfloff
Copy link

jfloff commented Jan 7, 2016

I was having the same issue. It appears there is a bug with boot2docker 1.9.1. Solution seems to be downgrade to 1.9.0.

@zhaozhenhai
Copy link

thx for jfloff ,u are right!!

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

4 participants