blob: c107843e0a5929b2c6eec4d88a08b548ffd08b8b [file] [log] [blame]
Ian Maxon69375a12015-06-29 16:12:53 -07001#!/usr/bin/env bash
Till Westmann0f6ee0a2015-10-02 17:10:19 -07002# 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 Maxon69375a12015-06-29 16:12:53 -070019if [ -z $ASTERIX_HOME ]
20 then
21 pushd $(dirname $0) >/dev/null
22 cd ..
23 export ASTERIX_HOME=$(pwd)
24 popd >/dev/null
25fi
26
27for 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
35done
36
37ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:
38ASTERIX_CLASSPATH=$ASTERIX_CLASSPATH:$YARN_CONF_DIR:$HADOOP_CONF_DIR:$HADOOP_CONF_PATH
39pushd $(dirname $0) > /dev/null
40cd $ASTERIX_HOME
Ian Maxonf18bba22015-08-21 12:35:14 -070041java $JAVA_OPTS -cp $ASTERIX_CLASSPATH -Dlog4j.configuration=file://$ASTERIX_HOME/conf/asterix-client-log4j.properties org.apache.asterix.aoya.AsterixYARNClient $@
Ian Maxon69375a12015-06-29 16:12:53 -070042popd > /dev/null