def readJsonFile():
    Of = open(File, encoding='utf-8')
    Ofload = json.loads(Of.read())
    gtm = Ofload['gtm']
    gtms = Ofload['gtm_slave']
    cn = Ofload['coordinator']
    dn = Ofload['datanode']
    dns = Ofload['datanode_slave']
    global gtmhost, gtmport, gtmdata, gtmuser, gtmname
    global gtmshost, gtmsport, gtmsdata, gtmsuser, gtmsname
    global cnhost, cnport, cndata, cnuser, cnname, cnpooler
    global dnhost, dnport, dndata, dnuser, dnname, dnpooler
    global dnsname, dnshost, dnsport, dnsdata, dnsuser, dnspooler, dnsmname, dnsmuser, dnsmport, dnsmhost
    (gtmhost, gtmport, gtmdata, gtmuser, gtmname) = ([], [], [], [], [])
    (gtmshost, gtmsport, gtmsdata, gtmsuser, gtmsname) = ([], [], [], [], [])
    (cnhost, cnport, cndata, cnuser, cnname, cnpooler) = ([], [], [], [], [], [])
    (dnhost, dnport, dndata, dnuser, dnname, dnpooler) = ([], [], [], [], [], [])
    (dnsname, dnshost, dnsport, dnsdata, dnsuser, dnspooler, dnsmname, dnsmuser, dnsmport, dnsmhost) = ([], [], [], [], [], [], [], [], [], [])
    for i in gtm:
        Gtmhost = i['host']
        Gtmport = i['port']
        Gtmdata = i['datadir']
        Gtmuser = i['user']
        Gtmname = i['name']
        gtmhost.append(Gtmhost)
        gtmport.append(Gtmport)
        gtmdata.append(Gtmdata)
        gtmuser.append(Gtmuser)
        gtmname.append(Gtmname)
    for i in gtms:
        Gtmshost = i['host']
        Gtmsport = i['port']
        Gtmsdata = i['datadir']
        Gtmsuser = i['user']
        Gtmsname = i['name']
        gtmshost.append(Gtmshost)
        gtmsport.append(Gtmsport)
        gtmsdata.append(Gtmsdata)
        gtmsuser.append(Gtmsuser)
        gtmsname.append(Gtmsname)
    for i in cn:
        Cnhost = i['host']
        Cnport = i['port']
        Cndata = i['datadir']
        Cnuser = i['user']
        Cnname = i['name']
        Cnpooler = i['pooler_port']
        cnhost.append(Cnhost)
        cnport.append(Cnport)
        cnuser.append(Cnuser)
        cndata.append(Cndata)
        cnname.append(Cnname)
        cnpooler.append(Cnpooler)
    for i in dn:
        Dnhost = i['host']
        Dnport = i['port']
        Dndata = i['datadir']
        Dnuser = i['user']
        Dnname = i['name']
        Dnpooler = i['pooler_port']
        dnhost.append(Dnhost)
        dnport.append(Dnport)
        dndata.append(Dndata)
        dnuser.append(Dnuser)
        dnname.append(Dnname)
        dnpooler.append(Dnpooler)
    for i in dns:
        Dnshost = i['host']
        Dnsport = i['port']
        Dnsdata = i['datadir']
        Dnsuser = i['user']
        Dnspooler = i['pooler_port']
        Dnsname = i['name']
        Dnsmport = i['Master_port']
        Dnsmuser = i['Master_user']
        Dnsmname = i['Master_name']
        Dnsmhost = i['Master_host']
        dnshost.append(Dnshost)
        dnsport.append(Dnsport)
        dnsdata.append(Dnsdata)
        dnsuser.append(Dnsuser)
        dnspooler.append(Dnspooler)
        dnsname.append(Dnsname)
        dnsmport.append(Dnsmport)
        dnsmuser.append(Dnsmuser)
        dnsmname.append(Dnsmname)
        dnsmhost.append(Dnsmhost)
