Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-3013

Knox redirecting Yarn Node Manager URLs to http instead of https

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 2.1.0
    • None
    • None

    Description

      While viewing the yarn application logs on YARM RM UI via Knox, we can see that Knox is redirecting the NM URL to HTTP instead of HTTPS, as the YARN is running on TLS/SSL.

      https://<knox-gateway>/gateway/cdp-proxy/yarn/nodemanager/node?scheme=http&host=some.url&port=8044

      We get the below error

      HTTP ERROR 500 java.io.IOException: java.io.IOException: Service connectivity error. URI: /gateway/cdp-proxy/yarn/nodemanager/node STATUS: 500 MESSAGE: java.io.IOException: java.io.IOException: Service connectivity error. SERVLET: cdp-proxy-knox-gateway-servlet CAUSED BY: java.io.IOException: java.io.IOException: Service connectivity error. CAUSED BY: java.io.IOException: Service connectivity error.

      However when I change "scheme=https" the page loads without an issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bkosztolnik Bence Kosztolnik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m