コード例 #1
0
ファイル: zeppelin.py プロジェクト: apache/bigtop
def configure_hive(hive):
    hive_ip = hive.get_private_ip()
    hive_port = hive.get_port()
    hive_url = "jdbc:hive2://%s:%s" % (hive_ip, hive_port)
    if data_changed("hive.connect", hive_url):
        hookenv.status_set("maintenance", "configuring hive")
        zeppelin = Zeppelin()
        zeppelin.configure_hive(hive_url)
        set_state("zeppelin.hive.configured")
        update_status()
コード例 #2
0
ファイル: zeppelin.py プロジェクト: apache/bigtop
def configure_hive(hive):
    hive_ip = hive.get_private_ip()
    hive_port = hive.get_port()
    hive_url = 'jdbc:hive2://%s:%s' % (hive_ip, hive_port)
    if data_changed('hive.connect', hive_url):
        hookenv.status_set('maintenance', 'configuring hive')
        zeppelin = Zeppelin()
        zeppelin.configure_hive(hive_url)
        set_state('zeppelin.hive.configured')
        update_status()
コード例 #3
0
def configure_hive(hive):
    hive_ip = hive.get_private_ip()
    hive_port = hive.get_port()
    hive_url = 'jdbc:hive2://%s:%s' % (hive_ip, hive_port)
    if data_changed('hive.connect', hive_url):
        hookenv.status_set('maintenance', 'configuring hive')
        zeppelin = Zeppelin()
        zeppelin.configure_hive(hive_url)
        set_state('zeppelin.hive.configured')
        update_status()
コード例 #4
0
ファイル: zeppelin.py プロジェクト: apache/bigtop
def unconfigure_hive():
    hookenv.status_set("maintenance", "removing hive relation")
    zeppelin = Zeppelin()
    zeppelin.configure_hive("jdbc:hive2://:")
    remove_state("zeppelin.hive.configured")
    update_status()
コード例 #5
0
ファイル: zeppelin.py プロジェクト: apache/bigtop
def unconfigure_hive():
    hookenv.status_set('maintenance', 'removing hive relation')
    zeppelin = Zeppelin()
    zeppelin.configure_hive('jdbc:hive2://:')
    remove_state('zeppelin.hive.configured')
    update_status()
コード例 #6
0
def unconfigure_hive():
    hookenv.status_set('maintenance', 'removing hive relation')
    zeppelin = Zeppelin()
    zeppelin.configure_hive('jdbc:hive2://:')
    remove_state('zeppelin.hive.configured')
    update_status()