Răsfoiți Sursa

Check for Hive

cartershanklin 12 ani în urmă
părinte
comite
de66a23689
2 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  1. 5 0
      tpcds-setup-sandbox.sh
  2. 5 0
      tpcds-setup.sh

+ 5 - 0
tpcds-setup-sandbox.sh

@@ -4,6 +4,11 @@ if [ ! -f tpcds-gen/target/tpcds-gen-1.0-SNAPSHOT.jar ]; then
 	echo "Build the data generator with build.sh first"
 	exit 1
 fi
+which hive > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+	echo "Script must be run where Hive is installed"
+	exit 1
+fi
 
 set -x
 set -e

+ 5 - 0
tpcds-setup.sh

@@ -4,6 +4,11 @@ if [ ! -f tpcds-gen/target/tpcds-gen-1.0-SNAPSHOT.jar ]; then
 	echo "Build the data generator with build.sh first"
 	exit 1
 fi
+which hive > /dev/null 2>&1
+if [ $? -ne 0 ]; then
+	echo "Script must be run where Hive is installed"
+	exit 1
+fi
 
 set -x
 set -e