Skip to content

Commit

Permalink
Fixed the main method params in HdfsFetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinmay Soman committed Dec 6, 2012
1 parent c745f80 commit 7693d6b
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -495,12 +495,18 @@ public void setAsyncOperationStatus(AsyncOperationStatus status) {
* Main method for testing fetching
*/
public static void main(String[] args) throws Exception {
if(args.length != 1)
if(args.length < 1)
Utils.croak("USAGE: java " + HdfsFetcher.class.getName()
+ " url [keytab location] [kerberos username]");
String url = args[0];
String keytabLocation = args[1];
String proxyUser = args[2];

String keytabLocation = "";
String proxyUser = "";
if(args.length >= 3) {
keytabLocation = args[1];
proxyUser = args[2];
}

long maxBytesPerSec = 1024 * 1024 * 1024;
Path p = new Path(url);

Expand Down

0 comments on commit 7693d6b

Please sign in to comment.