{"id":23396479,"url":"https://github.com/mneedham/pinot-wiki","last_synced_at":"2025-06-29T08:37:44.964Z","repository":{"id":59168990,"uuid":"446812177","full_name":"mneedham/pinot-wiki","owner":"mneedham","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-09T11:07:21.000Z","size":227,"stargazers_count":20,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T14:57:01.686Z","etag":null,"topics":["kafka","pinot","pulsar","redpanda","wikipedia"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mneedham.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2022-01-11T12:27:58.000Z","updated_at":"2024-06-04T10:06:05.000Z","dependencies_parsed_at":"2025-04-11T14:42:45.217Z","dependency_job_id":"0179dc70-7c0a-4355-9233-7723b08b4294","html_url":"https://github.com/mneedham/pinot-wiki","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mneedham/pinot-wiki","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fpinot-wiki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fpinot-wiki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fpinot-wiki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fpinot-wiki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mneedham","download_url":"https://codeload.github.com/mneedham/pinot-wiki/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fpinot-wiki/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262565746,"owners_count":23329653,"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","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":["kafka","pinot","pulsar","redpanda","wikipedia"],"created_at":"2024-12-22T07:35:49.902Z","updated_at":"2025-06-29T08:37:44.948Z","avatar_url":"https://github.com/mneedham.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Building a real-time analytics dashboard with Streamlit, Apache Pinot, and Apache Kafka\n\nClone repository\n\n[source, bash]\n----\ngit clone git@github.com:mneedham/pinot-wiki.git \u0026\u0026 cd pinot-wiki\n----\n\nSpin up all components\n\n[source, bash]\n----\ndocker-compose up\n----\n\nor on the Mac M1:\n\n[source, bash]\n----\ndocker-compose -f docker-compose-m1.yml up\n----\n\nSetup Python\n\nIngest Wikipedia events\n\n[source, bash]\n----\npython -m venv .venv\nsource venv/bin/activate\npip install -r requirements.txt\n----\n\nCreate Kafka topic\n\n[source, bash]\n----\ndocker exec -it kafka-wiki kafka-topics.sh \\\n  --bootstrap-server localhost:9092 \\\n  --partitions 5 \\\n  --topic wiki-events \\\n  --create \n----\n\nIngest Wikipedia events\n\n[source, bash]\n----\npython wiki_to_kafka.py\n----\n\nCheck Wikipedia events are ingesting\n\n[source, bash]\n----\ndocker exec -it kafka-wiki kafka-run-class.sh kafka.tools.GetOffsetShell \\\n  --broker-list localhost:9092 \\\n  --topic wiki-events\n----\n\n[souce, bash]\n----\nkafkacat -C -b localhost:9092 -t wiki-events\n----\n\nAdd Pinot Table\n\n[source, bash]\n----\ndocker exec -it pinot-controller-wiki bin/pinot-admin.sh AddTable \\\n  -tableConfigFile /config/table.json \\\n  -schemaFile /config/schema.json \\\n  -exec\n----\n\nOpen the Pinot UI http://localhost:9000/\n\nRun Streamlit app\n\n[source, bash]\n----\nstreamlit run streamlit/app.py\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Fpinot-wiki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmneedham%2Fpinot-wiki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Fpinot-wiki/lists"}