The file rotation happens with an event currently. If there are no queries fired for a long time, then the file rotation does not happen and we do not close the file. This causes the clients to poll for the file for an indeterminate amount of time. If there are multiple hiveservers there is no way to tell which file will get more data. Fix this to close at end of day.