You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by Ankur Garg <an...@gmail.com> on 2015/10/14 14:29:04 UTC

Building fat jar for my test Topology to be deployed to remote Storm Cluster

Hi ,

I have set up a single node cluster and trying to deploy my sample topology
to it .

I believe to deploy my topology to cluster I have to submit the jar with
all dependencies to the Cluster .

For that I created a sample project and added a simple topology to it .

While generating the fat jar using gradle I am seeing this error

gradle fatjar gives below error

Could not expand ZIP
'/Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar'.

> Could not copy zip entry
/Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar!META-INF/license/LICENSE.base64.txt
to
'/Users/agarg/Documents/notificationRepo/sample/build/tmp/expandedArchives/storm-core-0.9.5.jar_366us3312tpl54tci2fld83fij/META-INF/license/LICENSE.base64.txt'.


I am attaching my build.gradle with this mail .


Can anyone help please.

Re: Building fat jar for my test Topology to be deployed to remote Storm Cluster

Posted by Ankur Garg <an...@gmail.com>.
SO , I got a workaround to solve this ..

added  exclude "META-INF/LICENSE" to my gradle file after checking the
stack trace for the exception caused.

If nyone has faced similar situation and has a better solution , please let
me know.

Thanks
Ankur

On Wed, Oct 14, 2015 at 5:59 PM, Ankur Garg <an...@gmail.com> wrote:

> Hi ,
>
> I have set up a single node cluster and trying to deploy my sample
> topology to it .
>
> I believe to deploy my topology to cluster I have to submit the jar with
> all dependencies to the Cluster .
>
> For that I created a sample project and added a simple topology to it .
>
> While generating the fat jar using gradle I am seeing this error
>
> gradle fatjar gives below error
>
> Could not expand ZIP
> '/Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar'.
>
> > Could not copy zip entry
> /Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar!META-INF/license/LICENSE.base64.txt
> to
> '/Users/agarg/Documents/notificationRepo/sample/build/tmp/expandedArchives/storm-core-0.9.5.jar_366us3312tpl54tci2fld83fij/META-INF/license/LICENSE.base64.txt'.
>
>
> I am attaching my build.gradle with this mail .
>
>
> Can anyone help please.
>

Re: Building fat jar for my test Topology to be deployed to remote Storm Cluster

Posted by Ankur Garg <an...@gmail.com>.
SO , I got a workaround to solve this ..

added  exclude "META-INF/LICENSE" to my gradle file after checking the
stack trace for the exception caused.

If nyone has faced similar situation and has a better solution , please let
me know.

Thanks
Ankur

On Wed, Oct 14, 2015 at 5:59 PM, Ankur Garg <an...@gmail.com> wrote:

> Hi ,
>
> I have set up a single node cluster and trying to deploy my sample
> topology to it .
>
> I believe to deploy my topology to cluster I have to submit the jar with
> all dependencies to the Cluster .
>
> For that I created a sample project and added a simple topology to it .
>
> While generating the fat jar using gradle I am seeing this error
>
> gradle fatjar gives below error
>
> Could not expand ZIP
> '/Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar'.
>
> > Could not copy zip entry
> /Users/agarg/.gradle/caches/modules-2/files-2.1/org.apache.storm/storm-core/0.9.5/d2bf27db853347dcf66990b4514db20a7897303e/storm-core-0.9.5.jar!META-INF/license/LICENSE.base64.txt
> to
> '/Users/agarg/Documents/notificationRepo/sample/build/tmp/expandedArchives/storm-core-0.9.5.jar_366us3312tpl54tci2fld83fij/META-INF/license/LICENSE.base64.txt'.
>
>
> I am attaching my build.gradle with this mail .
>
>
> Can anyone help please.
>