This repository has been archived by the owner on Jan 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contains environments variables for etl scripts. Factorize some code and creates symbolic links for hraven-core.jar and hraven-etl.jar if needed. Etl scripts now source this file. Source hraven-etl-env.sh and add default values for costFile and rawFileSizeLimit. Also calls jobFilePreProcessor.sh and jobFileProcessor.sh with right arity and parameters from now. source hraven-etl-env.sh source hraven-etl-env.sh and add defaultRawFileSizeLimit to parameters exports HBASE_CLASSPATH
- Loading branch information
y.bismuth
committed
May 19, 2014
1 parent
d1b12f8
commit 6b76f95
Showing
6 changed files
with
70 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2013 Twitter, Inc. | ||
# | ||
# Licensed 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. | ||
# | ||
# Used to configure hraven-etl environment | ||
|
||
home=$(dirname $0) | ||
source $home/../../conf/hraven-env.sh | ||
source $home/pidfiles.sh | ||
|
||
#check if hraven-core.jar and hraven-etl.jar exist | ||
#if not, create symbolic links to the needed jars | ||
#we assume either they both exist, or none does | ||
libhraven=`cd $(dirname $0)/../../lib;pwd;` | ||
if [ ! -f $libhraven/hraven-core.jar ] || [ ! -f $libhraven/hraven-etl.jar ] | ||
then | ||
ln -s $libhraven/hraven-core-*.jar $libhraven/hraven-core.jar | ||
ln -s $libhraven/hraven-etl-*.jar $libhraven/hraven-etl.jar | ||
fi | ||
|
||
# set the hraven-core jar as part of libjars and hadoop classpath | ||
# set this here because it only pertains to the etl logic | ||
export LIBJARS=$home/../../lib/hraven-core.jar | ||
export HADOOP_CLASSPATH=$home/../../lib/*:$LIBJARS:$HBASE_CLASSPATH | ||
hravenEtlJar=$home/../../lib/hraven-etl.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters