Skip to content

Commit

Permalink
Add dataflow template build script support for decoder options (#1293)
Browse files Browse the repository at this point in the history
  • Loading branch information
whd authored May 20, 2020
1 parent bb4d6a5 commit ad1184a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ingestion-beam/bin/build-template
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ WORKER_OPTS="--numWorkers=1 \
--maxNumWorkers=${MAX_NUM_WORKERS} \
--autoscalingAlgorithm=THROUGHPUT_BASED"

DECODER_OPTS="${DECODER_OPTS}"

SINK_OPTS="--workerMachineType=${SINK_WORKER_MACHINE_TYPE} \
--workerDiskType='compute.googleapis.com/projects//zones//diskTypes/pd-ssd' \
--diskSizeGb=${SINK_DISK_SIZE} \
Expand All @@ -52,7 +54,8 @@ ${SINK_OPTS}"
elif [[ $JOB_TYPE == "decoder" ]] ; then
JOB_CLASS="com.mozilla.telemetry.Decoder"
OUTPUT_OPTS="--outputType=pubsub \
--outputFileFormat=json"
--outputFileFormat=json \
${DECODER_OPTS}"
ERROR_OUTPUT_OPTS="--errorOutputType=pubsub"
elif [[ $JOB_TYPE =~ ^republisher_.*$ ]] ; then
JOB_CLASS="com.mozilla.telemetry.Republisher"
Expand Down

0 comments on commit ad1184a

Please sign in to comment.