Getting Fatal error during KafkaServerStartable startup Prepare to shutdown kafka server KafkaServerStartable java lang NumberFormatException For input string delete

+1 vote

Whenever I start the Kafka broker, it's getting started but going down immediately. When I checked in server.log, I am seeing the below error.

FATAL Fatal error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)
java.lang.NumberFormatException: For input string: "delete"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at scala.collection.immutable.StringLike$class.toInt(StringLike.scala:229)
        at scala.collection.immutable.StringOps.toInt(StringOps.scala:31)
        at kafka.log.Log$.parseTopicPartitionName(Log.scala:973)
        at kafka.log.LogManager$$anonfun$loadLogs$2$$anonfun$3$$anonfun$apply$10$$anonfun$apply$1.apply$mcV$sp(LogManager.scala:148)
        at kafka.utils.CoreUtils$$anon$1.run(CoreUtils.scala:56)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

I am completely blocked due to this.

Kindly help me to fix this issue.

Nov 6, 2020 in Apache Kafka by B
• 210 points

edited Nov 6, 2020 by MD 3,538 views

1 answer to this question.

+1 vote
Best answer

Hi@B,

There may be a problem with your server properties. Check all the properties properly. If you get the same error, then share your properties here.

Hope this will help.

To know more about Kafka, get your Apache Kafka certification course today.

Thank You

answered Nov 6, 2020 by MD
• 95,460 points

selected Nov 9, 2020 by MD
Thanks for your suggestion. Let me re-validate the server.properties located in /etc/kafka/2.5.3.0-37/0/.

Also kindly let me know if I miss anything in troubleshooting.

Hi@B,

Sure. If you get the same error, then share your entries in the server.properties file.

Hi@B,

When I was working on Kafka, I also faced a similar kind of error. In my case, I have a problem with the zookeeper. In Kafka, Zookeeper is used to manage the Kafka server. Check with the below steps.

$ ./bin/zkServer.sh start
$ ./bin/zkCli.sh
$ ./bin/kafka-server-start.sh config/server.properties
Ok. Sure. I will try the steps you suggested and let you know how it goes.
Now this issue has been resolved successfully. Below were the steps I followed.
- Except meta.properties, removed all the files under /kafka-logs directory (for safer side, take backup of all the files under /kafka-logs directory).

- There is no impact in deleting the files under /kafka-logs, because all the files/directories will be recreated automatically once the kafka broker starts.

- Start the issue kafka brokers and verify /var/log/kafka/server.log.

That's All.....
Hi @MD,

My hearty thanks to you for spending your valuable time with me in troubleshooting.

Kindly mark this thread as resolved and keep it visible. It would be helpful for others future references.

We will meet once again in new interesting issues if anything comes.
Hi@B,

Great. We are always here to help you. Kindly upvote the answer so that it will help others.

Related Questions In Apache Kafka

0 votes
1 answer

How to commit message offsets in Kafka for reliable data pipeline?

You can use auto.commit.enable to allow Kafka ...READ MORE

answered Jul 10, 2018 in Apache Kafka by Shubham
• 13,490 points
3,577 views
0 votes
1 answer

How to delete a topic in Kafka 0.8.1.1?

Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 11,380 points
1,816 views
+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

Kafka vs Flume

Even though both are used for real-time ...READ MORE

answered Sep 24, 2018 in Big Data Hadoop by Data_Nerd
• 2,390 points
888 views
0 votes
1 answer

How can I create a topic in apache kafka?

Hi@akhtar, To create kafka topic you can use ...READ MORE

answered Feb 6, 2020 in Apache Kafka by MD
• 95,460 points
1,155 views
+2 votes
1 answer

Is Kafka and Zookeeper are required in a Big Data Cluster?

Apache Kafka is one of the components ...READ MORE

answered Mar 23, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
2,098 views
0 votes
1 answer

which one to choose for log analysis?

It is not about that you can ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
717 views
0 votes
1 answer

error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

Hi@akhtar, This error occurs because zookeeper is running already. So ...READ MORE

answered Mar 31, 2020 in Apache Kafka by MD
• 95,460 points
4,426 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP