You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2017/11/03 20:07:00 UTC
[jira] [Created] (METRON-1295) Unable to Configure Logging for REST
API
Nick Allen created METRON-1295:
----------------------------------
Summary: Unable to Configure Logging for REST API
Key: METRON-1295
URL: https://issues.apache.org/jira/browse/METRON-1295
Project: Metron
Issue Type: Bug
Reporter: Nick Allen
Assignee: Nick Allen
Priority: Normal
I have not been able to configure logging for the REST API. To replicate, create a log4j configuration file, then add the following to "Metron JVM Flags" in Ambari > Metron > Config.
{code}
-Dlog4j.debug -Dlog4j.configuration=file:/usr/metron/0.4.2/config/log4j.properties
{code}
This will result in the following exception when Log4j initializes.
{code}
log4j: Using URL [file:/usr/metron/0.4.2/config/log4j.properties] for automatic log4j configuration.
log4j: Reading configuration from URL file:/usr/metron/0.4.2/config/log4j.properties
log4j: Parsing for [root] with value=[INFO, file].
log4j: Level token is [INFO].
log4j: Category root set to INFO
log4j: Parsing appender named "file".
log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.hadoop.hbase.shaded.org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.hadoop.hbase.shaded.org.apache.log4j.Appender" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@5c647e05] whereas object of type
log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [sun.misc.Launcher$AppClassLoader@5c647e05].
log4j:ERROR Could not instantiate appender named "file".
log4j: Finished configuring.
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)