Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failied to start service in centos7 #27

Open
vadirajks opened this issue Jul 28, 2018 · 0 comments
Open

failied to start service in centos7 #27

vadirajks opened this issue Jul 28, 2018 · 0 comments

Comments

@vadirajks
Copy link

Same jar works fine with centos6 but it is failing to start service in centos7. Please help me to figure out what went wrong?

CentOS Linux release 7.4.1708 (Core)
jdk1.8.0_144-1.8.0_144-fcs.x86_64

kafka.metrics.reporters=com.criteo.kafka.KafkaGraphiteMetricsReporter,kafka.metrics.KafkaCSVMetricsReporter
kafka.graphite.metrics.reporter.enabled=true
kafka.graphite.metrics.host=localhost
kafka.graphite.metrics.port=2003
kafka.graphite.metrics.group=test1

[2018-07-28 16:18:05,425] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
[2018-07-28 16:18:06,134] DEBUG Initialize GraphiteReporter [localhost,2003,test1] (com.criteo.kafka.KafkaGraphiteMetricsReporter)
[2018-07-28 16:18:06,174] DEBUG The following Metrics Dimensions will be sent [count, meanRate, rate1m, rate5m, rate15m, min, max, mean, stddev, sum, median, p75, p95, p98, p99, p999] (com.criteo.kafka.KafkaGraphiteMetricsReporter)
[2018-07-28 16:18:06,188] INFO Started Kafka Graphite metrics reporter with polling period 10 seconds (com.criteo.kafka.KafkaGraphiteMetricsReporter)
[2018-07-28 16:18:06,188] DEBUG GraphiteReporter started. (com.criteo.kafka.KafkaGraphiteMetricsReporter)
[2018-07-28 16:18:06,217] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
java.nio.file.AccessDeniedException: /kafka_metrics
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at kafka.metrics.KafkaCSVMetricsReporter.init(KafkaCSVMetricsReporter.scala:54)
at kafka.metrics.KafkaMetricsReporter$.$anonfun$startReporters$1(KafkaMetricsReporter.scala:66)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38)
at kafka.metrics.KafkaMetricsReporter$.startReporters(KafkaMetricsReporter.scala:64)
at kafka.server.KafkaServerStartable$.fromProps(KafkaServerStartable.scala:27)
at kafka.Kafka$.main(Kafka.scala:82)
at kafka.Kafka.main(Kafka.scala)

Thanks for all the helps!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant