Skip to content

Commit

Permalink
Merge pull request #17 from locationtech/main
Browse files Browse the repository at this point in the history
Docs - Fix bash command errors in geomesa-nifi-quickstart (locationtech#3039)
  • Loading branch information
a0x8o authored Feb 1, 2024
2 parents 9356d25 + 8736144 commit bd65461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/tutorials/geomesa-quickstart-nifi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ First, set the version to use:
mkdir -p ~/gm-nifi-quickstart/extensions
cd ~/gm-nifi-quickstart
export NARS="geomesa-fs-nar geomesa-datastore-services-api-nar geomesa-datastore-services-nar"
for nar in $NARS; do wget -O "extensions/$nar_$VERSION.nar" "https://github.com/geomesa/geomesa-nifi/releases/download/geomesa-nifi-$TAG/$nar_$VERSION.nar"; done
for nar in $NARS; do wget -O "extensions/${nar}_$VERSION.nar" "https://github.com/geomesa/geomesa-nifi/releases/download/geomesa-nifi-$TAG/${nar}_$VERSION.nar"; done
Obtain GDELT data
-----------------
Expand Down Expand Up @@ -257,8 +257,8 @@ Run the following commands to download a recent GDELT file:
cd ~/gm-nifi-quickstart
mkdir gdelt
export GDELT_URL="$(wget -O - 'http://data.gdeltproject.org/gdeltv2/masterfilelist.txt' | head -n 1 | awk '{ print $3 }')"
wget "$GDELT_URL" -O "gdelt/$(basename $GDELT_URL)"
export GDELT_URL="$(wget -qO- 'http://data.gdeltproject.org/gdeltv2/masterfilelist.txt' | head -n 1 | awk '{ print $3 }')"
wget "$GDELT_URL" -qO- "gdelt/$(basename $GDELT_URL)"
unzip -d gdelt gdelt/*.zip
rm gdelt/*.zip
Expand All @@ -272,7 +272,7 @@ Next, we will run NiFi through Docker, mounting in our NARs and a directory for
cd ~/gm-nifi-quickstart
mkdir fs
docker run --rm \
-p 8443:8443
-p 8443:8443 \
-e SINGLE_USER_CREDENTIALS_USERNAME=nifi \
-e SINGLE_USER_CREDENTIALS_PASSWORD=nifipassword \
-v "$(pwd)/extensions:/opt/nifi/nifi-current/extensions:ro" \
Expand Down

0 comments on commit bd65461

Please sign in to comment.