return new SetProcessor().run(cmd.substring(firstToken.length()).trim()).getResponseCode(); } else if (firstToken.equalsIgnoreCase("dfs")) { return new DfsProcessor(ss.getConf()).run(cmd.substring(firstToken.length()).trim()).getResponseCode();
String[] tokens = splitCmd(command); CommandProcessorResponse authErrResp = CommandUtil.authorizeCommand(ss, HiveOperationType.DFS, Arrays.asList(tokens));
case DFS: SessionState ss = SessionState.get(); return new DfsProcessor(ss.getConf()); case ADD: return new AddResourceProcessor();
case DFS: SessionState ss = SessionState.get(); return new DfsProcessor(ss.getConf()); case ADD: return new AddResourceProcessor();
return new SetProcessor().run(cmd.substring(firstToken.length()).trim()).getResponseCode(); } else if (firstToken.equalsIgnoreCase("dfs")) { return new DfsProcessor(ss.getConf()).run(cmd.substring(firstToken.length()).trim()).getResponseCode();
public static CommandProcessor get(String cmd, HiveConf conf) { String cmdl = cmd.toLowerCase(); if ("set".equals(cmdl)) { return new SetProcessor(); } else if ("dfs".equals(cmdl)) { SessionState ss = SessionState.get(); return new DfsProcessor(ss.getConf()); } else if ("add".equals(cmdl)) { return new AddResourceProcessor(); } else if ("delete".equals(cmdl)) { return new DeleteResourceProcessor(); } else if (!isBlank(cmd)) { if (conf == null) { return new Driver(); } Driver drv = mapDrivers.get(conf); if (drv == null) { drv = new Driver(); mapDrivers.put(conf, drv); } drv.init(); return drv; } return null; }
return new SetProcessor().run(cmd.substring(firstToken.length()).trim()).getResponseCode(); } else if (firstToken.equalsIgnoreCase("dfs")) { return new DfsProcessor(ss.getConf()).run(cmd.substring(firstToken.length()).trim()).getResponseCode();
case DFS: SessionState ss = SessionState.get(); return new DfsProcessor(ss.getConf()); case ADD: return new AddResourceProcessor();
return new SetProcessor().run(cmd.substring(firstToken.length()).trim()).getResponseCode(); } else if (firstToken.equalsIgnoreCase("dfs")) { return new DfsProcessor(ss.getConf()).run(cmd.substring(firstToken.length()).trim()).getResponseCode();
return new SetProcessor().run(cmd.substring(firstToken.length()).trim()).getResponseCode(); } else if (firstToken.equalsIgnoreCase("dfs")) { return new DfsProcessor(ss.getConf()).run(cmd.substring(firstToken.length()).trim()).getResponseCode();