Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-7055 YARN Timeline Service v.2: beta 1 / GA
  3. YARN-8253

HTTPS Ats v2 api call fails with "bad HTTP parsed"

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 3.1.0, 2.9.1, 3.0.1
    • 2.10.0, 3.2.0, 3.1.1, 2.9.2, 3.0.3
    • ATSv2
    • None
    • Reviewed

    Description

      When Yarn http policy is set to Https_only, ATS v2 should use HTTPS address.

      Here, ATS v2 call is failing with below error.

      [hrt_qa@xxx root]$ curl -i -k -s -1 -H 'Content-Type: application/json' -H 'Accept: application/json' --negotiate -u: 'https://xxx:8199/ws/v2/timeline/apps/application_1525238789838_0003/entities/COMPONENT_INSTANCE?fields=ALL'
      
      [hrt_qa@xxx root]$ echo $?
      
      35
      Ats v2
      2018-05-02 05:45:40,427 WARN  http.HttpParser (HttpParser.java:<init>(1832)) - Illegal character 0x16 in state=START for buffer HeapByteBuffer@dba438[p=1,l=222,c=8192,r=221]={\x16<<<\x03\x01\x00\xD9\x01\x00\x00\xD5\x03\x03;X\xEd\xD1orq...\x01\x05\x01\x06\x01\x02\x01\x04\x02\x05\x02\x06\x02\x02\x02>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
      2018-05-02 05:45:40,428 WARN  http.HttpParser (HttpParser.java:parseNext(1435)) - bad HTTP parsed: 400 Illegal character 0x16 for HttpChannelOverHttp@2efbda6c{r=0,c=false,a=IDLE,uri=null}

      Attachments

        1. YARN-8253.01.patch
          2 kB
          Charan Hebri

        Activity

          People

            charanh Charan Hebri
            yeshavora Yesha Vora
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: