{"id":25395741,"url":"https://github.com/mounirbs/spark-connect","last_synced_at":"2026-04-17T00:34:04.825Z","repository":{"id":277269392,"uuid":"923539929","full_name":"mounirbs/spark-connect","owner":"mounirbs","description":"Spark Connect, a docker-compose solution enabling a Spark Cluster with Spark Connect feature. Could be used for local development.","archived":false,"fork":false,"pushed_at":"2025-03-06T01:08:32.000Z","size":41264,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T17:00:46.025Z","etag":null,"topics":["apache","apache-spark","docker","docker-compose","pyspark","python","spark"],"latest_commit_sha":null,"homepage":"https://mounirbs.github.io/spark-connect/","language":"Python","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/mounirbs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-28T12:38:14.000Z","updated_at":"2025-03-06T01:03:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"81f3c9eb-0e8d-4bd7-9674-60baa67f8129","html_url":"https://github.com/mounirbs/spark-connect","commit_stats":null,"previous_names":["mounirbs/spark-connect"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mounirbs/spark-connect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounirbs%2Fspark-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounirbs%2Fspark-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounirbs%2Fspark-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounirbs%2Fspark-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mounirbs","download_url":"https://codeload.github.com/mounirbs/spark-connect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mounirbs%2Fspark-connect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apache","apache-spark","docker","docker-compose","pyspark","python","spark"],"created_at":"2025-02-15T20:27:27.933Z","updated_at":"2026-04-17T00:34:04.782Z","avatar_url":"https://github.com/mounirbs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spark-connect\nSpark connect provides a local environment for developing Spark applications on Docker. It simulates a Spark cluster and integrates Spark connect to efficiently manage Spark sessions.\n\n## Tested on\nSpark 3.5.4, Python 3.10, Java 17\n\n## Requirements\n- Requires all needed Python packages to be installed in both cluster(workers) and the environment from where the client application is running\n- Python versions needs to match in both client and cluster, since the driver runs in the client side when using pyspark(only client mode is supported)\n- No Java is required on the client side\n```\npip install -r requirements.txt\n```\n\n## Build and Start services (Spark Master, Spark Worker, and Spark Connect)\n```\ndocker compose up -d --build\n```\n\n### Spark Connect tests\n```\nkubectl -n spark-connect port-forward svc/spark-connect 15002:15002\npython ./python/test_spark.py\npython ./python/test_pandas.py\npython ./python/test_fugue.py\n```\n## Convert docker-compose to Helm chart\n```\nkompose --file docker-compose.yml convert -o helm -c\n```\nSome adjustments/cleaning were done on the helm chart created by kompose.\n\n## Helm\n```\nhelm package helm/spark-connect -d helm/\n\nkubectl create namespace spark-connect\n\nhelm install -n spark-connect spark-connect helm/spark-connect-0.0.1.tgz\n\nkubectl -n spark-connect get all\n\nhelm uninstall spark-connect -n spark-connect\n```\n\n## Reference\nhttps://spark.apache.org/docs/latest/spark-connect-overview.html\nhttps://spark.apache.org/docs/latest/api/python/getting_started/quickstart_connect.html\nhttps://spark.apache.org/spark-connect/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmounirbs%2Fspark-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmounirbs%2Fspark-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmounirbs%2Fspark-connect/lists"}