aboutsummaryrefslogtreecommitdiffstats
path: root/pig/fetch_deps.sh
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2018-03-29 22:04:39 -0700
committerBryan Newbold <bnewbold@archive.org>2018-03-29 22:04:39 -0700
commit2d85e1cce20bea15595a70f2d1fb303e95ca5d0f (patch)
tree7c721fdf07fb5469daed5598426a1ddb724309b1 /pig/fetch_deps.sh
parent67e0a765749a4754ed353fe30c8e771d136322a4 (diff)
downloadsandcrawler-2d85e1cce20bea15595a70f2d1fb303e95ca5d0f.tar.gz
sandcrawler-2d85e1cce20bea15595a70f2d1fb303e95ca5d0f.zip
progress on pig tests
Diffstat (limited to 'pig/fetch_deps.sh')
-rwxr-xr-xpig/fetch_deps.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/pig/fetch_deps.sh b/pig/fetch_deps.sh
new file mode 100755
index 0000000..529f8f7
--- /dev/null
+++ b/pig/fetch_deps.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+# If you change this, also update tests/pighelper.py
+PIG_VERSION="0.12.0-cdh5.0.1"
+
+mkdir -p deps/
+cd deps/
+wget -c https://archive.cloudera.com/cdh5/cdh/5/pig-${PIG_VERSION}.tar.gz
+tar xvf pig-${PIG_VERSION}.tar.gz
+ln -fs pig-${PIG_VERSION} pig
+cd pig
+ln -fs pig-${PIG_VERSION}.jar pig.jar
+cd ..
+
+JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
+./pig/bin/pig -x local -version
+