@Override protected PlanExecutor getExecutor() throws Exception { // check if we had already started a PlanExecutor. If true, then stop it, because there will // be a new jar file available for the user code classes if (this.executor != null) { this.executor.stop(); } // write generated classes to disk so that they can be shipped to the cluster URL jarUrl = flinkILoop.writeFilesToDisk().getAbsoluteFile().toURI().toURL(); List<URL> allJarFiles = new ArrayList<>(jarFiles); allJarFiles.add(jarUrl); this.executor = PlanExecutor.createRemoteExecutor( host, port, clientConfiguration, allJarFiles, globalClasspaths ); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); return executor; }
protected PlanExecutor getExecutor() throws Exception { if (executor == null) { executor = PlanExecutor.createRemoteExecutor(host, port, clientConfiguration, jarFiles, globalClasspaths); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); } // if we are using sessions, we keep the executor running if (getSessionTimeout() > 0 && !executor.isRunning()) { executor.start(); installShutdownHook(); } return executor; }
@Override @PublicEvolving public void startNewSession() throws Exception { if (executor != null) { // we need to end the previous session executor.stop(); // create also a new JobID jobID = JobID.generate(); } // create a new local executor executor = PlanExecutor.createLocalExecutor(configuration); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); // if we have a session, start the mini cluster eagerly to have it available across sessions if (getSessionTimeout() > 0) { executor.start(); // also install the reaper that will shut it down eventually executorReaper = new ExecutorReaper(executor); } }
client.setPrintStatusDuringExecution(executionConfig.isSysoutLoggingEnabled());
assertEquals(disableGenericTypes, copy1.hasGenericTypesDisabled()); assertEquals(objectReuseEnabled, copy1.isObjectReuseEnabled()); assertEquals(sysoutLoggingEnabled, copy1.isSysoutLoggingEnabled()); assertEquals(parallelism, copy1.getParallelism());
@Override protected PlanExecutor getExecutor() throws Exception { // check if we had already started a PlanExecutor. If true, then stop it, because there will // be a new jar file available for the user code classes if (this.executor != null) { this.executor.stop(); } // write generated classes to disk so that they can be shipped to the cluster URL jarUrl = flinkILoop.writeFilesToDisk().getAbsoluteFile().toURI().toURL(); List<URL> allJarFiles = new ArrayList<>(jarFiles); allJarFiles.add(jarUrl); this.executor = PlanExecutor.createRemoteExecutor( host, port, clientConfiguration, allJarFiles, globalClasspaths ); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); return executor; }
@Override protected PlanExecutor getExecutor() throws Exception { // check if we had already started a PlanExecutor. If true, then stop it, because there will // be a new jar file available for the user code classes if (this.executor != null) { this.executor.stop(); } // write generated classes to disk so that they can be shipped to the cluster URL jarUrl = flinkILoop.writeFilesToDisk().getAbsoluteFile().toURI().toURL(); List<URL> allJarFiles = new ArrayList<>(jarFiles); allJarFiles.add(jarUrl); this.executor = PlanExecutor.createRemoteExecutor( host, port, clientConfiguration, allJarFiles, globalClasspaths ); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); return executor; }
try { client = new StandaloneClusterClient(configuration); client.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled());
protected PlanExecutor getExecutor() throws Exception { if (executor == null) { executor = PlanExecutor.createRemoteExecutor(host, port, clientConfiguration, jarFiles, globalClasspaths); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); } // if we are using sessions, we keep the executor running if (getSessionTimeout() > 0 && !executor.isRunning()) { executor.start(); installShutdownHook(); } return executor; }
client.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled());
client.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled());
client.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled());
client.setPrintStatusDuringExecution(env.getConfig().isSysoutLoggingEnabled());
protected PlanExecutor getExecutor() throws Exception { if (executor == null) { executor = PlanExecutor.createRemoteExecutor(host, port, clientConfiguration, jarFiles, globalClasspaths); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); executor.setJobListeners(this.getJobListeners()); } // if we are using sessions, we keep the executor running if (getSessionTimeout() > 0 && !executor.isRunning()) { executor.start(); installShutdownHook(); } return executor; }
try { exec.start(); return exec.submitJobAndWait(jobGraph, getConfig().isSysoutLoggingEnabled());
try { exec.start(); return exec.submitJobAndWait(jobGraph, getConfig().isSysoutLoggingEnabled());
try { exec.start(); return exec.submitJobAndWait(jobGraph, getConfig().isSysoutLoggingEnabled());
@Override @PublicEvolving public void startNewSession() throws Exception { if (executor != null) { // we need to end the previous session executor.stop(); // create also a new JobID jobID = JobID.generate(); } // create a new local executor executor = PlanExecutor.createLocalExecutor(configuration); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); // if we have a session, start the mini cluster eagerly to have it available across sessions if (getSessionTimeout() > 0) { executor.start(); // also install the reaper that will shut it down eventually executorReaper = new ExecutorReaper(executor); } }
@Override @PublicEvolving public void startNewSession() throws Exception { if (executor != null) { // we need to end the previous session executor.stop(); // create also a new JobID jobID = JobID.generate(); } // create a new local executor executor = PlanExecutor.createLocalExecutor(configuration); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); // if we have a session, start the mini cluster eagerly to have it available across sessions if (getSessionTimeout() > 0) { executor.start(); // also install the reaper that will shut it down eventually executorReaper = new ExecutorReaper(executor); } }
@Override @PublicEvolving public void startNewSession() throws Exception { if (executor != null) { // we need to end the previous session executor.stop(); // create also a new JobID jobID = JobID.generate(); } // create a new local executor executor = new MyLocalExecutor(configuration); executor.setPrintStatusDuringExecution(getConfig().isSysoutLoggingEnabled()); executor.setClasspaths(classpaths); // if we have a session, start the mini cluster eagerly to have it available across sessions if (getSessionTimeout() > 0) { executor.start(); // also install the reaper that will shut it down eventually executorReaper = new ExecutorReaper(executor); } }