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 <[email protected]> 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 <[email protected]> > 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 <[email protected]> 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 ? > > > > > >
