Skip to content

Commit

Permalink
Merge pull request #45 from harveyfeng/v2
Browse files Browse the repository at this point in the history
Add Shark 0.9.1 support
  • Loading branch information
shivaram committed Apr 11, 2014
2 parents 8196ba9 + b35e59d commit df2d208
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions shark/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pushd /root

if [ -d "shark" ]; then
echo "Shark seems to be installed. Exiting."
popd
return
fi

Expand Down Expand Up @@ -45,8 +46,16 @@ else
wget http://s3.amazonaws.com/spark-related-packages/shark-0.8.1-bin-cdh4.tgz
fi
;;
0.9.0 | 0.9.1)
if [[ "$HADOOP_MAJOR_VERSION" == "1" ]]; then
wget https://s3.amazonaws.com/spark-related-packages/shark-0.9.1-bin-hadoop1.tgz
else
wget https://s3.amazonaws.com/spark-related-packages/shark-0.9.1-bin-hadoop2.tgz
fi
;;
*)
echo "ERROR: Unknown Shark version"
popd
return
esac

Expand Down
7 changes: 6 additions & 1 deletion templates/root/shark/conf/shark-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ SPARK_JAVA_OPTS+="-Dspark.kryoserializer.buffer.mb=10 "
#SPARK_JAVA_OPTS+="-verbose:gc -XX:-PrintGCDetails -XX:+PrintGCTimeStamps "
export SPARK_JAVA_OPTS

export HIVE_HOME="/root/hive-0.9.0-bin"
if [ -f "/root/hive-0.9-bin" ]; then
# Point HIVE_HOME to the Hive 0.9 binary manually fetched
# during instance setup. This only applies for Shark v0.8.
export HIVE_HOME="/root/hive-0.9.0-bin"
fi

export HADOOP_HOME=/root/ephemeral-hdfs
export HIVE_CONF_DIR=/root/ephemeral-hdfs/conf

Expand Down

0 comments on commit df2d208

Please sign in to comment.