if(hosts.length >= numConsumers)
kafkaServerURL = hosts[i];
else
kafkaServerURL = hosts[random.nextInt(hosts.length)];
consumers[i] = new SimplePerfConsumer(topic,kafkaServerURL, kafkaServerPort, kafkaProducerBufferSize, connectionTimeOut, reconnectInterval,
fetchSize, InetAddress.getLocalHost().getHostAddress()+ consumerName +i, this.numParts);
}
// Start the threads
for(int i = 0; i < numConsumers; i++)