-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetupKafka.env
executable file
·69 lines (54 loc) · 2.03 KB
/
setupKafka.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Configuration file to setup SAL environment. Default config assumes
# ts_opensplice is available in the same directory as ts_sal. You don't need to
# edit this file for the default config described in README.md.
#
# If needed, please change the LSST_SDK_INSTALL and LSST_SAL_PREFIX to the actual
# locations before running the script.
export MAVEN_RELEASE=3.9.8
export AVRO_RELEASE=1.11.1
export BOOST_RELEASE=1.78
export JDK_RELEASE=17
if [ -z "$LSST_SDK_INSTALL" ]; then
export LSST_SDK_INSTALL=/opt/lsst/tssw/ts_sal
fi
if [ -z "$LSST_SAL_PREFIX" ]; then
export LSST_SAL_PREFIX=/opt/lsst/ts_sal
fi
if [ -z "$LSST_KAFKA_CLASSDIR" ]; then
export LSST_KAFKA_CLASSDIR=$LSST_SAL_PREFIX/lib
fi
BS_DIRNAME=$(dirname $BASH_SOURCE)
if [ $BS_DIRNAME = "." ]; then
export LSST_SDK_INSTALL=${LSST_SDK_INSTALL:=$(pwd)}
else
export LSST_SDK_INSTALL=${LSST_SDK_INSTALL:=$(pwd)/${BS_DIRNAME}}
fi
echo "LSST_SDK_INSTALL $LSST_SDK_INSTALL"
export SAL_HOME=$LSST_SDK_INSTALL/lsstsal
export SAL_WORK_DIR=$LSST_SDK_INSTALL/test
export SAL_CPPFLAGS=-m64
source $SAL_HOME/salenv.sh
if [ -z "$JAVA_HOME" ]; then
export JAVA_HOME=/usr/lib/jvm/java-17-zulu-openjdk-jdk
fi
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LSST_SAL_PREFIX}/lib:${SAL_WORK_DIR}/lib
export PATH=$JAVA_HOME/bin:${LSST_SAL_PREFIX}/bin:${LSST_SDK_INSTALL}/bin:${PATH}
export LSST_KAFKA_IP=`ip route get 1 | awk '{print $7;exit}'`
export LSST_KAFKA_LOCAL_SCHEMAS=${LSST_SAL_PREFIX}
export OSPL_RELEASE=0.0.0
export KAFKA_RELEASE=7.6
export JACKSON_RELEASE=2.15.2
export TS_SAL_DIR=$LSST_SDK_INSTALL
export TS_XML_DIR=$LSST_SDK_INSTALL/../ts_xml
export AVRO_RELEASE=`$SAL_DIR/avro_release.tcl`
export AVRO_HOME=$LSST_SAL_PREFIX/lib
export AVRO_INCL=$LSST_SAL_PREFIX/include/avro
export AVRO_PREFIX=lsst.sal
export AVRO_CLASSPATH=lsst/sal
mkdir -p $LSST_SDK_INSTALL/lsstsal/lib
pushd $LSST_SDK_INSTALL
sal_version=`git describe --tags --dirty`
popd
export SAL_VERSION=$sal_version
echo "LSST middleware toolset environment "$sal_version" (Kafka) is configured."
echo "LSST_SDK_INSTALL=$LSST_SDK_INSTALL"