@Ignore @Test public void foo() { String param = "-n root --hiveconf hive.security.authorization.sqlstd.confwhitelist.append='mapreduce.job.*|dfs.*' -u 'jdbc:hive2: BeelineOptionsProcessor processor = new BeelineOptionsProcessor(); CommandLine commandLine = processor.process(StringUtils.split(param)); String n = commandLine.getOptionValue('n'); String u = commandLine.getOptionValue('u'); String p = commandLine.getOptionValue('p'); }
public CommandLine process(String[] argv) { try { return new GnuParser().parse(options, argv); } catch (ParseException e) { throw new RuntimeException(e); } }
BeelineOptionsProcessor { public CommandLine process(String[] argv) { try { return new GnuParser().parse(options, argv); } catch (ParseException e) { throw new RuntimeException(e); } } }
BeelineOptionsProcessor { public CommandLine process(String[] argv) { try { return new GnuParser().parse(options, argv); } catch (ParseException e) { throw new RuntimeException(e); } } BeelineOptionsProcessor(); }
BeelineOptionsProcessor { public CommandLine process(String[] argv) { try { return new GnuParser().parse(options, argv); } catch (ParseException e) { throw new RuntimeException(e); } } BeelineOptionsProcessor(); CommandLine process(String[] argv); }
BeelineOptionsProcessor { public CommandLine process(String[] argv) { try { return new GnuParser().parse(options, argv); } catch (ParseException e) { throw new RuntimeException(e); } } BeelineOptionsProcessor(); CommandLine process(String[] argv);  }