ambari-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AMBARI-15315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183044#comment-15183044
] 

Hudson commented on AMBARI-15315:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #4457 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4457/])
AMBARI-15315. kafka commands throw an error after upgrading to HDP 2.4 (dlysnichenko: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b4fe1b6605bd09566bc68ff4fb9ce0ebebb51e52])
* ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py
* ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/templates/tools-log4j.properties.j2


> 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
>          Components: ambari-server
>    Affects Versions: 2.2.1
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 2.2.2
>
>         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