Explain how to write the output into a file using storm?



Explain how to write the output into a file using storm?..

Answer / Ravendra Singh Pundhir

In Apache Storm, you can use the FileBatchWriter spout and FileRollingBolt to write output into files. You need to create a FileBatchWriter spout with appropriate configuration settings like rollInterval, rollCount, and path for the file location. Then, create a FileRollingBolt that implements IBasicBolt and set its stream to the output stream of the FileBatchWriter spout. Finally, configure the bolt and start the topology.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache Kafka Interview Questions

Explain Multi-tenancy?

1 Answers  


List some use cases of apache kafka?

1 Answers  


What are broker configs?

1 Answers  


What are the features of kafka?

1 Answers  


What is a kafka cluster?

1 Answers  


When do you call the cleanup method?

1 Answers  


How can you configur the log cleaner?

1 Answers  


Can we use kafka without zookeeper?

1 Answers  


Can kafka be utilized without zookeeper?

1 Answers  


Is kafka part of hadoop?

1 Answers  


What is Data Log in Kafka?

1 Answers  


What language is apache kafka written in?

1 Answers  


Categories