-
Notifications
You must be signed in to change notification settings - Fork 9
/
run.sh
executable file
·28 lines (24 loc) · 876 Bytes
/
run.sh
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
#!/bin/bash
set -e
if [ "$1" = 'consumer' ]; then
java -ea -Dsecor.kafka.group=${SECOR_GROUP} \
-Daws.access.key=${AWS_ACCESS_KEY} \
-Daws.secret.key=${AWS_SECRET_KEY} \
-Dzookeeper.quorum=${ZK_QUORUM} \
-Dkafka.zookeeper.path=${ZK_PATH} \
-Dkafka.seed.broker.host=${SEED_BROKER_HOST} \
-Dkafka.seed.broker.port=${SEED_BROKER_PORT} \
-Dsecor.s3.bucket=${S3_BUCKET} \
-Dsecor.s3.path=${S3_PATH} \
-Dsecor.kafka.topic_filter=${TOPIC_FILTER} \
-Dsecor.message.parser.class=${MESSAGE_PARSER_CLASS} \
-Dmessage.timestamp.name=${TS_NAME} \
-Dsecor.local.path=${LOCAL_PATH} \
-Dsecor.file.reader.writer.factory=${READER_WRITER_FACTORY} \
-Dsecor.compression.codec=${COMPRESSION_CODEC} \
-Dlog4j.configuration=log4j.prod.properties \
-Dconfig=secor.prod.backup.properties \
-cp secor-0.1-SNAPSHOT.jar:lib/* \
com.pinterest.secor.main.ConsumerMain
fi
exec "$@"