You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Vladimir Tkhir (JIRA)" <ji...@apache.org> on 2014/02/06 17:50:09 UTC

[jira] [Created] (KNOX-247) Exception in Oozie workflow definition respose rewrite

Vladimir Tkhir created KNOX-247:
-----------------------------------

             Summary:  Exception in Oozie workflow definition respose rewrite
                 Key: KNOX-247
                 URL: https://issues.apache.org/jira/browse/KNOX-247
             Project: Apache Knox
          Issue Type: Bug
    Affects Versions: 0.3.0
            Reporter: Vladimir Tkhir
             Fix For: 0.4.0


Request 
#curl -i -k -u guest:guest-password -X GET 'https://localhost:8443/gateway/sandbox/oozie/v1/job/{JobID}?show=definition'

returns exception:

Caused by: java.lang.IllegalArgumentException: prefix cannot be "null" when creating a QName
        at javax.xml.namespace.QName.&lt;init&gt;(QName.java:253)
        at org.apache.hadoop.gateway.filter.rewrite.impl.xml.XmlFilterReader.extractQName(XmlFilterReader.java:386)
        at org.apache.hadoop.gateway.filter.rewrite.impl.xml.XmlFilterReader.processCharacters(XmlFilterReader.java:502)
        at org.apache.hadoop.gateway.filter.rewrite.impl.xml.XmlFilterReader.processEvent(XmlFilterReader.java:159)
        at org.apache.hadoop.gateway.filter.rewrite.impl.xml.XmlFilterReader.read(XmlFilterReader.java:117)
        at org.apache.commons.io.input.ReaderInputStream.fillBuffer(ReaderInputStream.java:198)
        at org.apache.commons.io.input.ReaderInputStream.read(ReaderInputStream.java:242)
        at org.apache.commons.io.input.ReaderInputStream.read(ReaderInputStream.java:261)
        at org.apache.hadoop.io.IOUtils.copyBytes(IOUtils.java:68)
        at org.apache.hadoop.gateway.filter.rewrite.impl.UrlRewriteResponse.streamResponse(UrlRewriteResponse.java:145)
        at org.apache.hadoop.gateway.filter.GatewayResponseWrapper.streamResponse(GatewayResponseWrapper.java:58)
        at org.apache.hadoop.gateway.dispatch.AbstractGatewayDispatch.writeResponse(AbstractGatewayDispatch.java:92)
        at org.apache.hadoop.gateway.dispatch.HttpClientDispatch.executeRequest(HttpClientDispatch.java:153)

While direct access to Oozie is successful:
#curl -ikv http://hdp:11000/oozie/v1/job/{JobID}?show=definition
returns:
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<workflow-app xmlns="uri:oozie:workflow:0.2" name="wordcount-workflow">
    <start to="root-node"/>
    <action name="root-node">
        <java>
            <job-tracker>${jobTracker}</job-tracker>
            <name-node>${nameNode}</name-node>
            <main-class>org.apache.hadoop.examples.WordCount</main-class>
            <arg>${inputDir}</arg>
            <arg>${outputDir}</arg>
        </java>
        <ok to="end"/>
        <error to="fail"/>
    </action>
    <kill name="fail">
        <message>Java failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
    </kill>
    <end name="end"/>
</workflow-app>






--
This message was sent by Atlassian JIRA
(v6.1.5#6160)