docs: Update README

This commit is contained in:
joy 2026-04-21 18:46:03 +09:00
parent 0d49371692
commit f79ba6c198

View File

@ -13,4 +13,20 @@ docker exec -it hadoop bash
```
### Manual installation
Please refer to [Hadoop Installation Guide](Hadoop_Install_Guide.md) for manual installation of Hadoop.
Please refer to [Hadoop Installation Guide](Hadoop_Install_Guide.md) for manual installation of Hadoop.
### Run Wordcount example
```bash
# create input directory
hdfs dfs -mkdir -p /user/root/input
# push test text to test.txt
echo "I am a student. You are also student." | hdfs dfs -put - /user/root/input/test.txt
# run workcount
hadoop jar /opt/hadoop-3.5.0/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.5.0.jar wordcount /user/root/input /user/root/output
# output result
hdfs dfs -cat /user/root/output/part-r-00000
```