Because Kafka was detecting localhost.domain as hostname, I commented out the line "127.0.0.1 localhost.localdomain localhost" and added "127.0.0.1 ip-10-0-1-20.localdomain" in etc/hosts. When I restart Kafka (issues kill -15 pid), writes to existing topics are failing and I see several of the following errors:
[2013-10-04 03:43:23,565] WARN [KafkaApi-1] Produce request with correlation id 12868451 from client on partition [consumertracking.gnomes.4002,5] failed due to Partition [consumertracking.gnomes.4002,5] doesn't exist on 1 (kafka.server.KafkaApis) I have checked the kafka data directory and all files are intact. What could have caused this issue and how can it be fixed?