Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| #!/usr/bin/env python3 | |
| import sys | |
| try: | |
| from charmhelpers.core import host, hookenv, unitdata | |
| from jujubigdata import utils | |
| charm_ready = True | |
| except ImportError: | |
| charm_ready = False | |
| if not charm_ready: | |
| from subprocess import call | |
| call(['action-fail', 'Spark service not yet ready']) | |
| sys.exit(0) | |
| if not host.service_available('spark-history'): | |
| from subprocess import call | |
| call(['action-fail', 'Spark history service not available']) | |
| sys.exit(0) | |
| host.service_stop('spark-history') |