Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $ ./run.sh 2
```

## Sample Word Count
Follow below steps to run the word count example that is "hello world" of hadoop community.
Ensure that "maven" is installed in your machine to compile Java code, than follow below steps to run the word count example that is "hello world" of hadoop community.
```sh
$ cd codeSamples/
```
Expand Down
7 changes: 6 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ do
echo "slave$i" >> ./conf/slaves
done

# Check if the hadoopNetwork exists before attempting to remove it
if [[ $(docker network ls -f name=hadoopNetwork -q) ]]; then
docker network rm hadoopNetwork
fi

#Create a network named "hadoopNetwork"
docker network rm hadoopNetwork && docker network create -d bridge --subnet 172.25.0.0/16 hadoopNetwork
docker network create -d bridge --subnet 172.25.0.0/16 hadoopNetwork

#Create base hadoop image named "base-hadoop:1.0"
docker build -t base-hadoop:1.0 .
Expand Down