Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Fix howl script #5

Open
wants to merge 1 commit into
base: howl
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions howl/howl.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,44 @@
#!/usr/bin/env bash

HOWL_DIR=`dirname "$0"`
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

HOWL_JAR_LOC=`find . -name "howl*.jar"`

HADOOP_CLASSPATH=$HADOOP_CLASSPATH:${HOWL_JAR_LOC}:../lib/commons-cli-2.0-SNAPSHOT.jar:../build/cli/hive-cli-0.7.0.jar:../ql/lib/antlr-runtime-3.0.1.jar
if [ "$HOWL_JAR_LOC" == "" ]
then
echo "Unable to find Howl jar. Exiting."
exit 1
fi

export HADOOP_CLASSPATH=$HADOOP_CLASSPATH
if [ ! "$HADOOP_HOME" ]
then
echo "HADOOP_HOME is not defined. Exiting."
exit 1
fi

for f in `ls ../build/dist/lib/*.jar`; do
HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f

HADOOP_CLASSPATH=$HADOOP_CLASSPATH:${HOWL_JAR_LOC}:../lib/commons-cli-2.0-SNAPSHOT.jar:../build/cli/hive-cli-0.7.0.jar:../ql/lib/antlr-runtime-3.0.1.jar

for f in `ls ../build/dist/lib/*.jar`; do
HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f
done

HADOOP_OPTS="$HADOOP_OPTS -Dhive.metastore.uris=thrift://localhost:9083 "
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH

HADOOP_OPTS="$HADOOP_OPTS -Dhive.metastore.uris=thrift://localhost:9083 "

export HADOOP_OPTS=$HADOOP_OPTS

Expand Down