Skip to content

Commit 094e24b

Browse files
committed
NYC Yellowcab example: Add user notes, don't automatically shut down
1 parent 672c034 commit 094e24b

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

spikes/testbench-yellowcab/cratedb-import-nyc-yellowcab.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if [ $? -ne 0 ]; then
2727
echo "Starting CrateDB."
2828
sh -c "$cratedb_start"
2929
else
30-
echo "CrateDB already running."
30+
echo "CrateDB already started."
3131
fi
3232
echo "Waiting for availability of CrateDB."
3333
until [[ $($cratedb_status) = "healthy" ]]; do
@@ -37,6 +37,7 @@ done;
3737
echo
3838

3939
# 2. Insert NYC Yellowcab data.
40+
echo "Importing NYC Yellowcab data. This will take a few seconds/minutes."
4041
time $crash <<EOF
4142
CREATE TABLE IF NOT EXISTS "nyc_taxi"
4243
("congestion_surcharge" REAL, "dolocationid" INTEGER, "extra" REAL, "fare_amount" REAL, "improvement_surcharge" REAL, "mta_tax" REAL, "passenger_count" INTEGER, "payment_type" INTEGER, "pickup_datetime" TIMESTAMP WITH TIME ZONE, "pulocationid" INTEGER, "ratecodeid" INTEGER, "store_and_fwd_flag" TEXT, "tip_amount" REAL, "tolls_amount" REAL, "total_amount" REAL, "trip_distance" REAL, "vendorid" INTEGER)
@@ -57,5 +58,11 @@ SELECT COUNT(*) FROM nyc_taxi;
5758
EOF
5859
echo
5960

60-
# 4. Shut down database again.
61-
$cratedb_stop
61+
# 4. User notes
62+
echo
63+
echo "The CrateDB database service has been started and populated with a subset of the NYC Yellowcab data into the table 'doc.nyc_taxi'."
64+
echo "The administration interface is available at http://localhost:4200."
65+
echo
66+
echo "If you are finished, you may want to shut down the database service using '${cratedb_stop}'."
67+
echo "Enjoy conducting your experiments."
68+
echo

0 commit comments

Comments
 (0)