title: Spark on DCOS: Make dispatcher reachable from outside the cluster
body: <p>We have installed spark service from the <code>marathon</code> catalogue on a <code>DCOS</code> cluster.</p>
  
  <p>The json configuration of the service goes like this:</p>
  
  <pre><code>{
    "service": {
      "name": "spark",
      "cpus": 1,
      "mem": 1024,
      "role": "*",
      "service_account": "",
      "service_account_secret": "",
      "user": "root",
      "docker-image": "mesosphere/spark:2.3.1-2.2.1-2-hadoop-2.6",
      "log-level": "INFO",
      "spark-history-server-url": "http://internal-tfef5a-int-master-elb-1145533197.eu-east-1.elb.amazonaws.com/service/spark-history",
      "UCR_containerizer": false,
      "use_bootstrap_for_IP_detect": false
    },
    "hdfs": {
      "config-url": "http://api.hdfs.marathon.l4lb.thisdcos.directory/v1/endpoints"
    }
  }
  </code></pre>
  
  <p>Given that the <code>marathon</code> ui does not directly allow editing of the service port, what is the proper way to expose the dispatcher so one can perform <code>spark-submit</code> from his/her own workstation?</p>
  
  <p><a href="https://i.stack.imgur.com/AQL6u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AQL6u.png" alt="spark-mesos"></a></p>