You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by sam mohel <sa...@gmail.com> on 2015/12/16 02:14:02 UTC

exception in finding file when submit

i need help in the exception

i imported project worked well in local but in distributed when submitted
the topology found this

java.io.FileNotFoundException: config.properties (No such file or
 directory)
 then it submitted the topology !!!

now the true path of this file already in the code
 what other solution can i try it ?

Re: exception in finding file when submit

Posted by sam mohel <sa...@gmail.com>.
thanks i solved it but have another
i got in the supervisor log file still hasn't start and in the worker log
file

2015-12-17 07:52:23 task [INFO] Emitting: b-7 __system ["startup"]
2015-12-17 07:52:23 executor [INFO] Loaded executor tasks b-7:[33 33]
2015-12-17 07:52:23 executor [INFO] Preparing bolt b-7:(33)
2015-12-17 07:52:23 executor [INFO] Finished loading executor b-7:[33 33]
2015-12-17 07:52:23 worker [INFO] Launching receive-thread for
5587bcc1-05d4-4d92-ae3d-2a8503cef259:6706
2015-12-17 07:52:23 executor [INFO] Prepared bolt b-7:(33)

after finished loading got alot of this lines

2015-12-17 07:52:27 executor [INFO] Processing received message
source: __system:-1, stream: __tick, id: {}, [5]
2015-12-17 07:52:27 executor [INFO] Processing received message
source: __system:-1, stream: __tick, id: {}, [5]

Got in the storm ui zeros in emitted and transfered

i executed the command that launch worker and supervisor got

2015-12-17 07:59:04 executor [INFO] Prepared bolt b-7:(33)
2015-12-17 07:59:04 util [ERROR] Async loop died!
 org.zeromq.ZMQException: Address already in use(0x62)
at org.zeromq.ZMQ$Socket.bind(Native Method)
at zilch.mq$bind.invoke(mq.clj:69)
at backtype.storm.messaging.zmq.ZMQContext.bind(zmq.clj:57)
at  backtype.storm.messaging.loader$launch_receive_thread_BANG_$fn__1629.invoke(loader.clj:26)
at backtype.storm.util$async_loop$fn__465.invoke(util.clj:375)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:701)
2015-12-17 07:59:04 util [INFO] Halting process:



On Wed, Dec 16, 2015 at 5:17 PM, Cody Innowhere <e....@gmail.com> wrote:

> The config file won't be necessarily within the target directory, but in a
> way your main class can find it.
> For example:
> storm jar /home/your_home/your_jar_file.jar your_main_class
> /home/your_home/documents/config.properties
>
> On Wed, Dec 16, 2015 at 2:53 PM, sam mohel <sa...@gmail.com> wrote:
>
> > thanks but do you mean that this file should be in the target folder with
> > jar files ?
> >
> > On Wed, Dec 16, 2015 at 4:04 AM, Cody Innowhere <e....@gmail.com>
> > wrote:
> >
> > > Hi Sam, "config.properties" is supposed to be an argument after your
> main
> > > class parameter, i.e.,  storm jar your_jar_file.jar your_main_class
> > > config.properties. So when submitting, you can place this file in the
> > same
> > > directory with your jar file so it can find it.
> > >
> > > On Wed, Dec 16, 2015 at 9:14 AM, sam mohel <sa...@gmail.com>
> wrote:
> > >
> > > > i need help in the exception
> > > >
> > > > i imported project worked well in local but in distributed when
> > submitted
> > > > the topology found this
> > > >
> > > > java.io.FileNotFoundException: config.properties (No such file or
> > > >  directory)
> > > >  then it submitted the topology !!!
> > > >
> > > > now the true path of this file already in the code
> > > >  what other solution can i try it ?
> > > >
> > >
> >
>

Re: exception in finding file when submit

Posted by Cody Innowhere <e....@gmail.com>.
The config file won't be necessarily within the target directory, but in a
way your main class can find it.
For example:
storm jar /home/your_home/your_jar_file.jar your_main_class
/home/your_home/documents/config.properties

On Wed, Dec 16, 2015 at 2:53 PM, sam mohel <sa...@gmail.com> wrote:

> thanks but do you mean that this file should be in the target folder with
> jar files ?
>
> On Wed, Dec 16, 2015 at 4:04 AM, Cody Innowhere <e....@gmail.com>
> wrote:
>
> > Hi Sam, "config.properties" is supposed to be an argument after your main
> > class parameter, i.e.,  storm jar your_jar_file.jar your_main_class
> > config.properties. So when submitting, you can place this file in the
> same
> > directory with your jar file so it can find it.
> >
> > On Wed, Dec 16, 2015 at 9:14 AM, sam mohel <sa...@gmail.com> wrote:
> >
> > > i need help in the exception
> > >
> > > i imported project worked well in local but in distributed when
> submitted
> > > the topology found this
> > >
> > > java.io.FileNotFoundException: config.properties (No such file or
> > >  directory)
> > >  then it submitted the topology !!!
> > >
> > > now the true path of this file already in the code
> > >  what other solution can i try it ?
> > >
> >
>

Re: exception in finding file when submit

Posted by sam mohel <sa...@gmail.com>.
thanks but do you mean that this file should be in the target folder with
jar files ?

On Wed, Dec 16, 2015 at 4:04 AM, Cody Innowhere <e....@gmail.com> wrote:

> Hi Sam, "config.properties" is supposed to be an argument after your main
> class parameter, i.e.,  storm jar your_jar_file.jar your_main_class
> config.properties. So when submitting, you can place this file in the same
> directory with your jar file so it can find it.
>
> On Wed, Dec 16, 2015 at 9:14 AM, sam mohel <sa...@gmail.com> wrote:
>
> > i need help in the exception
> >
> > i imported project worked well in local but in distributed when submitted
> > the topology found this
> >
> > java.io.FileNotFoundException: config.properties (No such file or
> >  directory)
> >  then it submitted the topology !!!
> >
> > now the true path of this file already in the code
> >  what other solution can i try it ?
> >
>

Re: exception in finding file when submit

Posted by Cody Innowhere <e....@gmail.com>.
Hi Sam, "config.properties" is supposed to be an argument after your main
class parameter, i.e.,  storm jar your_jar_file.jar your_main_class
config.properties. So when submitting, you can place this file in the same
directory with your jar file so it can find it.

On Wed, Dec 16, 2015 at 9:14 AM, sam mohel <sa...@gmail.com> wrote:

> i need help in the exception
>
> i imported project worked well in local but in distributed when submitted
> the topology found this
>
> java.io.FileNotFoundException: config.properties (No such file or
>  directory)
>  then it submitted the topology !!!
>
> now the true path of this file already in the code
>  what other solution can i try it ?
>