Reply
New Contributor
Posts: 1
Registered: ‎11-16-2017

Fatal error during KafkaServerStartable startup. Prepare to shutdown java.io.IOException: Permission

[ Edited ]

Hi

Getting this error while starting kafka broker
Nov 16, 4:16:37.936 PM FATAL kafka.server.KafkaServerStartable Fatal error during KafkaServerStartable startup. Prepare to shutdown
java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createNewFile(File.java:1012)
    at kafka.utils.FileLock.<init>(FileLock.scala:28)
    at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:98)
    at kafka.log.LogManager$$anonfun$lockLogDirs$1.apply(LogManager.scala:97)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
    at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
    at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:35)
    at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
    at scala.collection.AbstractTraversable.map(Traversable.scala:104)
    at kafka.log.LogManager.lockLogDirs(LogManager.scala:97)
    at kafka.log.LogManager.<init>(LogManager.scala:59)
    at kafka.server.KafkaServer.createLogManager(KafkaServer.scala:611)
    at kafka.server.KafkaServer.startup(KafkaServer.scala:183)
    at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:37)
    at kafka.Kafka$.main(Kafka.scala:67)
    at com.cloudera.kafka.wrap.Kafka$.main(Kafka.scala:76)
    at com.cloudera.kafka.wrap.Kafka.main(Kafka.scala)
Found  ::  Can't open /var/run/cloudera-scm-agent/process/10320-kafka-KAFKA_BROKER/supervisor.conf: Permission denied this is owend by root:root

Announcements

Currently incubating in Cloudera Labs:

Envelope
HTrace
Ibis
Impyla
Livy
Oryx
Phoenix
Spark Runner for Beam SDK
Time Series for Spark
YCSB