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

YoungWoo Kim commented on BIGTOP-989:
-------------------------------------

[~mnarayan] I found a minor issue from your patch.

"/usr/lib/kafka" includes following files and dirs:
{noformat}
12 -rwxr-xr-x.  1 kafka kafka 11358 2015-02-24 11:28 LICENSE
 4 -rwxr-xr-x.  1 kafka kafka   162 2015-02-24 11:28 NOTICE
 4 drwxr-xr-x.  2 root  root   4096 2015-02-24 15:00 bin
 0 lrwxrwxrwx.  1 kafka kafka    15 2015-02-24 11:35 config -> /etc/kafka/conf
 4 drwxr-xr-x.  3 kafka kafka  4096 2015-02-24 11:35 core
 4 -rwxr-xr-x.  1 kafka kafka   744 2015-02-24 11:28 examples
 4 drwxr-xr-x.  2 kafka kafka  4096 2015-02-24 13:24 logs
 4 drwxr-xr-x.  3 kafka kafka  4096 2015-02-24 11:35 perf
{noformat}

But, It's way different from binary distro. We should have only 
'{bin,libs,conf}' at /usr/lib/kafa.

>From "do-component-build":
{noformat}
cp core/build/distributions/kafka_*.tgz build/`basename 
core/build/distributions/kafka* .tgz`.tar.gz
{noformat}
The build script make a binary distribution. but,
{noformat}
+# Copy files to the bin and other directories
+rsync --exclude="*.cmd" ${BUILD_DIR}/bin/* $PREFIX/$LIB_DIR/bin/
+rsync -r --exclude={tmp,classes,src} ${BUILD_DIR}/core/* $PREFIX/$LIB_DIR/core
+rsync -r --exclude={tmp,classes,src} ${BUILD_DIR}/perf/* $PREFIX/$LIB_DIR/perf
+rsync -r --exclude={tmp,classes,src} ${BUILD_DIR}/clients/* 
$PREFIX/$LIB_DIR/clients
+rsync -r --exclude={tmp,classes,src,bin} ${BUILD_DIR}/examples/* 
$PREFIX/$LIB_DIR/examples
{noformat}
"install_kafka.sh" copy files and dirs from BUILD_DIR instead of extracting 
distro tar.gz.

 [~mnarayan] If you revise the patch, I'll keep on testing. Thanks!


> Add Apache Kafka  to Apache Bigtop
> ----------------------------------
>
>                 Key: BIGTOP-989
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-989
>             Project: Bigtop
>          Issue Type: New Feature
>          Components: debian
>    Affects Versions: 0.6.0
>            Reporter: Diederik van Liere
>              Labels: features
>             Fix For: backlog
>
>         Attachments: BIGTOP-989-1.patch, BIGTOP-989-2.patch, 
> BIGTOP-989-3.patch, BIGTOP-989-4.patch, BIGTOP-989-5.patch, 
> BIGTOP-989-6.patch, BIGTOP-989-7.patch, BIGTOP-989.patch
>
>




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

Reply via email to