예제 #1
0
 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();
   }
 }
예제 #2
0
 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();
   }
 }