blob: c2fc20fd5a4b6f36cf0d3d7a12b0484d8ad44131 [file] [log] [blame]
Ian Maxon69375a12015-06-29 16:12:53 -07001#!/usr/bin/env bash
2if [ -z $ASTERIX_HOME ]
3 then
4 pushd $(dirname $0) >/dev/null
5 cd ..
6 export ASTERIX_HOME=$(pwd)
7 popd >/dev/null
8fi
9
10for jar in `ls $ASTERIX_HOME/lib/*.jar`
11 do
12 if [ -z $ASTERIX_CLASSPATH ]
13 then
14 ASTERIX_CLASSPATH=$jar
15 else
16 ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$jar
17 fi
18done
19
20ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:
21ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$YARN_CONF_DIR:$HADOOP_CONF_DIR:$HADOOP_CONF_PATH
22pushd $(dirname $0) > /dev/null
23cd $ASTERIX_HOME
24java $JAVA_OPTS -cp $ASTERIX_CLASSPATH -Dlog4j.configuration=file://$ASTERIX_HOME/conf/asterix-client-log4j.properties edu.uci.ics.asterix.aoya.AsterixYARNClient $@
25popd > /dev/null