blob: 7bebe06c765e22d3fe5fcd06f9c270d39f3a1208 (
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
#PIG_VERSION="0.12.0-cdh5.2.0"
# Using more recent version to work around snappy classpath problem
PIG_VERSION="0.17.0"
JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")
mkdir -p deps/
cd deps/
# Fetch Pig
#wget -c https://archive.cloudera.com/cdh5/cdh/5/pig-${PIG_VERSION}.tar.gz
wget -c http://mirror.metrocast.net/apache/pig/pig-${PIG_VERSION}/pig-${PIG_VERSION}.tar.gz
tar xvf pig-${PIG_VERSION}.tar.gz
ln -fs pig-${PIG_VERSION} pig
./pig/bin/pig -x local -version
|