Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Till Westmann | 0f6ee0a | 2015-10-02 17:10:19 -0700 | [diff] [blame] | 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 19 | if [ -z $ASTERIX_HOME ] |
| 20 | then |
| 21 | pushd $(dirname $0) >/dev/null |
| 22 | cd .. |
| 23 | export ASTERIX_HOME=$(pwd) |
| 24 | popd >/dev/null |
| 25 | fi |
| 26 | |
| 27 | for jar in `ls $ASTERIX_HOME/lib/*.jar` |
| 28 | do |
| 29 | if [ -z $ASTERIX_CLASSPATH ] |
| 30 | then |
| 31 | ASTERIX_CLASSPATH=$jar |
| 32 | else |
| 33 | ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$jar |
| 34 | fi |
| 35 | done |
| 36 | |
| 37 | ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH: |
| 38 | ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$YARN_CONF_DIR:$HADOOP_CONF_DIR:$HADOOP_CONF_PATH |
| 39 | pushd $(dirname $0) > /dev/null |
| 40 | cd $ASTERIX_HOME |
Ian Maxon | f18bba2 | 2015-08-21 12:35:14 -0700 | [diff] [blame] | 41 | java $JAVA_OPTS -cp $ASTERIX_CLASSPATH -Dlog4j.configuration=file://$ASTERIX_HOME/conf/asterix-client-log4j.properties org.apache.asterix.aoya.AsterixYARNClient $@ |
Ian Maxon | 69375a1 | 2015-06-29 16:12:53 -0700 | [diff] [blame] | 42 | popd > /dev/null |