aboutsummaryrefslogtreecommitdiffstats
path: root/pig/fetch_deps.sh
blob: 529f8f74f040c26fe148d5f8e2b5f250b6bda673 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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