Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: /clusters/{clusterName}/services/{serviceName}/yarnApplications #70

Open
Hackeruncle opened this issue May 7, 2018 · 0 comments
Open

Comments

@Hackeruncle
Copy link

API: /clusters/{clusterName}/services/{serviceName}/yarnApplications
CDH: 5.12

I want to use the cm api , check this job is still running or not running.

Steps:

  1. Spark streaming job running is 2 days.

  2. Shell:
    JOB_NAME=SparkStreamingJob
    curl -u $CDHUSER:$CDHPASSWORD $CDHURL/api/v17/clusters/JYDWCluster/services/yarn/yarnApplications > cdh.json
    cat cdh.json | grep -A 4 $JOB_NAME > job.log
    RUNNINGNUM=cat job.log | grep "state" | grep "RUNNING" | wc -l

  3. In most cases, this job is existed in the cm api result.
    But ,once in a while, this job is not existed in the cm api result, is strange.
    I suspect it's a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant