incubator-heron icon indicating copy to clipboard operation
incubator-heron copied to clipboard

can example maven project work?

Open dttlgotv opened this issue 5 years ago • 4 comments

I import a maven project using heron example. And compile and package well.

Then I submit a topology, the error can be seen:

macdeMBP-2:target zz$ heron submit local heron-java-streamlet-api-example-latest-jar-with-dependencies.jar \

org.apache.heron.examples.api.WordCountTopology
WordCountTopology [2020-02-23 11:53:36 +0800] [INFO]: Using cluster definition in /Users/zz/.heron/conf/local 错误: 找不到或无法加载主类 org.apache.heron.examples.api.WordCountTopology [2020-02-23 11:53:36 +0800] [ERROR]: Failed to create topology definition file when executing class 'org.apache.heron.examples.api.WordCountTopology' of file 'heron-java-streamlet-api-example-latest-jar-with-dependencies.jar' macdeMBP-2:target zz$

dttlgotv avatar Feb 23 '20 04:02 dttlgotv

also have this problem on ubuntu 16.04, maybe related to version of heron?

birdmanmandbir avatar May 12 '20 10:05 birdmanmandbir

@birdmanmandbir Which heron example are you using? Is one in the repo or are you using an older version of Heron?

joshfischer1108 avatar May 12 '20 17:05 joshfischer1108

@birdmanmandbir Which heron example are you using? Is one in the repo or are you using an older version of Heron?

Ah,just incorrect class name, I think it is solved by use jar command to see the content of the example jar package; There are some changes in examples compared to older versions, like heron-example.jar is no longer exist, I wonder whether there is a guide for newest examples?

birdmanmandbir avatar May 13 '20 02:05 birdmanmandbir

@birdmanmandbir Which heron example are you using? Is one in the repo or are you using an older version of Heron?

Ah,just incorrect class name, I think it is solved by use jar command to see the content of the example jar package; There are some changes in examples compared to older versions, like heron-example.jar is no longer exist, I wonder whether there is a guide for newest examples?

I'll have to double check the examples on the website. We recently ported everything over to a new build tool for the static site. It's possible some things were missed along the way with the update.

joshfischer1108 avatar May 20 '20 01:05 joshfischer1108