Package org.elasticsearch.hadoop.yarn

Examples of org.elasticsearch.hadoop.yarn.EsYarnException


    public YarnClientApplication newApp() {
        try {
            return client.createApplication();
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here


        }

        try {
            endpoint = resolveEndpoint(cfg);
        } catch (IOException ex) {
            throw new EsYarnException("Cannot resolve endpoint", ex);
        }

        UserGroupInformation ugi = null;
        try {
            ugi = UserGroupInformation.getCurrentUser();
        } catch (IOException ex) {
            throw new EsYarnException("Cannot get current user", ex);
        }

        // create proxy
        proxy = ugi.doAs(new PrivilegedAction<P>() {
            @SuppressWarnings("unchecked")
View Full Code Here

    public ApplicationId submitApp(ApplicationSubmissionContext appContext) {
        try {
            return client.submitApplication(appContext);
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

                client.killApplication(appReport.getApplicationId());
            }

      return esApps;
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

    public void killApp(String appId) {
        try {
            client.killApplication(YarnUtils.createAppIdFrom(appId));
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

    public ApplicationReport getReport(ApplicationId appId) {
        try {
            return client.getApplicationReport(appId);
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

    public List<ApplicationReport> listApps() {
        try {
            return client.getApplications();
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

    public List<ApplicationReport> listEsClusters() {
        try {
            return client.getApplications(ES_TYPE);
        } catch (Exception ex) {
            throw new EsYarnException(ex);
        }
    }
View Full Code Here

  public List<ApplicationReport> listEsClustersAlive() {
    try {
      return client.getApplications(ES_TYPE, ALIVE);
    } catch (Exception ex) {
      throw new EsYarnException(ex);
    }
  }
View Full Code Here

                repeat = (appState != YarnApplicationState.FINISHED && appState != YarnApplicationState.KILLED && appState != YarnApplicationState.FAILED);
                if (repeat) {
                    Thread.sleep(500);
                }
            } catch (Exception ex) {
                throw new EsYarnException(ex);
            }
    } while (repeat && (System.currentTimeMillis() - start) < timeout);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.hadoop.yarn.EsYarnException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.