docker-spark icon indicating copy to clipboard operation
docker-spark copied to clipboard

config spark-shell to use local ip as driver host

Open clakech opened this issue 9 years ago • 3 comments

by default shell communicate its internal hostname to worker so when worker try to communicate with shell, since its hostname is internal, the worker cannot resolve the hostname.

using shell local ip as driver host solve this problem.

see Networking documentation of spark configuration: http://spark.apache.org/docs/latest/configuration.html#networking

  • fix small typo to rename start-worker to start-worker.sh

clakech avatar Aug 06 '15 14:08 clakech

So your changes makes it all work without removing alias?

epahomov avatar Aug 06 '15 15:08 epahomov

Yes, it seems like this solve the problem.

I you can test this on your side to validate that would be cool ;)

clakech avatar Aug 06 '15 16:08 clakech

And I write a tutorial referencing your work here: https://gist.github.com/clakech/4a4568daba1ca108f03c

If you want to setup a spark cluster storing data into cassandra using docker, this is my 2 cents ;)

clakech avatar Aug 06 '15 16:08 clakech