Quickstart issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Quickstart issue

Philippe Rigaux
Hello,

Just to inform you that I have not been able to use the quickstart method. Everything works well, but the jar file produced by maven is empty (it only contain a manifest file).

Unclear how this is related to the assembly option. I created a regular
java project and it is ok, but using the quickstart would be pleasant. Let me know if you need more info (well I did  not do much except trying
to fix the pom.xml).

Cheers

P.
 
Reply | Threaded
Open this post in threaded view
|

Re: Quickstart issue

rmetzger0
Hi,

thank you for reporting the issue. The files created by the quickstart.sh script are in the "org.apache.flink" namespace, which we filter out (to avoid adding all the flink dependencies into the fat jar).
If you relocate the files to another package, it should work.

Sorry for the inconvenience. I'll provide a fix for the issue so that its fixed for the 0.8 release.

On Fri, Dec 19, 2014 at 7:54 PM, Philippe Rigaux <[hidden email]> wrote:
Hello,

Just to inform you that I have not been able to use the quickstart method. Everything works well, but the jar file produced by maven is empty (it only contain a manifest file).

Unclear how this is related to the assembly option. I created a regular
java project and it is ok, but using the quickstart would be pleasant. Let me know if you need more info (well I did  not do much except trying
to fix the pom.xml).

Cheers

P.
 
Reply | Threaded
Open this post in threaded view
|

Re: Quickstart issue

Philippe Rigaux
Thanks Robert. I misunderstand something, probably. I still get the same error.

bash-3.2$ jar tf quickstart-0.1.jar
META-INF/
META-INF/MANIFEST.MF
net/
net/internetmemory/
net/internetmemory/Job.class
net/internetmemory/WordCountJob$LineSplitter.class
net/internetmemory/WordCountJob.class
META-INF/maven/
META-INF/maven/org.apache.flink/
META-INF/maven/org.apache.flink/quickstart/
META-INF/maven/org.apache.flink/quickstart/pom.xml
META-INF/maven/org.apache.flink/quickstart/pom.properties

bash-3.2$ java -jar quickstart-0.1.jar net.internetmemory.WordCountJob
Failed to load Main-Class manifest attribute from
quickstart-0.1.jar


2014-12-19 20:41 GMT+01:00 Robert Metzger <[hidden email]>:
Hi,

thank you for reporting the issue. The files created by the quickstart.sh script are in the "org.apache.flink" namespace, which we filter out (to avoid adding all the flink dependencies into the fat jar).
If you relocate the files to another package, it should work.

Sorry for the inconvenience. I'll provide a fix for the issue so that its fixed for the 0.8 release.

On Fri, Dec 19, 2014 at 7:54 PM, Philippe Rigaux <[hidden email]> wrote:
Hello,

Just to inform you that I have not been able to use the quickstart method. Everything works well, but the jar file produced by maven is empty (it only contain a manifest file).

Unclear how this is related to the assembly option. I created a regular
java project and it is ok, but using the quickstart would be pleasant. Let me know if you need more info (well I did  not do much except trying
to fix the pom.xml).

Cheers

P.
 
Reply | Threaded
Open this post in threaded view
|

Re: Quickstart issue

rmetzger0
Hi Philippe,

maybe you didn't update the entries for the MANIFEST.MF file. (It's my fault, I forgot that you have to change this as well)
I think its a property in the pom.xml. (You'll find it by the class name).

There is another possible workaround that doesn't require you to re-build the jar package.
The /flink/run command allows you to specify the classname you wish to run, using the "-c" flag.

On a side note: if you run an example using java -jar, it will not submit the example to the Flink cluster but run it using a LocalExecutor in one JVM.

Let me know if you need further help.

Best,
Robert






On Fri, Dec 19, 2014 at 9:44 PM, Philippe Rigaux <[hidden email]> wrote:
Thanks Robert. I misunderstand something, probably. I still get the same error.

bash-3.2$ jar tf quickstart-0.1.jar
META-INF/
META-INF/MANIFEST.MF
net/
net/internetmemory/
net/internetmemory/Job.class
net/internetmemory/WordCountJob$LineSplitter.class
net/internetmemory/WordCountJob.class
META-INF/maven/
META-INF/maven/org.apache.flink/
META-INF/maven/org.apache.flink/quickstart/
META-INF/maven/org.apache.flink/quickstart/pom.xml
META-INF/maven/org.apache.flink/quickstart/pom.properties

bash-3.2$ java -jar quickstart-0.1.jar net.internetmemory.WordCountJob
Failed to load Main-Class manifest attribute from
quickstart-0.1.jar


2014-12-19 20:41 GMT+01:00 Robert Metzger <[hidden email]>:
Hi,

thank you for reporting the issue. The files created by the quickstart.sh script are in the "org.apache.flink" namespace, which we filter out (to avoid adding all the flink dependencies into the fat jar).
If you relocate the files to another package, it should work.

Sorry for the inconvenience. I'll provide a fix for the issue so that its fixed for the 0.8 release.

On Fri, Dec 19, 2014 at 7:54 PM, Philippe Rigaux <[hidden email]> wrote:
Hello,

Just to inform you that I have not been able to use the quickstart method. Everything works well, but the jar file produced by maven is empty (it only contain a manifest file).

Unclear how this is related to the assembly option. I created a regular
java project and it is ok, but using the quickstart would be pleasant. Let me know if you need more info (well I did  not do much except trying
to fix the pom.xml).

Cheers

P.