Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | if [ -z $ASTERIX_HOME ] |
| 3 | then |
| 4 | pushd $(dirname $0) >/dev/null |
| 5 | cd .. |
| 6 | export ASTERIX_HOME=$(pwd) |
| 7 | popd >/dev/null |
| 8 | fi |
| 9 | |
| 10 | for 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 |
| 18 | done |
| 19 | |
| 20 | ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH: |
| 21 | ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$YARN_CONF_DIR:$HADOOP_CONF_DIR:$HADOOP_CONF_PATH |
| 22 | pushd $(dirname $0) > /dev/null |
| 23 | cd $ASTERIX_HOME |
| 24 | java $JAVA_OPTS -cp $ASTERIX_CLASSPATH -Dlog4j.configuration=file://$ASTERIX_HOME/conf/asterix-client-log4j.properties edu.uci.ics.asterix.aoya.AsterixYARNClient $@ |
| 25 | popd > /dev/null |