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

Gour Saha commented on SLIDER-806:
----------------------------------

Jerry you are absolutely right. We totally realize the pain in the package 
creation process around versions. That is why we had filed bug SLIDER-791. We 
plan to make this process much more simpler by our next release 
0.80.0-incubating.

Meanwhile we have made one small patch towards the overall simplification we 
plan to do. You can follow the commit link in SLIDER-791 to get the patch or go 
directly to 
https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;a=patch;h=c927bad.

If possible, if you can apply this patch (in your 0.70.0-incubating branch) and 
modify your mvn command slight as below, you should see the versions in 
metainfo, app config and the actual file names will all fall into alignment. 
Note: Only {{-bin}} was added to the end of *pkg.version* and *hbase.version*.

{code}
mvn clean package -DskipTests -Phbase-app-package -Dpkg.version=0.98.11-bin 
-Dhbase.version=0.98.11-bin -Dpkg.name=hbase-0.98.11-bin.tar.gz 
-Dpkg.src=/home/bigdata/incubator-slider/app-packages/hbase
{code}

> HBase App Package build issues
> ------------------------------
>
>                 Key: SLIDER-806
>                 URL: https://issues.apache.org/jira/browse/SLIDER-806
>             Project: Slider
>          Issue Type: Bug
>          Components: application/hbase
>    Affects Versions: Slider 0.60, Slider 0.70
>            Reporter: Jerry He
>
> There are a few issues when following the instructions to build Slider HBase 
> app package. The build will likely still be successful. But at 'slider 
> install' and 'slider create' time, they will cause failures.
> 1. Issue with the '-bin' in the hbase tarball.
> If the hbase tarball file name has '-bin', e.g. hbase-0.98.11-bin.tar.gz, we 
> will a problem.
> e.g. I am using this command to generate the hbase app pacakge:
> {noformat}
> mvn clean package -DskipTests -Phbase-app-package -Dpkg.version=0.98.11 
> -Dhbase.version=0.98.11 -Dpkg.name=hbase-0.98.11-bin.tar.gz 
> -Dpkg.src=/home/bigdata/incubator-slider/app-packages/hbase
> {noformat}
> Inside the generated package, the metainfo.xml has:
> {noformat}
>           <package>
>             <type>tarball</type>
>             <name>files/hbase-0.98.11.tar.gz</name>
>           </package>
> {noformat}
> Inside the package, the real file name is hbase-0.98.11-bin.tar.gz.
> The mismatch of the hbase tarball file name will cause confusion and instance 
> create time failure.
> 2. The generated package name from the above command is 
> slider-hbase-app-package-0.70.0-incubating.zip.  But in the generated 
> appConfig-default.json inside the package, we have:
> {noformat}
>     "global": {
>         "application.def": 
> ".slider/package/HBASE/slider-hbase-app-package-0.98.11.zip",
>         "create.default.zookeeper.node": "true",
>         "java_home": "/usr/jdk64/jdk1.7.0_67",
> {noformat}
> The mismatch of the package zip will cause confusion and instance create time 
> failure.



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

Reply via email to