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

Failed to edit workflow from Ambari workflow Manager while accessing Ambari UI over Knox

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 0.14.0
    • None
    • None
    • None

    Description

      Ambari workflow manager view is accessed over knox, editing the workflow from the view will fail as knox fails to identify/parse the xml format.

      Exception in knox logs

      ==> gateway.log <==
      2018-03-28 10:16:25,542 ERROR hadoop.gateway (AbstractGatewayFilter.java:doFilter(63)) - Failed to execute filter: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.InputStreamReader@254359d8; line: 1, column: 2]
      2018-03-28 10:16:25,542 ERROR hadoop.gateway (AbstractGatewayFilter.java:doFilter(63)) - Failed to execute filter: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.InputStreamReader@254359d8; line: 1, column: 2]
      2018-03-28 10:16:25,542 ERROR hadoop.gateway (AbstractGatewayFilter.java:doFilter(63)) - Failed to execute filter: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.InputStreamReader@254359d8; line: 1, column: 2]
      2018-03-28 10:16:25,543 ERROR hadoop.gateway (GatewayFilter.java:doFilter(141)) - Gateway processing failed: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.InputStreamReader@254359d8; line: 1, column: 2]
      com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
       at [Source: java.io.InputStreamReader@254359d8; line: 1, column: 2]
       at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1369)
       at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:599)
       at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:520)
       at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleUnexpectedValue(ReaderBasedJsonParser.java:1379)
       at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:669)
       at org.apache.hadoop.gateway.filter.rewrite.impl.json.JsonFilterReader.read(JsonFilterReader.java:89)
       at org.apache.hadoop.gateway.filter.rewrite.impl.json.JsonUrlRewriteFilterReader.read(JsonUrlRewriteFilterReader.java:32)
       at org.apache.commons.io.input.ReaderInputStream.fillBuffer(ReaderInputStream.java:198)
       at org.apache.commons.io.input.ReaderInputStream.read(ReaderInputStream.java:242)
      
      
      ==> gateway-audit.log <==
      18/03/28 10:16:25 ||6e7f841c-3aa9-4d8f-a71f-bfbc6138dedf|audit|10.200.4.250|AMBARI|anonymous|||access|uri|/gateway/ui/ambari/api/v1/views/WORKFLOW_MANAGER/versions/1.0.0/instances/wfm/resources/proxy/readWorkflow?workflowPath=/user/admin/workflow.xml&jobType=WORKFLOW|failure|
      
      

      Attachments

        Issue Links

          Activity

            People

              smore Sandeep More
              rguruvannagari Raghavender Rao Guruvannagari
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: