producer.close();
RateLimitUtil.configure(config);
Map<TopicPartition, Long> lastOffsets = getTopicMetadata(topics,
num_partitions, config);
OstrichAdminService ostrichService = new OstrichAdminService(
config.getOstrichPort());
ostrichService.start();
FileUtil.configure(config);
LogFileDeleter logFileDeleter = new LogFileDeleter(config);
logFileDeleter.deleteOldLogs();
Thread.UncaughtExceptionHandler handler = new Thread.UncaughtExceptionHandler() {