Skip to content

Instantly share code, notes, and snippets.

Dan Corbiani skorski

Block or report user

Report or block skorski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View nifi.stateful.deployment.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nifi-example
labels:
app: nifi
spec:
replicas: 1
template:
metadata:
@skorski
skorski / statefulMapping.sh
Last active Dec 16, 2017
Stateful Containers Medium Post
View statefulMapping.sh
apt-get update; apt-get install rsync -y
BOOTSTRAP_DIR=${BOOTSTRAP_DIR:-/opt/nifi/}
OUTPUT_DIR=${OUTPUT_DIR:-/tmp/}
INPUT_TIME=$(find ${BOOTSTRAP_DIR} -type f | xargs stat --format '%Y' 2>/dev/null | sort -nr | head -n1)
OUTPUT_TIME=$(find ${OUTPUT_DIR} -type f | xargs stat --format '%Y' 2>/dev/null | sort -nr | head -n1)
echo IN:${INPUT_TIME} OUT:${OUTPUT_TIME}
if [[ ${INPUT_TIME} -gt 0 ]] || [[ ${OUTPUT_TIME} -gt 0 ]]
then
if [[ ${INPUT_TIME} -eq ${OUTPUT_TIME} ]]
then
You can’t perform that action at this time.