ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-15315) kafka commands throw an error after upgrading to HDP 2.4 from HDP 2.3
Date Mon, 07 Mar 2016 11:29:40 GMT
Dmitry Lysnichenko created AMBARI-15315:
-------------------------------------------

             Summary: kafka commands throw an error after upgrading to HDP 2.4 from HDP 2.3
                 Key: AMBARI-15315
                 URL: https://issues.apache.org/jira/browse/AMBARI-15315
             Project: Ambari
          Issue Type: Bug
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
         Attachments: AMBARI-15315.patch


{code}
log4j:ERROR Could not read configuration file from URL [file:/usr/hdp/current/kafka-broker/bin/../config/tools-log4j.properties].
java.io.FileNotFoundException: /usr/hdp/current/kafka-broker/bin/../config/tools-log4j.properties
(No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:146)
at java.io.FileInputStream.<init>(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
at org.apache.kafka.common.utils.Utils.<clinit>(Utils.java:54)
at kafka.utils.CoreUtils$.createObject(CoreUtils.scala:221)
at kafka.admin.AclCommand$.main(AclCommand.scala:61)
at kafka.admin.AclCommand.main(AclCommand.scala)
log4j:ERROR Ignoring configuration file [file:/usr/hdp/current/kafka-broker/bin/../config/tools-log4j.properties].
log4j:WARN No appenders could be found for logger (kafka.server.KafkaConfig).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Following is list of acls for resource: Topic:arpit
{code}

{code}
[kafka@hcube2-1n01 kafka-broker]$ ls -latr  /usr/hdp/current/kafka-broker/
total 36
-rw-r--r--.  1 root  root     162 Feb  4 11:55 NOTICE
-rw-r--r--.  1 root  root   11358 Feb  4 11:55 LICENSE
drwxr-xr-x.  3 root  root    4096 Feb  4 18:13 bin
lrwxrwxrwx.  1 kafka hadoop    31 Feb  4 18:13 config -> /usr/hdp/2.4.0.0-160/kafka/conf
drwxr-xr-x.  4 root  root      32 Feb  4 18:13 doc
drwxr-xr-x.  3 root  root      16 Feb  4 18:13 examples
lrwxrwxrwx.  1 root  root      14 Feb  4 18:13 logs -> /var/log/kafka
drwxr-xr-x.  3 root  root    4096 Feb  4 18:13 libs
lrwxrwxrwx.  1 root  root      14 Feb  4 18:13 pids -> /var/run/kafka
drwxr-xr-x. 32 root  root    4096 Feb  4 18:22 ..
lrwxrwxrwx.  1 root  root      24 Feb  4 19:12 conf -> /etc/kafka/2.4.0.0-160/0
drwxr-xr-x.  6 root  root    4096 Feb  4 19:12 .
[kafka@hcube2-1n01 kafka-broker]$ ls /usr/hdp/2.4.0.0-160/kafka/conf
kafka_client_jaas.conf  kafka-env.sh  kafka_jaas.conf  log4j.properties  server.properties
{code}

Seems like ambari did not setup the configs correctly. Not sure why we have config and conf
links.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message