{ "Job": { "AllAtOnce": false, "Constraints": null, "CreateIndex": 21, "Datacenters": [ "dc1" ], "ID": "test4501e9e1c-aee9-4df4-ad88-4571e7d9e9bf-0", "JobModifyIndex": 47, "Meta": { "topology.id": "test4501e9e1c-aee9-4df4-ad88-4571e7d9e9bf", "topology.name": "test4" }, "Migrate": null, "ModifyIndex": 51, "Name": "test4-0", "Namespace": "default", "ParameterizedJob": null, "ParentID": "", "Payload": null, "Periodic": null, "Priority": 50, "Region": "global", "Reschedule": null, "Stable": false, "Status": "dead", "StatusDescription": "", "Stop": true, "SubmitTime": 1524721259435240720, "TaskGroups": [ { "Constraints": null, "Count": 1, "EphemeralDisk": { "Migrate": false, "SizeMB": 300, "Sticky": false }, "Meta": null, "Migrate": { "HealthCheck": "checks", "HealthyDeadline": 300000000000, "MaxParallel": 1, "MinHealthyTime": 10000000000 }, "Name": "test4-0", "ReschedulePolicy": { "Attempts": 0, "Delay": 30000000000, "DelayFunction": "exponential", "Interval": 0, "MaxDelay": 3600000000000, "Unlimited": true }, "RestartPolicy": { "Attempts": 2, "Delay": 15000000000, "Interval": 1800000000000, "Mode": "fail" }, "Tasks": [ { "Artifacts": null, "Config": { "args": [ "run_heron_executor.sh" ], "command": "/bin/sh" }, "Constraints": null, "DispatchPayload": null, "Driver": "raw_exec", "Env": { "HERON_EXECUTOR_CMD": "./heron-core/bin/heron-executor --topology-name=test4 --topology-id=test4501e9e1c-aee9-4df4-ad88-4571e7d9e9bf --topology-defn-file=test4.defn --state-manager-connection=127.0.0.1:2181 --state-manager-root=/heron --state-manager-config-file=./heron-conf/statemgr.yaml --tmaster-binary=./heron-core/bin/heron-tmaster --stmgr-binary=./heron-core/bin/heron-stmgr --metrics-manager-classpath=./heron-core/lib/metricsmgr/* --instance-jvm-opts=\"LVhYOitIZWFwRHVtcE9uT3V0T2ZNZW1vcnlFcnJvcg(61)(61)\" --classpath=heron-api-examples.jar --heron-internals-config-file=./heron-conf/heron_internals.yaml --override-config-file=./heron-conf/override.yaml --component-ram-map=exclaim1:536870912,word:536870912 --component-jvm-opts=\"\" --pkg-type=jar --topology-binary-file=heron-api-examples.jar --heron-java-home=/usr/lib/jvm/java-8-openjdk-amd64 --heron-shell-binary=./heron-core/bin/heron-shell --cluster=standalone --role=jerrypeng --environment=default --instance-classpath=./heron-core/lib/instance/* --metrics-sinks-config-file=./heron-conf/metrics_sinks.yaml --scheduler-classpath=./heron-core/lib/scheduler/*:./heron-core/lib/packing/*:./heron-core/lib/statemgr/* --python-instance-binary=./heron-core/bin/heron-python-instance --cpp-instance-binary=./heron-core/bin/heron-cpp-instance --metricscache-manager-classpath=./heron-core/lib/metricscachemgr/* --metricscache-manager-mode=disabled --is-stateful=false --checkpoint-manager-classpath=./heron-core/lib/ckptmgr/*:./heron-core/lib/statefulstorage/*: --stateful-config-file=./heron-conf/stateful.yaml --health-manager-mode=disabled --health-manager-classpath=./heron-core/lib/healthmgr/* --shard=0 --master-port=${NOMAD_PORT_master} --tmaster-controller-port=${NOMAD_PORT_tmaster_ctl} --tmaster-stats-port=${NOMAD_PORT_tmaster_stats} --shell-port=${NOMAD_PORT_shell_port} --metrics-manager-port=${NOMAD_PORT_metrics_mgr} --scheduler-port=${NOMAD_PORT_scheduler} --metricscache-manager-master-port=${NOMAD_PORT_metrics_cache_m} --metricscache-manager-stats-port=${NOMAD_PORT_metrics_cache_s} --checkpoint-manager-port=${NOMAD_PORT_ckptmgr}", "HERON_USE_CORE_PACKAGE_URI": "false", "HERON_NOMAD_WORKING_DIR": "/home/jerrypeng/.herondata/topologies/standalone/jerrypeng/test4501e9e1c-aee9-4df4-ad88-4571e7d9e9bf/container-0", "HERON_TOPOLOGY_DOWNLOAD_CMD": "./heron-core/bin/heron-downloader http://instance-group-3-7rq7:9000/api/v1/file/download/cf6f4ddb-5fe8-4aed-ae3a-0d1c69f3c745-topology.tar.gz .", "HERON_CORE_PACKAGE_DIR": "/home/jerrypeng/.heron/dist/heron-core" }, "KillSignal": "", "KillTimeout": 5000000000, "Leader": false, "LogConfig": { "MaxFileSizeMB": 10, "MaxFiles": 10 }, "Meta": null, "Name": "test4-0", "Resources": { "CPU": 2000, "DiskMB": 0, "IOPS": 0, "MemoryMB": 563, "Networks": [ { "CIDR": "", "Device": "", "DynamicPorts": [ { "Label": "shell_port", "Value": 0 }, { "Label": "ckptmgr", "Value": 0 }, { "Label": "tmaster_stats", "Value": 0 }, { "Label": "scheduler", "Value": 0 }, { "Label": "master", "Value": 0 }, { "Label": "metrics_cache_s", "Value": 0 }, { "Label": "metrics_mgr", "Value": 0 }, { "Label": "tmaster_ctl", "Value": 0 }, { "Label": "metrics_cache_m", "Value": 0 } ], "IP": "", "MBits": 10, "ReservedPorts": null } ] }, "Services": null, "ShutdownDelay": 0, "Templates": [ { "ChangeMode": "restart", "ChangeSignal": "", "DestPath": "run_heron_executor.sh", "EmbeddedTmpl": "#!/bin/sh\n\nset -e\nset -x\n\nCORE_RELEASE_FILE=\"heron-core.tar.gz\"\nCORE_RELEASE_DIR=\"heron-core\"\nTOPOLOGY_PACKAGE_FILE=\"topology.tar.gz\"\n\n# Create working directory if it does not exist\nmkdir -p ${HERON_NOMAD_WORKING_DIR}\n\n# Go to working directory\ncd ${HERON_NOMAD_WORKING_DIR}\n\nif [ \"$HERON_USE_CORE_PACKAGE_URI\" == \"true\" ]; then\n # download and extract heron core package\n curl ${HERON_CORE_PACKAGE_URI} -o ${CORE_RELEASE_FILE}\n tar zxf ${CORE_RELEASE_FILE} && rm -rf ${CORE_RELEASE_FILE}\nelse\n # link the heron core package directory\n ln -s ${HERON_CORE_PACKAGE_DIR} ${CORE_RELEASE_DIR}\nfi\n\n# download and extract heron topology package\n${HERON_TOPOLOGY_DOWNLOAD_CMD}\n\n# launch heron executor\ntrap 'kill -TERM $PID' TERM INT\n${HERON_EXECUTOR_CMD} &\nPID=$!\nwait $PID\ntrap - TERM INT\nwait $PID\nEXIT_STATUS=$?\n", "Envvars": false, "LeftDelim": "{{", "Perms": "0644", "RightDelim": "}}", "SourcePath": "", "Splay": 5000000000, "VaultGrace": 15000000000 } ], "User": "", "Vault": null } ], "Update": null } ], "Type": "service", "Update": { "AutoRevert": false, "Canary": 0, "HealthCheck": "", "HealthyDeadline": 0, "MaxParallel": 0, "MinHealthyTime": 0, "Stagger": 0 }, "VaultToken": "", "Version": 1 } }