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

Add dnsutils package to mesosphere/spark for service discovery #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add dnsutils package to mesosphere/spark for service discovery #42

wants to merge 1 commit into from

Conversation

mcapuccini
Copy link

It would be very nice to have dnsutils installed in the mesosphere/spark container. This would make possible to do service discovery using mesos-dns or consul. This would enable the users to submit this kind of commands through Chronos:

MASTER_PORT=$(dig +short spark-dispatcher.service.consul SRV | awk '{print $3}' | sort | head -1) && \
bin/spark-submit --class org.apache.spark.examples.SparkPi \ 
--master mesos://spark-dispatcher.service.consul:$MASTER_PORT \
--deploy-mode cluster \
/mnt/container-volumes/spark-1.6.0-bin-hadoop2.4/lib/spark-examples-1.6.0-hadoop2.4.0.jar \
1000

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

Successfully merging this pull request may close these issues.

1 participant