[ 
https://issues.apache.org/jira/browse/OOZIE-3574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17000791#comment-17000791
 ] 

Mate Juhasz commented on OOZIE-3574:
------------------------------------

Thats a great finding [~zuston]! That FileSystem instance should be created 
definitely with actionLibsPath instead of appPath. 

Its probably a minor change in the below code part, but I did not check in 
depths. 
{code:java}
FileSystem fs = 
Services.get().get(HadoopAccessorService.class).createFileSystem(user, 
appPath.toUri(), conf);
{code}

This could be a further enhancement for making Oozie more cloud file system 
friendly.


> JavaAction create uncorrect fileSystem instance in addActionLibs method
> -----------------------------------------------------------------------
>
>                 Key: OOZIE-3574
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3574
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Junfan Zhang
>            Assignee: Junfan Zhang
>            Priority: Major
>
> Code is 
> [here|https://github.com/apache/oozie/blob/9c288fe5cea6f2fbbae76f720b9e215acdd07709/core/src/main/java/org/apache/oozie/action/hadoop/JavaActionExecutor.java#L734].
> If actionlibPath scheme is different from appPath (like actionLibPath's 
> scheme is s3a, but the appPath is hdfs), this will fail to execute 
> {{fs.exist(actionLibsPath)}}. So i think Oozie should create fileSystem by 
> actionLibsPath.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to