public static void downloadFromMaster(Map conf, String file, String localFile) throws AuthorizationException, IOException, TException { NimbusClient client = NimbusClient.getConfiguredClient(conf); try { download(client, file, localFile); } finally { client.close(); } }
public static void downloadFromHost( Map conf, String file, String localFile, String host, int port) throws IOException, TException, AuthorizationException { NimbusClient client = new NimbusClient(conf, host, port, null); try { download(client, file, localFile); } finally { client.close(); } }