Storm gives every topology a unique id and treats every topology completely independently, even if it has the same name as an older topology. So it's not possible for it to "pick up an old jar". The only way this could happen is if you added your own jars to Storm's classpath on the worker machines.
It would take a really crazy bug for Storm to mix up topology jars as you say it's doing, and I don't suspect that's the case. If you think it's picking up an old jar, I would highly recommend looking at the logs to see which directories Storm is using to find jars. On Tue, Jan 27, 2015 at 12:37 PM, Jens-Uwe Mozdzen <[email protected]> wrote: > Hi Vineet, > > Zitat von Vineet Mishra <[email protected]>: > >> Hi Naresh and Jens, >> >> Well first I tried running a job in local mode that was running good, but >> I >> wanted to run it in distributed environment, >> later I killed the job(Ctrl+c) and rebuild the jar with some addones in >> the >> bolts and made it to run in a production mode >> by StormSubmitter.submitTopology(.,.,.). >> >> I am not sure what was the reason that the job was not able to run as I >> changed the build but soon after cluster restart the same distributed job >> started running. >> >> Now if I am killing the existing running job via terminal or via storm UI >> it kills pretty fine but Storm is over and over referencing the same old >> jar even thought I am making a fresh build. >> > > sorry for repeating myself - *where* is it referencing the same old jar... > in the log files? > > If you're only judging by the functionality/behavior, it might be an issue > of unchanged serialVersionUIDs and cached classes... > > Regards, > Jens > -- > Jens-U. Mozdzen voice : +49-40-559 51 75 > NDE Netzdesign und -entwicklung AG fax : +49-40-559 51 77 > Postfach 61 03 15 mobile : +49-179-4 98 21 98 > D-22423 Hamburg e-mail : [email protected] > > Vorsitzende des Aufsichtsrates: Angelika Mozdzen > Sitz und Registergericht: Hamburg, HRB 90934 > Vorstand: Jens-U. Mozdzen > USt-IdNr. DE 814 013 983 > > -- Twitter: @nathanmarz http://nathanmarz.com