def readJsonFile():
    Of = open(File, encoding='utf-8')
    Ofload = json.loads(Of.read())
    gtm = Ofload['gtm']
    gtms = Ofload['gtm_slave']
    cn = Ofload['coordinator']
    dn = Ofload['datanode']
    dns = Ofload['datanode_slave']
    global gtmhost, gtmport, gtmdata, gtmuser, gtmname
    global gtmshost, gtmsport, gtmsdata, gtmsuser, gtmsname
    global cnhost, cnport, cndata, cnuser, cnname, cnpooler
    global dnhost, dnport, dndata, dnuser, dnname, dnpooler
    global dnsname, dnshost, dnsport, dnsdata, dnsuser, dnspooler, dnsmname, dnsmuser, dnsmport, dnsmhost
    (gtmhost, gtmport, gtmdata, gtmuser, gtmname) = ([], [], [], [], [])
    (gtmshost, gtmsport, gtmsdata, gtmsuser, gtmsname) = ([], [], [], [], [])
    (cnhost, cnport, cndata, cnuser, cnname, cnpooler) = ([], [], [], [], [], [])
    (dnhost, dnport, dndata, dnuser, dnname, dnpooler) = ([], [], [], [], [], [])
    (dnsname, dnshost, dnsport, dnsdata, dnsuser, dnspooler, dnsmname, dnsmuser, dnsmport, dnsmhost) = ([], [], [], [], [], [], [], [], [], [])
    for i in gtm:
        Gtmhost = i['host']
        Gtmport = i['port']
        Gtmdata = i['datadir']
        Gtmuser = i['user']
        Gtmname = i['name']
        gtmhost.append(Gtmhost)
        gtmport.append(Gtmport)
        gtmdata.append(Gtmdata)
        gtmuser.append(Gtmuser)
        gtmname.append(Gtmname)
    for i in gtms:
        Gtmshost = i['host']
        Gtmsport = i['port']
        Gtmsdata = i['datadir']
        Gtmsuser = i['user']
        Gtmsname = i['name']
        gtmshost.append(Gtmshost)
        gtmsport.append(Gtmsport)
        gtmsdata.append(Gtmsdata)
        gtmsuser.append(Gtmsuser)
        gtmsname.append(Gtmsname)
    for i in cn:
        Cnhost = i['host']
        Cnport = i['port']
        Cndata = i['datadir']
        Cnuser = i['user']
        Cnname = i['name']
        Cnpooler = i['pooler_port']
        cnhost.append(Cnhost)
        cnport.append(Cnport)
        cnuser.append(Cnuser)
        cndata.append(Cndata)
        cnname.append(Cnname)
        cnpooler.append(Cnpooler)
    for i in dn:
        Dnhost = i['host']
        Dnport = i['port']
        Dndata = i['datadir']
        Dnuser = i['user']
        Dnname = i['name']
        Dnpooler = i['pooler_port']
        dnhost.append(Dnhost)
        dnport.append(Dnport)
        dndata.append(Dndata)
        dnuser.append(Dnuser)
        dnname.append(Dnname)
        dnpooler.append(Dnpooler)
    for i in dns:
        Dnshost = i['host']
        Dnsport = i['port']
        Dnsdata = i['datadir']
        Dnsuser = i['user']
        Dnspooler = i['pooler_port']
        Dnsname = i['name']
        Dnsmport = i['Master_port']
        Dnsmuser = i['Master_user']
        Dnsmname = i['Master_name']
        Dnsmhost = i['Master_host']
        dnshost.append(Dnshost)
        dnsport.append(Dnsport)
        dnsdata.append(Dnsdata)
        dnsuser.append(Dnsuser)
        dnspooler.append(Dnspooler)
        dnsname.append(Dnsname)
        dnsmport.append(Dnsmport)
        dnsmuser.append(Dnsmuser)
        dnsmname.append(Dnsmname)
        dnsmhost.append(Dnsmhost)