Take a look at storm-starter project from Nathan (
https://github.com/nathanmarz/storm-starter)

It uses maven to build two different jar files: one with dependencies (so
you don't have to put these in the lib folder) and one without them (so you
will have to provide these in the lib folder).

Hopefully you could just modify its pom.xml file to achieve what you need.

Regards,
Carlos


2014-04-15 3:33 GMT+02:00 Xing Yong <[email protected]>:

> yes, it's a way to solve the problem.
>
> but if i have a storm cluster, i must do two things:
> 1. copy the dependant jars to every production machine
> 2. every time one topology has dependant jars, i must do the step 1 again.
>
> so, hope storm client can support submit third part files for topologies.
>
>
> 2014-04-14 20:32 GMT+08:00 David Crossland <[email protected]>:
>
>   I'm not sure about 1
>>
>>  But 2, you can just copy any topology dependant jars to storms lib
>> directory
>>
>>  D
>>
>>   *From:* Xing Yong <[email protected]>
>> *Sent:* ‎Monday‎, ‎14‎ ‎April‎ ‎2014 ‎12‎:‎25
>> *To:* [email protected]
>>
>>  1. when I compile the storm-0.9.1 release source code with maven,
>> always get this error, how to fix it ? thank you.
>>
>>  Compiling backtype.storm.ui.core to
>> /home/yongxing/infra-git/storm-0.9.1-incubating/storm-core/target/classes
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Storm ............................................. SUCCESS
>> [3:53.213s]
>> [INFO] maven-shade-clojure-transformer ................... SUCCESS
>> [4.043s]
>> [INFO] Storm Core ........................................ FAILURE
>> [1:57.586s]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 5:58.106s
>> [INFO] Finished at: Mon Apr 14 12:28:08 CST 2014
>> [INFO] Final Memory: 27M/2030M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> com.theoryinpractise:clojure-maven-plugin:1.3.18:compile (compile-clojure)
>> on project storm-core: Clojure failed. -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>> goal com.theoryinpractise:clojure-maven-plugin:1.3.18:compile
>> (compile-clojure) on project storm-core: Clojure failed.
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Clojure failed.
>> at
>> com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:451)
>> at
>> com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:367)
>> at
>> com.theoryinpractise.clojure.AbstractClojureCompilerMojo.callClojureWith(AbstractClojureCompilerMojo.java:344)
>> at
>> com.theoryinpractise.clojure.ClojureCompilerMojo.execute(ClojureCompilerMojo.java:47)
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>> ... 19 more
>> [ERROR]
>> [ERROR]
>>
>>  2. Using storm client, how to submit additional files to server, does
>> storm client support this operation? for example, i want to transfer some
>> files from client to server which my topology will use, someone have any
>> idea to share with ?
>>
>>  thank you
>>
>
>

Reply via email to