def configure_zeppelin(spark): hookenv.status_set('maintenance', 'Setting up Zeppelin') zepp = Zeppelin(get_dist_config()) zepp.setup_zeppelin() zepp.configure_zeppelin() zepp.start() zepp.open_ports() set_state('zeppelin.started') hookenv.status_set('active', 'Ready')
def configure_zeppelin(spark): hookenv.status_set("maintenance", "Setting up Zeppelin") zepp = Zeppelin(get_dist_config()) zepp.setup_zeppelin() zepp.configure_zeppelin() zepp.start() zepp.open_ports() set_state("zeppelin.started") hookenv.status_set("active", "Ready")
def stop_zeppelin(): zepp = Zeppelin(get_dist_config()) zepp.stop() remove_state('zepplin.started')
def install_zeppelin(hadoop): zepp = Zeppelin(get_dist_config()) if zepp.verify_resources(): hookenv.status_set('maintenance', 'Installing Zeppelin') zepp.install() set_state('zeppelin.installed')
def install_zeppelin(hadoop): zepp = Zeppelin(get_dist_config()) if zepp.verify_resources(): hookenv.status_set("maintenance", "Installing Zeppelin") zepp.install() set_state("zeppelin.installed")