{"id":20384560,"url":"https://github.com/hibuz/hadoop-docker","last_synced_at":"2025-04-12T09:24:09.373Z","repository":{"id":229520902,"uuid":"775496686","full_name":"hibuz/hadoop-docker","owner":"hibuz","description":"🐳 hadoop ecosystems docker image","archived":false,"fork":false,"pushed_at":"2025-03-02T11:35:28.000Z","size":171,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T04:21:56.375Z","etag":null,"topics":["data-engineering","docker","docker-compose","flink","hadoop","hbase","hive","spark","zeppelin"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/hibuz.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2024-03-21T13:56:28.000Z","updated_at":"2025-03-02T11:35:32.000Z","dependencies_parsed_at":"2024-10-30T22:17:43.602Z","dependency_job_id":"4815c575-a7d3-40c9-b721-1bb63b497ccc","html_url":"https://github.com/hibuz/hadoop-docker","commit_stats":null,"previous_names":["hibuz/hadoop-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibuz%2Fhadoop-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibuz%2Fhadoop-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibuz%2Fhadoop-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibuz%2Fhadoop-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hibuz","download_url":"https://codeload.github.com/hibuz/hadoop-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248544741,"owners_count":21122014,"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":["data-engineering","docker","docker-compose","flink","hadoop","hbase","hive","spark","zeppelin"],"created_at":"2024-11-15T02:28:30.059Z","updated_at":"2025-04-12T09:24:09.358Z","avatar_url":"https://github.com/hibuz.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Application release information \n\n| App        | Version        | Date         | Size   |\n| --------   | -------------- | ------------ | ------ |\n| Ubuntu     | 24.04.1 LTS    | `2024-08-20` | 117MB  |\n| Hadoop     | 3.4.1          | `2024-10-18` | 3.65GB |\n| Hbase      | 2.6.2          | `2025-02-20` | 4.44GB |\n| Spark      | 3.5.5          | `2025-02-27` | 6.06GB |\n| Hive       | 4.0.1          | `2024-10-02` | 6.93GB |\n| Flink      | 1.20.1         | `2025-02-11` | 8.17GB |\n| Zeppelin   | 0.12.0         | `2025-01-31` | 12.3GB |\n| Java       | 11.0.26        | `2025-01-21` | 487M   |\n| Miniconda3 | py310_25.1.1-2 | `2025-02-11` | 137.4M |\n\n# Quick usage for hadoop-dev docker image\n- Docker build and run\n``` bash\n git clone https://github.com/hibuz/hadoop-docker\n cd hadoop-docker\n\n docker compose up hadoop-dev --no-build\n```\n\n## Docker build \u0026 run for custom hadoop user and version\n- see [Dockerfile](Dockerfile)\n  \u003cdetails\u003e\u003csummary\u003eHadoop Build Order\u003c/summary\u003e\n\n  ``` bash\n  # hadoop\n   hadoop-docker$ docker build -t hibuz/hadoop-dev .\n  # hbase|spark|hive|flink\n  hadoop-docker/(hbase|spark|hive|flink)$ docker compose up --build\n  # flink-base for zeppelin\n  hadoop-docker/zeppelin$ docker compose build flink-base\n  # zeppelin\n  hadoop-docker/zeppelin$ docker compose up --build\n  ```\n  \u003c/details\u003e\n\n\n### Attach to running container\n``` bash\ndocker exec -it hadoop bash\n```\n\n### Prepare input files into the distributed filesystem\n``` bash\n# Make the HDFS directories\nhdfs dfs -mkdir -p /user/hadoop/input\n# Copy the input files\nhdfs dfs -put $HADOOP_HOME/etc/hadoop/*.xml input\n```\n\n### Run some of the examples provided:\n``` bash\n# Run example wordcount job:\nhadoop jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar wordcount input output\n# View the output files on the distributed filesystem:\nhdfs dfs -cat output/*\n\n# Run example wordcount grep job:\nhadoop jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-*.jar grep input output/count 'dfs[a-z.]+'\n# View the output files on the distributed filesystem:\nhdfs dfs -cat output/count/*\n# Result of the output files \n1\tdfsadmin\n1\tdfs.replication\n\n# Remove the output dir:\nhdfs dfs -rm -r output\n```\n\n# Visit hadoop dashboard\n- Hadoop Dashboard: http://localhost:9870\n- Yarn Dashboard: http://localhost:8088 (run start-yarn.sh or uncomment command props in [docker-compose.yml](docker-compose.yml))\n- Hadoop Job History: http://localhost:19888\n\n### Stops containers and removes containers, networks, and volumes created by `up`.\n``` bash\n\ndocker compose down -v\n\n[+] Running 3/3\n ✔ Container hbase         Removed\n ✔ Volume hbase_hbase-vol  Removed\n ✔ Network hbase_default   Removed\n```\n\n# Reference\n- [Execute MapReduce jobs](https://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html#Execution)\n- https://github.com/rancavil/hadoop-single-node-cluster\n- https://github.com/big-data-europe/docker-hadoop\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhibuz%2Fhadoop-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhibuz%2Fhadoop-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhibuz%2Fhadoop-docker/lists"}