the file should be inside stormdist folder of your supervisor

On Wed, Oct 18, 2017 at 6:01 PM, Sitakant Mishra <[email protected]
> wrote:

> Hi,
>
> I have a bolt written in python which tries to open a file and store the
> *storm.emit* output to a file. I do not see any errors while running, but
> I am not able to find the location of file. Below are some portion of the
> code.
>
> class PythonPredictBolt(storm.BasicBolt):
>
>     def process(self, tup):
>         f = open('output.txt', 'w')
>         data = tup.values[0].split(':')
>
>        # Some Work
>
>             result = "Predicted: " + str(rms)
>             f.write(result)
>             storm.emit([result])
>         f.close()
>
> PythonPredictBolt().run()
>
> I am not sure how to proceed with this. Please help me with this.
>
>
>
> Thanks and Regards,
> Sitakanta Mishra
>
>


-- 
------------------------------
<http://www.saritasa.com/>
Dmitry Semenov
[email protected] | 949.200.6839 | www.saritasa.com
20411 Birch St., Suite 330, Newport Beach, CA 92660

Reply via email to