Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1DC02D8BD for ; Fri, 6 Jul 2012 08:30:08 +0000 (UTC) Received: (qmail 78687 invoked by uid 500); 6 Jul 2012 08:30:04 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 78628 invoked by uid 500); 6 Jul 2012 08:30:04 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 78619 invoked by uid 99); 6 Jul 2012 08:30:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2012 08:30:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pkalmegh@gmail.com designates 209.85.161.176 as permitted sender) Received: from [209.85.161.176] (HELO mail-gg0-f176.google.com) (209.85.161.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2012 08:29:57 +0000 Received: by ggnk4 with SMTP id k4so9457044ggn.35 for ; Fri, 06 Jul 2012 01:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=DNosvefplyie6DhoMKcWqbWdUHEFhD0xj3kJcQsmlic=; b=zRGhOBYd9yWrKKzZf7SiX3G++JEvV7uhucifCZCbMgOII7J6iuazkYwFRxVfqtW2Yh Vk5HX2268beKJtIfcl9nKYU77qYUxqA+SIGDwD4ydjS9G1qPKe8PVTbIQlnCDZ3FHARF /hki7/nnTVHX9gtooDbwC280c/Tk9E5T7RLsKpgIqVEuaRvyTOum4e+36DdkKEDjcMtd KrJyHUv2GFbPvoAJJ8tb576vXem+I2+BFtnd6pS2EA+soFWISi0NbNaCvpZMrihOPI/2 SgjmrQk6unFHJLyp1PBDTJeNtpSoNL8lkgP5taEvvb9wqiI39FdC5vwRR9AXRXGdVHOl F7Ww== Received: by 10.50.173.65 with SMTP id bi1mr1940053igc.10.1341563376264; Fri, 06 Jul 2012 01:29:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.222.7 with HTTP; Fri, 6 Jul 2012 01:29:15 -0700 (PDT) From: Prajakta Kalmegh Date: Fri, 6 Jul 2012 13:59:15 +0530 Message-ID: Subject: (Repost) Using REST to get ApplicationMaster info To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f6430e07c67ea04c4251038 --e89a8f6430e07c67ea04c4251038 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Re-posting as I haven't got a solution yet. Sorry for spamming. I won't be able to proceed in my code until I get a JSON response using AppMaster REST URL. :( Thanks, Prajakta On Wed, Jul 4, 2012 at 5:55 PM, Prajakta Kalmegh wrote= : > Hi Robert/Harsh > > Thanks for your reply. > > My RM is starting just fine. The problem is with the use of http:///proxy/{appid}/ws/v1/mapreduce > to get the JSON response. > > As I said before, I had not configured the yarn.web-proxy.address propert= y in yarn-site.xml. I assumed it will use the RM's yarn.resourcemanager.web= app.address property value as default. However, it gives me a '404-Page not= found error'. Today I tried specifying a value explicitly for the yarn.we= b-proxy.address property. > > On running the wordcount example, it even gives a url /proxy/{appid}/> to track the App Mast info. However, I am still not= able to get a json response. > > Also, I tried to get the data from historyserver instead of runtime using= the instructions given on page > > HistoryServer REST response does not give me jobids corresponding to an a= pplication. It just lists all the jobs run until now. By the way, the docum= entation does say > > ---------- > > "Both of the following URI's give you the history server information, fro= m an application id identified by the appid value. > * http:///ws/v1/history > * http:///ws/v1/history/info" > --------- > > But there is no provision to specify the application id with these REST U= RLs. > > Any idea how I can get the Application Master REST working and also linki= ng jobids to application id using the HistoryServerREST API? > > Any help is appreciated. Thanks in advance. > Regards, > Prajakta > > > > > On Fri, Jun 29, 2012 at 8:55 PM, Robert Evans wrote= : > >> Please don't file that JIRA. The proxy server is intended to front the >> web server for all calls to the AM. This is so you only have to go to a >> single location to get to any AM's web service. The proxy server is a >> very simple proxy and just forwards the extra part of the path on to the >> AM. >> >> If you are having issues with this please include the version you are >> having problems with. Also please look at the logs for the RM on startu= p >> to see if there is anything there indicating why it is not starting up. >> >> --Bobby Evans >> >> On 6/28/12 9:46 AM, "Harsh J" wrote: >> >> >As far as I can tell, the MR WebApp, as the name itself indicates on >> >its doc page, starts only at the MR AM (which may be running at any >> >NM), and it starts as an ephemeral port logged at in the AM logs >> >usually as: >> > >> >INFO Web app /mapreduce started at [PORT] >> > >> >That it starts its own server with an ephemeral access point makes >> >sense, since each job uses its own AM and having a common location may >> >not work with the form of REST API documented at your link. Can you >> >please file a JIRA to fix the doc and remove the proxy server refs, >> >which are misleading? >> > >> >Do correct me if I'm wrong. >> > >> >On Thu, Jun 28, 2012 at 6:13 PM, Prajakta Kalmegh >> >wrote: >> >> Hi >> >> >> >> I am trying to get the ApplicationMaster info using the > >>http >> >> address:port>/proxy/{appid}/ws/v1/mapreduce/info> link as described o= n >> >>the < >> >> >> >> >> http://hadoop.apache.org/common/docs/r2.0.0-alpha/hadoop-yarn/hadoop-yar= n >> >>-site/MapredAppMasterRest.html> >> >> page. >> >> >> >> I am able to access and retrieve JSON response for other modules >> >> (ResourceManager, NodeManager and HistoryServer). However, I am getti= ng >> >> 'Page not found' when I try to use my ResourceManager Http address to >> >> access the ApplicationMaster info. I am using < >> >> http://localhost:8088/proxy/{appid}/ws/v1/mapreduce/info> to retrieve >> >>JSON >> >> response. >> >> >> >> The instructions say "The application master should be accessed via t= he >> >> proxy. This proxy is configurable to run either on the resource manag= er >> >>or >> >> on a separate host." >> >> >> >> My yarn-default.xml contains: >> >> >> >> The address for the web proxy as HOST:PORT, if this i= s >> >>not >> >> given then the proxy will run as part of the RM >> >> yarn.web-proxy.address >> >> >> >> >> >> >> >> and I did not set a value explicitly in yarn-site.xml. Any idea how = I >> >>can >> >> get this working? Thanks in advance. >> >> >> >> Regards, >> >> Prajakta >> > >> > >> > >> >-- >> >Harsh J >> >> > --e89a8f6430e07c67ea04c4251038--