def get_zk_node_ips():
 try:
  info = file_io.read(constants.ZK_LOCATIONS_JSON_FILE)
  zk_json = json.loads(info)
  return zk_json['locations']
 except IOError as io_error:
  logging.exception(io_error)
  return []
 except ValueError as value_error:
  logging.exception(value_error)
  return []
 except TypeError as type_error:
  logging.exception(type_error)
  return []
 except KeyError as key_error:
  logging.exception(key_error)
  return []

def get_zk_node_ips ( ) : try : info = file_io . read ( constants . ZK_LOCATIONS_JSON_FILE ) zk_json = json . loads ( info ) return zk_json [ 'locations' ] except IOError as io_error : logging . exception ( io_error ) return [ ] except ValueError as value_error : logging . exception ( value_error ) return [ ] except TypeError as type_error : logging . exception ( type_error ) return [ ] except KeyError as key_error : logging . exception ( key_error ) return [ ]
returns a list of zookeeper node ips .