You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by 韭菜 <zh...@jiucai.org> on 2015/08/04 12:28:42 UTC
回复:Storm-starter "could not find main class" problem
Your jar manifest file must not contain main class , and check if my.test.ExclamationTopology.class is in your jar and in the right package.
------------------ 原始邮件 ------------------
发件人: "Jilin Xie";
发送时间: 2015年8月4日(星期二) 下午4:47
收件人: "user";
主题: Storm-starter "could not find main class" problem
Hi
with mvn , i can get:
storm-starter-0.9.5-jar-with-dependencies.jar
And I'm able to do:
storm jar storm-starter-0.9.5-jar-with-dependencies.jar\
storm.starter.ExclamationTopology test1
Then, I moved ExclamationTopology to a seperate folder:
my/test
and modified the package name of the topology to:
package my.test;
Then
jar cf ex.jar ExclamationTopology.java
But when I try:
storm jar ex.jar my.test.ExclamationTopology test2
I get the "could not find or load main class" error.
Can someone tell me what I'm doing wrong.
Or some recommendation
Re: Storm-starter "could not find main class" problem
Posted by researcher cs <pr...@gmail.com>.
try to write the full path of your class like /home/user/target/
storm-starter-0.9.5-jar-with-dependencies.jar\
storm.starter.ExclamationTopology test1
On Wed, Aug 5, 2015 at 4:43 AM, Jilin Xie <ji...@gmail.com> wrote:
> Thanks for your tips, jiucai
> I don't know jar file is viewable untill your mail.
> I compared the storm-starter-standalone jar and my self-made jar, and it's
> exactly the problem of package path.
>
> Now things works fine.
> Thanks
> Jilin
>
> On Tue, Aug 4, 2015 at 6:28 PM, 韭菜 <zh...@jiucai.org> wrote:
>
>> Your jar manifest file must not contain main class , and check if my.test.ExclamationTopology.class
>> is in your jar and in the right package.
>>
>>
>> ------------------ 原始邮件 ------------------
>> *发件人:* "Jilin Xie";
>> *发送时间:* 2015年8月4日(星期二) 下午4:47
>> *收件人:* "user";
>> *主题:* Storm-starter "could not find main class" problem
>>
>> Hi
>>
>> with mvn , i can get:
>> storm-starter-0.9.5-jar-with-dependencies.jar
>>
>> And I'm able to do:
>> storm jar storm-starter-0.9.5-jar-with-dependencies.jar\
>> storm.starter.ExclamationTopology test1
>>
>> Then, I moved ExclamationTopology to a seperate folder:
>> my/test
>> and modified the package name of the topology to:
>> package my.test;
>>
>> Then
>> jar cf ex.jar ExclamationTopology.java
>>
>> But when I try:
>> storm jar ex.jar my.test.ExclamationTopology test2
>>
>> I get the "could not find or load main class" error.
>>
>>
>> Can someone tell me what I'm doing wrong.
>> Or some recommendation
>>
>
>
Re: Storm-starter "could not find main class" problem
Posted by Jilin Xie <ji...@gmail.com>.
Thanks for your tips, jiucai
I don't know jar file is viewable untill your mail.
I compared the storm-starter-standalone jar and my self-made jar, and it's
exactly the problem of package path.
Now things works fine.
Thanks
Jilin
On Tue, Aug 4, 2015 at 6:28 PM, 韭菜 <zh...@jiucai.org> wrote:
> Your jar manifest file must not contain main class , and check if my.test.ExclamationTopology.class
> is in your jar and in the right package.
>
>
> ------------------ 原始邮件 ------------------
> *发件人:* "Jilin Xie";
> *发送时间:* 2015年8月4日(星期二) 下午4:47
> *收件人:* "user";
> *主题:* Storm-starter "could not find main class" problem
>
> Hi
>
> with mvn , i can get:
> storm-starter-0.9.5-jar-with-dependencies.jar
>
> And I'm able to do:
> storm jar storm-starter-0.9.5-jar-with-dependencies.jar\
> storm.starter.ExclamationTopology test1
>
> Then, I moved ExclamationTopology to a seperate folder:
> my/test
> and modified the package name of the topology to:
> package my.test;
>
> Then
> jar cf ex.jar ExclamationTopology.java
>
> But when I try:
> storm jar ex.jar my.test.ExclamationTopology test2
>
> I get the "could not find or load main class" error.
>
>
> Can someone tell me what I'm doing wrong.
> Or some recommendation
>