shiv pratap singh created OOZIE-2387:
----------------------------------------

             Summary: Oozie is Unable to handle Spaces in file/archive tag.
                 Key: OOZIE-2387
                 URL: https://issues.apache.org/jira/browse/OOZIE-2387
             Project: Oozie
          Issue Type: Bug
          Components: action
    Affects Versions: 4.2.0, 4.1.0
         Environment: Hadoop 2.6,Oozie 4.1, Hortonworks2.2
            Reporter: shiv pratap singh


Oozie file tag is unable to handle white spaces and other special characters.

Error - 
Caused by: java.lang.NullPointerException
        at 
org.apache.oozie.action.hadoop.JavaActionExecutor.addToCache(JavaActionExecutor.java:529)
        at 
org.apache.oozie.action.hadoop.JavaActionExecutor.setLibFilesArchives(JavaActionExecutor.java:678)
        at 
org.apache.oozie.action.hadoop.JavaActionExecutor.submitLauncher(JavaActionExecutor.java:884)


Sample XML File --

<?xml version="1.0" ?>
<workflow-app xmlns="uri:oozie:workflow:0.4" 
xmlns:ns5="uri:oozie:shell-action:0.2"
        xmlns:ns4="uri:oozie:workflow:0.4" 
xmlns:ns3="uri:oozie:sqoop-action:0.2"
        xmlns:ns2="uri:oozie:hive-action:0.3" name="test-shell-space">
        <start to="shell1"></start>
        <action name="shell1">
                <shell xmlns="uri:oozie:shell-action:0.2">
                        <job-tracker>${wf_hadoop_resourceManager}</job-tracker>
                        <name-node>${wf_hadoop_nameNode}</name-node>
                        <exec>shell 1.sh</exec>
                        <file>/user/map-dev/test-case-dir/shell/script/shell 
1.sh</file>
                </shell>
                <ok to="end"></ok>
                <error to="kill"></error>
        </action>
        <kill name="kill">
                <message>shell-decision job failed</message>
        </kill>
        <end name="end"></end>
</workflow-app>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to