Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Apr 24, 2022
1 parent cceee67 commit 8d7b9ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ Usage:
./test-hadoop.sh
```

It will download zipped `hadoop` and unpack it (in a separate folder) into `../` relative to the project's root. If you no more need them, run
It will download zipped `hadoop` and unpack it (in a separate folder) into `../j2eo-data` relative to the project's root. Next, it will put the If you no more need that folder, run
```sh
rm -rf ../hadoop*
rm -rf ../j2eo-data
```
---
Expand Down
9 changes: 5 additions & 4 deletions test-hadoop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ cp build/libs/J2EO-0.4.0.jar .

echo "Downloading Hadoop..."
# get hadoop from https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.2.3/hadoop-3.2.3-src.tar.gz
wget -O ../hadoop.tar.gz https://dlcdn.apache.org/hadoop/common/hadoop-3.2.3/hadoop-3.2.3-src.tar.gz
mkdir ../j2eo-data
wget -O ../j2eo-data/hadoop.tar.gz https://dlcdn.apache.org/hadoop/common/hadoop-3.2.3/hadoop-3.2.3-src.tar.gz
# unpack
tar -xf ../hadoop.tar.gz -C ../
tar -xf ../j2eo-data/hadoop.tar.gz -C ../j2eo-data

echo "Starting J2EO on Hadoop..."
# clean old output
rm -rf ../output_hadoop
rm -rf ../j2eo-data/hadoop-eo

# as it's not a part of the project
# we may want to output to the parent directory
java -jar J2EO-0.4.0.jar -o ../output_hadoop ../hadoop-3.2.3-src
java -jar J2EO-0.4.0.jar -o ../j2eo-data/hadoop-eo ../j2eo-data/hadoop-3.2.3-src

0 comments on commit 8d7b9ab

Please sign in to comment.