{"id":26563832,"url":"https://github.com/webdevcaptain/distributed-word-counter","last_synced_at":"2026-05-06T00:34:58.064Z","repository":{"id":275326706,"uuid":"925759528","full_name":"WebDevCaptain/distributed-word-counter","owner":"WebDevCaptain","description":"Distributed Word Counter using Apache Spark (PySpark)","archived":false,"fork":false,"pushed_at":"2025-02-01T19:00:21.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T16:18:14.365Z","etag":null,"topics":["distributed-computing","pyspark"],"latest_commit_sha":null,"homepage":"","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/WebDevCaptain.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-02-01T17:20:45.000Z","updated_at":"2025-02-01T19:00:25.000Z","dependencies_parsed_at":"2025-02-01T18:30:19.985Z","dependency_job_id":"57546db3-0aaa-4be4-b2fb-5a3155108f4e","html_url":"https://github.com/WebDevCaptain/distributed-word-counter","commit_stats":null,"previous_names":["webdevcaptain/distributed-word-counter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WebDevCaptain/distributed-word-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevCaptain%2Fdistributed-word-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevCaptain%2Fdistributed-word-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevCaptain%2Fdistributed-word-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevCaptain%2Fdistributed-word-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebDevCaptain","download_url":"https://codeload.github.com/WebDevCaptain/distributed-word-counter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDevCaptain%2Fdistributed-word-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278903008,"owners_count":26065786,"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-08T02:00:06.501Z","response_time":56,"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":["distributed-computing","pyspark"],"created_at":"2025-03-22T16:18:17.949Z","updated_at":"2025-10-08T06:50:30.846Z","avatar_url":"https://github.com/WebDevCaptain.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distributed Word Counter with Apache Spark\n\n## Introduction\n\nThis is a simple example of distributed word counter using Apache Spark.\nIt uses a sample dataset of text lines to count the occurrences of individual words.\n\n---\n\n## Setup\n\nThis setup is focussed on local development using Docker Compose. It uses 3 Spark containers: a spark master and 2 spark workers nodes.\n\n[Word counter python script](./word_count.py) is mounted into the master node and we connect to the master to execute the script. `PySpark` is used to create an RDD from the text lines and perform distributed word count.\n\n---\n\n## Usage\n\n1. Start the Spark containers using Docker Compose:\n\n   ```bash\n   docker-compose up -d\n   ```\n\n2. Run the distributed word count example:\n   ```bash\n   bash submit.sh\n   ```\n\n---\n\n## Sample Input\n\n```python\ntext_lines = [\n    \"Spark is fast\",\n    \"Spark is scalable\",\n    \"Distributed computing with Spark\",\n    \"Python and Spark go well together\",\n    \"Python provides a simple interface to Spark\",\n    \"Other options include Java, Scala, and R, but Python is the most beginner-friendly\",\n]\n```\n\n## Sample Output\n\n```bash\nDistributed Word Count Results:\ncomputing: 1\nand: 2\nwell: 1\ninclude: 1\nScala,: 1\nmost: 1\nis: 3\nOther: 1\nJava,: 1\nthe: 1\noptions: 1\nbeginner-friendly: 1\ntogether: 1\nprovides: 1\na: 1\nsimple: 1\nfast: 1\ninterface: 1\nto: 1\ngo: 1\nR,: 1\nDistributed: 1\nwith: 1\nPython: 3\nbut: 1\nSpark: 5\nscalable: 1\n```\n\n---\n\n## License Information\n\nThis project is released under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevcaptain%2Fdistributed-word-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevcaptain%2Fdistributed-word-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevcaptain%2Fdistributed-word-counter/lists"}