{"id":24835785,"url":"https://github.com/tobilg/docker-mesos-spark-shell","last_synced_at":"2025-10-14T10:30:35.858Z","repository":{"id":30950356,"uuid":"34508436","full_name":"tobilg/docker-mesos-spark-shell","owner":"tobilg","description":"A docker image for creating a Spark shell on a Mesos cluster","archived":true,"fork":false,"pushed_at":"2015-09-15T08:03:13.000Z","size":156,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T03:41:34.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobilg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-24T08:56:08.000Z","updated_at":"2023-07-04T10:47:03.000Z","dependencies_parsed_at":"2022-09-05T03:50:12.396Z","dependency_job_id":null,"html_url":"https://github.com/tobilg/docker-mesos-spark-shell","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tobilg/docker-mesos-spark-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-mesos-spark-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-mesos-spark-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-mesos-spark-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-mesos-spark-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobilg","download_url":"https://codeload.github.com/tobilg/docker-mesos-spark-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobilg%2Fdocker-mesos-spark-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018780,"owners_count":26086452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-31T04:51:47.583Z","updated_at":"2025-10-14T10:30:35.584Z","avatar_url":"https://github.com/tobilg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mesos Spark Shell\n\nA docker image for creating a Spark 1.4.1 shell on a Mesos cluster. Currently, Mesos 0.23.0 is supported via `.deb` installer.\n\n### Running\n\nTo see how to run the Docker image, have a look a the `run_spark_shell.sh` file. Basically, you just need to replace the `MESOS_MASTER_IP` with the actual IP the Mesos Master is living on, \nand the `SPARK_EXECUTOR_URI` variable needs to point to a \"Spark package\" where the Spark binaries are reachable for the Mesos Slaves' Executors to download, see [Spark docs](https://spark.apache.org/docs/latest/running-on-mesos.html#uploading-spark-package). \n\nExample:\n\n```\ndocker run -i -t \\\n    --net=host \\\n    -e MESOS_MASTER=127.0.0.1:5050 \\\n    -e SPARK_LOCAL_IP=127.0.0.1 \\\n    -e SPARK_EXECUTOR_URI=http://d3kbcqa49mib13.cloudfront.net/spark-1.4.1-bin-hadoop2.6.tgz \\\n    -p 4040:4040 \\\n    -p 5000:5000 \\\n    -p 5001:5001 \\\n    -p 5002:5002 \\\n    -p 5003:5003 \\\n    -p 5004:5004 \\\n    -p 5005:5005 \\\n    --name spark-shell \\\n    tobilg/mesos-spark-shell\n```\n\n### Networking\nEventually, you'll also need to set the `SPARK_LOCAL_IP` variable to the public IP address of your Docker host if the Mesos cluster is run in non-local mode, as well as `--net=host`. \n\nTo automatically determine the IP address, on RedHat/CentOS/Fedora-based hosts', the `SPARK_LOCAL_IP` line needs to replaced with\n\n    -e SPARK_LOCAL_IP=$(/sbin/ifconfig eth0 | grep 'inet ' | awk '{print $2}') \\\n\nFor Debian/Ubuntu-based hosts, use \n\n    -e SPARK_LOCAL_IP=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')\n\nBe sure to replace `eth0` with the actual interface your host is using for external access. \n\n### Ports\nThe ports 5000 - 5005 (see `spark-defaults.conf`) are opened to be reachable for the Mesos Master.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fdocker-mesos-spark-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobilg%2Fdocker-mesos-spark-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobilg%2Fdocker-mesos-spark-shell/lists"}