docker build -t laithleo/hadoop:3.3.1 .
docker pull laithleo/hadoop:3.3.1
docker run -p 8088:8088 -it laithleo/hadoop:3.3.1 /tmp/bootstrap.sh -bash
You can running a MapReduce test job:
hadoop jar /opt/hadoop-3.3.1/share/hadoop/mapreduce/hadoop-mapreduce-examples-3.3.1.jar grep input output 'dfs[a-z.]+'
And to check the output:
OR, from the container itself:
hdfs dfs -ls /user/root/output/Content type
Image
Digest
Size
1.4 GB
Last updated
almost 5 years ago
docker pull laithleo/hadoop