public static List<String> getRTTableHosts(CuratorFramework zkClient, String table) throws Exception {
        if (zkClient.checkExists().forPath(IndexRConfig.zkRTHostRoot()) == null) {
            return Collections.emptyList();
        }
        List<String> hosts = zkClient.getChildren().forPath(IndexRConfig.zkRTHostRoot());
        List<String> validHosts = new ArrayList<>();
        for (String host : hosts) {
            List<String> tables = getHostRTTables(zkClient, host);
            if (tables.contains(table)) {
                validHosts.add(host);
            }
        }
        return validHosts;
    }
Get all nodes which hosting the realtime table.
indexr-server/src/main/java/io/indexr/server/ServerHelper.java