You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Satish Subhashrao Saley (JIRA)" <ji...@apache.org> on 2016/06/01 18:47:00 UTC

[jira] [Updated] (OOZIE-2512) ShareLibservice returns incorrect path for jar

     [ https://issues.apache.org/jira/browse/OOZIE-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Satish Subhashrao Saley updated OOZIE-2512:
-------------------------------------------
    Attachment: OOZIE-2512-amend-2.patch

Amend patch to correct the test case and making sure that properties such as in hive-site.xml as getting cached. 

> ShareLibservice returns incorrect path for jar
> ----------------------------------------------
>
>                 Key: OOZIE-2512
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2512
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: Satish Subhashrao Saley
>            Assignee: Satish Subhashrao Saley
>             Fix For: trunk
>
>         Attachments: OOZIE-2512-1.patch, OOZIE-2512-2.patch, OOZIE-2512-3.patch, OOZIE-2512-amend-1.patch, OOZIE-2512-amend-2.patch
>
>
> If we have {{oozie.service.ShareLibService.mapping.file}} setting pointing to a metafile, then ShareLibServe loads paths from that file.
> We can mention path to a directory or path to a direct file.
> When path to a directory is mentioned, the paths are populated correctly, but not when we mentioned direct path for a file.
> Consider following paths:
> * /sharelib/pig/
> ** pig.jar
> ** some.jar
> * /sharelib/spark
> ** spark-assembly.jar
> In metafile, we have
> {code}
> oozie.pig=/sharelib/pig/
> oozie.spark=/sharelib/spark/spark-assembly.jar
> {code}
> Now, the SharelibService calculates the paths as
> pig - hdfs://clustername.com:8020/sharelib/pig/pig.jar,hdfs://clustername.com:8020/sharelib/pig/some.jar
> spark - /sharelib/spark/spark-assembly.jar
> The spark path does not have hdfs prefixed. 
> Later on, when we run a spark action, it fails with 
> {code}
> Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.SparkMain], main() threw exception, File file:/sharelib/spark/spark-assembly.jar does not exist
> java.io.FileNotFoundException: File file:/sharelib/spark/spark-assembly.jar does not exist
> {code}
> Remember, if we already mentioned hdfs prefixed paths in metafile, then it works fine.



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