Options opts = new Options();
opts.addOption(usernameOpt);
opts.addOption(passwordOpt);
Parser p = new BasicParser();
CommandLine cl = null;
try {
cl = p.parse(opts, args);
} catch (ParseException e1) {
System.out.println("Parse Exception, exiting.");
return;
}
credentials = new AuthInfo(cl.getOptionValue("username", "root"), cl.getOptionValue("password", "secret").getBytes(), HdfsZooInstance.getInstance()