Adding time based rotation policy to HDFS Bolt. HAd to refactor file writing operations to avoid leaking the bolt objects and to avoid duplicating the code between trident and pure storm.
Would probably refactor more in next iteration to ensure the client can build the file manager and pass it as part of bolt object creation which should allow them to do both unit test and integ test with local file system.
Tested with pseudo distributed HDFS on my box for existing rotation policy and with TimeBased Rotation policy.