michael.hausenblas (2) [Avatar] Offline
#1
Folks, let me first tell you: awesome job so far! I really liked the first three chapters, keep it coming smilie

I've got a quick one: when I try to clean/package the project from Ch2 it yields an 'empty' jar. The mvn log message is 'No sources to compile' and if I look at the project structure I wonder, shouldn't the *.java stuff be under src/ etc.?

Can you advise/fix please?

Cheers,
Michael
sean.allen (19) [Avatar] Offline
#2
Re: Problems building and executing Ch2 example
Hi Michael,

What command(s) exactly are you running that get you into trouble?
Following the README?

Can you post any error messages you are getting?
sean.allen (19) [Avatar] Offline
#3
Re: Problems building and executing Ch2 example
The source download on the author site is indeed incorrect.

Everything was placed in one directory rather than being in the correct locations for maven project. We are working on getting that fixed. Until that is done, you can manually adjust so that the files are layed out as seen here:

chapter 2: https://gist.github.com/SeanTAllen/8188562
chapter 3: https://gist.github.com/SeanTAllen/8188549
chapter 4: https://gist.github.com/SeanTAllen/8188573

I'll update here when the source code download has been corrected.

Message was edited by:
sean.allen
michael.hausenblas (2) [Avatar] Offline
#4
Re: Problems building and executing Ch2 example
Thanks for the fix. That's what I meant with 'project structure' in my initial post. Appreciate your hard work and keep it up!

Cheers,
Michael
sean.allen (19) [Avatar] Offline
#5
Re: Problems building and executing Ch2 example
Matt is uploading the corrected code soon and it should hopefully be available here reasonably soon.
dbryant (4) [Avatar] Offline
#6
Re: Problems building and executing Ch2 example
Hi all,

I wanted to check the progress of the updated download files? I fell into the same problems as detailed here, and luckily found this question.

I also wanted to mention that in the current downloadable source file the Chapter 2 examples is missing the EmailCounterTest.java file (as documented in the gist directory structure).

Other than that, the examples are great, and are definitely helping to sell Storm! Echoing the OP's sentiment I would like to say great work so far on the book guys, and I'm looking forward to future chapters.

Best wishes,

Daniel
matthew.jankowski (17) [Avatar] Offline
#7
Re: Problems building and executing Ch2 example
Hey Daniel,
Unfortunately the downloadable files don't get updated until the monthly MEAP updates are published. The first round of updates are being wrapped up right now, so hopefully the updated code will be out soon.

I'm glad you're finding the examples useful! Keep the feedback coming.
Thanks,
Matt
jfm1003 (1) [Avatar] Offline
#8
Re: Problems building and executing Ch2 example
I uploaded the code to https://github.com/jfmwz/StormTwitterTest.git

Message was edited by:
jfm1003