You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Snabel Kabiya <sn...@ruckuswireless.com> on 2016/10/09 09:08:51 UTC
Localcluster - ELK Bolt Example
Hi Storm Users,
My name is Snabel, I want to use storm as a solution for processing events.
I Want to forward events from ELK to storm and add some code in storm.
I’ve been trying to run the storm-starter code:
https://github.com/apache/storm/tree/master/examples/storm-starter
using Intellij IDEA, but I keep getting error about a missing class: org.apache.storm.localcluster
can you please help with this? am I using the right code?
I would really appreciate your help with this
Thanks,
Snabel
Re: Localcluster - ELK Bolt Example
Posted by Jungtaek Lim <ka...@gmail.com>.
Could you check your classpath of execution and see there's only one
storm-core, and also proper version of storm-core is loaded to classpath?
And also check that all storm modules you reference are all same versions.
2016년 10월 16일 (일) 오후 7:46, Snabel Kabiya <sn...@ruckuswireless.com>님이
작성:
> Hi,
>
>
>
> Thank you.
>
>
>
> But that was the first thing I’ve changed…I’m still getting this error…
>
>
>
>
>
>
>
>
>
> *From:* Jungtaek Lim [mailto:kabhwan@gmail.com]
>
> *Sent:* Friday, October 14, 2016 11:04 PM
>
> *To:* user@storm.apache.org
> *Subject:* Re: Localcluster - ELK Bolt Example
>
>
>
> You need to check the scope of storm-core. This needs to be set to
> 'compile' for running with local, and needs be set to 'provided' for
> running with remote cluster.
>
>
>
> 2016년 10월 13일 (목) 오후 5:16, Snabel Kabiya <snabel.kabiya@ruckuswireless.com
> >님이 작성:
>
> Hi Jungtaek Lim,
>
>
>
> Thank you, I’ve tried doing that, then I went back to run Main in this Class: EsIndexTopology
>
>
>
> I got the following exception:
>
>
>
>
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/storm/topology/IRichSpout
>
> at java.lang.Class.forName0(Native Method)
>
> at java.lang.Class.forName(Class.java:264)
>
> at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:123)
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.storm.topology.IRichSpout
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> ... 3 more
>
>
>
>
>
> Regards,
>
> Snabel Kabiya
>
>
>
> *From:* Jungtaek Lim [mailto:kabhwan@gmail.com]
> *Sent:* Monday, October 10, 2016 6:32 AM
> *To:* user@storm.apache.org
> *Subject:* Re: Localcluster - ELK Bolt Example
>
>
>
> The files which thrift generated are tricky. Please try `mvn clean install
> -DskipTests` to root of Storm directory, and back to IDEA and see it helps.
>
>
>
> - Jungtaek Lim (HeartSaVioR)
>
>
>
> 2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>
> 님이 작성:
>
> Hi Storm Users,
>
>
>
> My name is Snabel, I want to use storm as a solution for processing events.
>
> I Want to forward events from ELK to storm and add some code in storm.
>
>
>
> I’ve been trying to run the storm-starter code:
>
> https://github.com/apache/storm/tree/master/examples/storm-starter
>
>
>
> using Intellij IDEA, but I keep getting error about a missing class:
> org.apache.storm.localcluster
>
>
>
> can you please help with this? am I using the right code?
>
> I would really appreciate your help with this
>
>
>
>
>
> Thanks,
>
> Snabel
>
>
>
>
RE: Localcluster - ELK Bolt Example
Posted by Snabel Kabiya <sn...@ruckuswireless.com>.
Hi,
Thank you.
But that was the first thing I’ve changed…I’m still getting this error…
From: Jungtaek Lim [mailto:kabhwan@gmail.com]
Sent: Friday, October 14, 2016 11:04 PM
To: user@storm.apache.org
Subject: Re: Localcluster - ELK Bolt Example
You need to check the scope of storm-core. This needs to be set to 'compile' for running with local, and needs be set to 'provided' for running with remote cluster.
2016년 10월 13일 (목) 오후 5:16, Snabel Kabiya <sn...@ruckuswireless.com>>님이 작성:
Hi Jungtaek Lim,
Thank you, I’ve tried doing that, then I went back to run Main in this Class: EsIndexTopology
I got the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/storm/topology/IRichSpout
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:123)
Caused by: java.lang.ClassNotFoundException: org.apache.storm.topology.IRichSpout
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Regards,
Snabel Kabiya
From: Jungtaek Lim [mailto:kabhwan@gmail.com<ma...@gmail.com>]
Sent: Monday, October 10, 2016 6:32 AM
To: user@storm.apache.org<ma...@storm.apache.org>
Subject: Re: Localcluster - ELK Bolt Example
The files which thrift generated are tricky. Please try `mvn clean install -DskipTests` to root of Storm directory, and back to IDEA and see it helps.
- Jungtaek Lim (HeartSaVioR)
2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>>님이 작성:
Hi Storm Users,
My name is Snabel, I want to use storm as a solution for processing events.
I Want to forward events from ELK to storm and add some code in storm.
I’ve been trying to run the storm-starter code:
https://github.com/apache/storm/tree/master/examples/storm-starter
using Intellij IDEA, but I keep getting error about a missing class: org.apache.storm.localcluster
can you please help with this? am I using the right code?
I would really appreciate your help with this
Thanks,
Snabel
RE: Localcluster - ELK Bolt Example
Posted by Snabel Kabiya <sn...@ruckuswireless.com>.
Hi,
Thank you.
But that was the first thing I’ve changed…I’m still getting this error…
Regards,
Snabel Kabiya
Sr. Software Engineer
Office: +972-9-7949007
Email: snabel.kabiya@ruckuswireless.com<ma...@ruckuswireless.com>
[cid:31B894B1-D319-4016-BC65-A73F82C3F7B0]
Now, part of Brocade!
From: Jungtaek Lim [mailto:kabhwan@gmail.com]
Sent: Friday, October 14, 2016 11:04 PM
To: user@storm.apache.org
Subject: Re: Localcluster - ELK Bolt Example
You need to check the scope of storm-core. This needs to be set to 'compile' for running with local, and needs be set to 'provided' for running with remote cluster.
2016년 10월 13일 (목) 오후 5:16, Snabel Kabiya <sn...@ruckuswireless.com>>님이 작성:
Hi Jungtaek Lim,
Thank you, I’ve tried doing that, then I went back to run Main in this Class: EsIndexTopology
I got the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/storm/topology/IRichSpout
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:123)
Caused by: java.lang.ClassNotFoundException: org.apache.storm.topology.IRichSpout
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Regards,
Snabel Kabiya
From: Jungtaek Lim [mailto:kabhwan@gmail.com<ma...@gmail.com>]
Sent: Monday, October 10, 2016 6:32 AM
To: user@storm.apache.org<ma...@storm.apache.org>
Subject: Re: Localcluster - ELK Bolt Example
The files which thrift generated are tricky. Please try `mvn clean install -DskipTests` to root of Storm directory, and back to IDEA and see it helps.
- Jungtaek Lim (HeartSaVioR)
2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>>님이 작성:
Hi Storm Users,
My name is Snabel, I want to use storm as a solution for processing events.
I Want to forward events from ELK to storm and add some code in storm.
I’ve been trying to run the storm-starter code:
https://github.com/apache/storm/tree/master/examples/storm-starter
using Intellij IDEA, but I keep getting error about a missing class: org.apache.storm.localcluster
can you please help with this? am I using the right code?
I would really appreciate your help with this
Thanks,
Snabel
Re: Localcluster - ELK Bolt Example
Posted by Jungtaek Lim <ka...@gmail.com>.
You need to check the scope of storm-core. This needs to be set to
'compile' for running with local, and needs be set to 'provided' for
running with remote cluster.
2016년 10월 13일 (목) 오후 5:16, Snabel Kabiya <sn...@ruckuswireless.com>님이
작성:
> Hi Jungtaek Lim,
>
>
>
> Thank you, I’ve tried doing that, then I went back to run Main in this Class: EsIndexTopology
>
>
>
> I got the following exception:
>
>
>
>
>
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/storm/topology/IRichSpout
>
> at java.lang.Class.forName0(Native Method)
>
> at java.lang.Class.forName(Class.java:264)
>
> at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:123)
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.storm.topology.IRichSpout
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>
> at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>
> ... 3 more
>
>
>
>
>
> Regards,
>
> Snabel Kabiya
>
>
>
> *From:* Jungtaek Lim [mailto:kabhwan@gmail.com]
> *Sent:* Monday, October 10, 2016 6:32 AM
> *To:* user@storm.apache.org
> *Subject:* Re: Localcluster - ELK Bolt Example
>
>
>
> The files which thrift generated are tricky. Please try `mvn clean install
> -DskipTests` to root of Storm directory, and back to IDEA and see it helps.
>
>
>
> - Jungtaek Lim (HeartSaVioR)
>
>
>
> 2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>
> 님이 작성:
>
> Hi Storm Users,
>
>
>
> My name is Snabel, I want to use storm as a solution for processing events.
>
> I Want to forward events from ELK to storm and add some code in storm.
>
>
>
> I’ve been trying to run the storm-starter code:
>
> https://github.com/apache/storm/tree/master/examples/storm-starter
>
>
>
> using Intellij IDEA, but I keep getting error about a missing class:
> org.apache.storm.localcluster
>
>
>
> can you please help with this? am I using the right code?
>
> I would really appreciate your help with this
>
>
>
>
>
> Thanks,
>
> Snabel
>
>
>
>
RE: Localcluster - ELK Bolt Example
Posted by Snabel Kabiya <sn...@ruckuswireless.com>.
Hi Jungtaek Lim,
Thank you, I’ve tried doing that, then I went back to run Main in this Class: EsIndexTopology
I got the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/storm/topology/IRichSpout
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:123)
Caused by: java.lang.ClassNotFoundException: org.apache.storm.topology.IRichSpout
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more
Regards,
Snabel Kabiya
From: Jungtaek Lim [mailto:kabhwan@gmail.com]
Sent: Monday, October 10, 2016 6:32 AM
To: user@storm.apache.org
Subject: Re: Localcluster - ELK Bolt Example
The files which thrift generated are tricky. Please try `mvn clean install -DskipTests` to root of Storm directory, and back to IDEA and see it helps.
- Jungtaek Lim (HeartSaVioR)
2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>>님이 작성:
Hi Storm Users,
My name is Snabel, I want to use storm as a solution for processing events.
I Want to forward events from ELK to storm and add some code in storm.
I’ve been trying to run the storm-starter code:
https://github.com/apache/storm/tree/master/examples/storm-starter
using Intellij IDEA, but I keep getting error about a missing class: org.apache.storm.localcluster
can you please help with this? am I using the right code?
I would really appreciate your help with this
Thanks,
Snabel
Re: Localcluster - ELK Bolt Example
Posted by Jungtaek Lim <ka...@gmail.com>.
The files which thrift generated are tricky. Please try `mvn clean install
-DskipTests` to root of Storm directory, and back to IDEA and see it helps.
- Jungtaek Lim (HeartSaVioR)
2016년 10월 9일 (일) 오후 6:09, Snabel Kabiya <sn...@ruckuswireless.com>님이
작성:
> Hi Storm Users,
>
>
>
> My name is Snabel, I want to use storm as a solution for processing events.
>
> I Want to forward events from ELK to storm and add some code in storm.
>
>
>
> I’ve been trying to run the storm-starter code:
>
> https://github.com/apache/storm/tree/master/examples/storm-starter
>
>
>
> using Intellij IDEA, but I keep getting error about a missing class:
> org.apache.storm.localcluster
>
>
>
> can you please help with this? am I using the right code?
>
> I would really appreciate your help with this
>
>
>
>
>
> Thanks,
>
> Snabel
>
>
>