ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vitalyi Brodetskyi <vbrodets...@hortonworks.com>
Subject Re: Review Request 44445: kafka commands throw an error after upgrading to HDP 2.4 from HDP 2.3
Date Mon, 07 Mar 2016 11:34:00 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44445/#review122287
-----------------------------------------------------------


Ship it!




Ship It!

- Vitalyi Brodetskyi


On Березень 7, 2016, 11:31 до полудня, Dmitro Lisnichenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44445/
> -----------------------------------------------------------
> 
> (Updated Березень 7, 2016, 11:31 до полудня)
> 
> 
> Review request for Ambari and Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-15315
>     https://issues.apache.org/jira/browse/AMBARI-15315
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> {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.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py
b986607 
>   ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/templates/tools-log4j.properties.j2
PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/44445/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message