Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 94216200D0E for ; Tue, 26 Sep 2017 20:53:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8DC841609EA; Tue, 26 Sep 2017 18:53:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD0C41609C4 for ; Tue, 26 Sep 2017 20:53:35 +0200 (CEST) Received: (qmail 97512 invoked by uid 500); 26 Sep 2017 18:53:34 -0000 Mailing-List: contact users-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@apex.apache.org Delivered-To: mailing list users@apex.apache.org Received: (qmail 97502 invoked by uid 99); 26 Sep 2017 18:53:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2017 18:53:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1E415C7CAB for ; Tue, 26 Sep 2017 18:53:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2lq_YcSSR2FL for ; Tue, 26 Sep 2017 18:53:33 +0000 (UTC) Received: from mail-it0-f48.google.com (mail-it0-f48.google.com [209.85.214.48]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2D6175F299 for ; Tue, 26 Sep 2017 18:53:33 +0000 (UTC) Received: by mail-it0-f48.google.com with SMTP id d192so4347971itd.1 for ; Tue, 26 Sep 2017 11:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kVpPTDFtJMuyiFNxXra8FqXaKI16oHlWCpGJZh5eA/s=; b=qeYlvCmM9eWMgFgkBbL/8JwoQh+CpFvJT23sEWf+yyty67aUPIFb5Js6/9KOC8nuhL 1XZxtJ3lwvuIgXGkLeLUn1BfpbIsuix3YRkDGgRZvKKeZm08haCJdv9QG86rnYG1zAOQ 2QHKCIoAAfe1G4D0E537IdpNKSTH4BkQtnMsrg3YGWsAs1Krs6rJ+WJdpxyBCDBQHKLd SJk39eFc/4/KBXy9F+Ji4oNqo+TQxgSH5PZy8Dy5b/+/voYRvZVkDMxEOexZDS0KyxDJ ejFGktMW09TUJompnlenje5HtaRw2MZ/Jl+EvTVLLteiEu8qAbNq0ELaz7qHgLhHVR5t ykyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kVpPTDFtJMuyiFNxXra8FqXaKI16oHlWCpGJZh5eA/s=; b=sRC4buBjCxlhVdmZQTbj2ZGpI1vlK2WoZh/vffPsgjLEpZdL/wHrJKJbjXyCgoM255 ODeekVTnlFod/dUdbzXHZQXB3zGT20dZywTuOyGJZkxfw+Bb1geUBEHsJKC1wWym/Ba5 RRN4DRvW+UFfSfoPFYypyC+2j2nSZu22T0n1ztbmsL9kRgG/Q1iQ8orhgQDJiIGR5xuw DBZZg7jCm7i+jLnNV5aVzn4GI1c6ZBlEPqY2Q33V3qYZYVbdK7IXHJhgMQ/jh/pwu8xm NoVRjDf5Fo4niBtJjDgIlkqwcAFuDheK3qReBZfibD/WjP9IOVyPIiUuPujJokQfUEnN uGEA== X-Gm-Message-State: AHPjjUhCaF1kjA5vTroY53q3yl2qZ6u/o8PkbZSNDLefbZKPZWclGFV7 sLpmYzSojFWuKP4TnfOV+PGuNHMtba7CpyAZX82L3w== X-Google-Smtp-Source: AOwi7QDCUKyKDy0MriUHDOyph+M37ps/mHqbGLmEHDPOxb2dSPJvFDk6ipE+IjZKIIxyFNbWh9w033eh0kNG/iWdzPA= X-Received: by 10.36.172.34 with SMTP id s34mr7126279ite.47.1506452012004; Tue, 26 Sep 2017 11:53:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.65.87 with HTTP; Tue, 26 Sep 2017 11:53:11 -0700 (PDT) From: Sunil Parmar Date: Tue, 26 Sep 2017 11:53:11 -0700 Message-ID: Subject: how to find application master URL ( non proxy ) To: users@apex.apache.org Content-Type: multipart/alternative; boundary="94eb2c1fc8a40bfb81055a1c31ec" archived-at: Tue, 26 Sep 2017 18:53:36 -0000 --94eb2c1fc8a40bfb81055a1c31ec Content-Type: text/plain; charset="UTF-8" We're using plain vanilla version of apex in our environment ( no datatorrent or dtgateway ). We're using STRAM API to access the application details. We are able to find the STRAM endpoints from YARN application API. http://:8088/ws/v1/cluster/apps?state=RUNNING The tracking URL property points to STRAM service but it's exposed by YARN web proxy. i.e. http://:8088/proxy/application_1505865155823_0039/ws/v2/stram/ http:// :8088/proxy/application_1505865155823_0039/ws/v2/stram/logicalPlan http:// :8088/proxy/application_1505865155823_0039/ws/v2/stram/physicalPlan http://:8088/proxy/application_1505865155823_0039/ws/v2/stram/loggers It works for monitoring but the limitation here though is that it only allows users to submit "GET" type requests on STRAM api. So it doesn't allow to run POST API i.e. to change log level. How to find direct application master tracking URL ( no proxy ) ? Is there a YARN api / STRAM api to do so ? So far I have found a brute force way to scrap AM log to find it but I wanted to check with community experts if there is a better way. Thanks, Sunil Parmar --94eb2c1fc8a40bfb81055a1c31ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We're using plain vanilla version of apex in= our environment ( no datatorrent or dtgateway ). We're using STRAM API= to access the application details. We are able to find the STRAM endpoints= from YARN application API.

http://<RM>:8088/ws/v1/cluster/app= s?state=3DRUNNING

The tracking URL property points to STRAM se= rvice but it's exposed by YARN web proxy. i.e.

http://<RM>:8088/pro= xy/application_1505865155823_0039/ws/v2/stram/
http://<RM>:8088/proxy/applicati= on_1505865155823_0039/ws/v2/stram/logicalPlan
http://<RM>:8088/proxy/application_= 1505865155823_0039/ws/v2/stram/physicalPlan
http://<RM>:8088/proxy/application_1505865155823_0039/= ws/v2/stram/loggers

It works for monitoring but th= e limitation here though is that it only allows users to submit "GET&q= uot; type requests on STRAM api. So it doesn't allow to run POST API=C2= =A0 i.e. to change log level.

How to find dir= ect application master tracking URL=C2=A0 ( no proxy ) ? Is there a YARN ap= i / STRAM api to do so ? So far I have found a brute force way to scrap AM = log to find it but I wanted to check with community experts if there is a b= etter way.

Thanks,
Sunil Parmar
--94eb2c1fc8a40bfb81055a1c31ec--