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

Robert Kanter commented on OOZIE-1054:
--------------------------------------

The Services stuff looks good; thanks.  

When I tried running it without specifying the sharelib tar (i.e. use the 
default), I got this error:
{noformat}
Exception in thread "main" java.io.IOException: 
/Users/rkanter/dev/oozie/oozie-sharelib-.tar.gz/lib cannot be found
        at org.apache.oozie.tools.OozieSharelibCLI.run(OozieSharelibCLI.java:73)
        at 
org.apache.oozie.tools.OozieSharelibCLI.main(OozieSharelibCLI.java:35)
{noformat}

The name of the tar is {{oozie-sharelib-3.4.0-SNAPSHOT.tar.gz}}, so its not 
allowing for the version number.  I believe its this part of the script:
{code}
sharelibPath=${OOZIE_HOME##*/}
sharelibPath=${OOZIE_HOME}/oozie-sharelib-${sharelibPath:6}.tar.gz
{code}
I'm not sure about the syntax you're using there, but is that trying to grab 
the version number from the {{OOZIE_HOME}} path?  If so, that's not going to 
always work because the {{OOZIE_HOME}} doesn't necessarily contain the version 
number (e.g if it gets deployed to a standardized location like 
{{/usr/lib/oozie/}}).  I'm not sure of the syntax, but I recommend you just try 
to find a file that matches {{oozie-sharelib-*.tar.gz}} and not worry that the 
wildcard matches the exact version of Oozie.  I think its safe to assume that 
the user doesn't have multiple versions of the sharelib tar; or maybe you can 
just choose the one with the highest version.  
                
> Create script to properly upload sharelib to HDFS
> -------------------------------------------------
>
>                 Key: OOZIE-1054
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1054
>             Project: Oozie
>          Issue Type: New Feature
>          Components: scripts
>    Affects Versions: trunk
>            Reporter: Robert Kanter
>            Assignee: Bowen Zhang
>            Priority: Minor
>             Fix For: trunk
>
>         Attachments: oozie-1054.patch, oozie-1054.patch, oozie-1054.patch, 
> oozie-1054.patch, oozie-1054.patch, oozie-1054.patch, oozie-1054.patch, 
> oozie-1054.patch
>
>
> A common confusion-point for users is how to properly install the sharelib in 
> HDFS.  It would be really useful if we could create a script to properly 
> upload the sharelib to HDFS so we can get rid of the confusion around this.  
> Alternatively, instead of a new script, we could have the oozie-setup.sh 
> script take an argument that does this.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to