Reputation: 163
I have two machines named:
I am trying to execute the example, so I have a jar name app1.jar.
When I submit the application, send an error.
java.io.NoSuchFileException: /home/ubuntu1/demo/app1.jar
My command line is
./spark-submit --master spark://ubuntu1-VirtualBox:7077 --deploy-mode cluster --class br.com.wordCount.App -v --name"App 1" /home/ubuntu1/demo/app1.jar /home/ubuntu1/demo/myfile.txt
Why send me this error ? The file is that directory.
Note: The master and the worker are in different machine.
Thank you so much.
Upvotes: 0
Views: 1061
Reputation: 163
So, I am using --deploy-mode cluster, this is the why the jar is not found in the cluster. I think that there are workes doesnt have the jar, than the solution was put the jar in each node if I want to use cluster deploy mode.
Upvotes: 1