private AuthOozieClient createOozieConnection() throws Exception { AuthOozieClient client = new AuthOozieClient(config.getOozieUrl(), config.getAuthType()); return client; }
private AuthOozieClient createOozieConnection() throws Exception { AuthOozieClient client = new AuthOozieClient(config.getOozieUrl(), config.getAuthType()); return client; }
private File getCacheFile(String oozieUrl) { AuthOozieClient authOozieClient = new AuthOozieClient(oozieUrl); String filename = authOozieClient.getAuthCacheFileName(oozieUrl); return new File(System.getProperty("user.home"), filename); }
/** * Create a XOozieClient. * <p> * It injects any '-Dheader:' as header to the the {@link org.apache.oozie.client.OozieClient}. * * @param commandLine the parsed command line options. * @return a pre configured eXtended workflow client. * @throws OozieCLIException thrown if the XOozieClient could not be configured. */ protected XOozieClient createXOozieClient(CommandLine commandLine) throws OozieCLIException { XOozieClient wc = new AuthOozieClient(getOozieUrl(commandLine), getAuthOption(commandLine)); addHeader(wc); setDebugMode(wc,commandLine.hasOption(DEBUG_OPTION)); setRetryCount(wc); return wc; }
/** * Create a XOozieClient. * <p> * It injects any '-Dheader:' as header to the the {@link org.apache.oozie.client.OozieClient}. * * @param commandLine the parsed command line options. * @return a pre configured eXtended workflow client. * @throws OozieCLIException thrown if the XOozieClient could not be configured. */ protected XOozieClient createXOozieClient(CommandLine commandLine) throws OozieCLIException { XOozieClient wc = new AuthOozieClient(getOozieUrl(commandLine), getAuthOption(commandLine)); addHeader(wc); setDebugMode(wc,commandLine.hasOption(DEBUG_OPTION)); setRetryCount(wc); return wc; }
wc = new AuthOozieClient(oozieUrl.toString());