Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

METRON-1295 Unable to Configure Logging for REST API #828

Closed
wants to merge 2 commits into from

Conversation

nickwallen
Copy link
Contributor

@nickwallen nickwallen commented Nov 3, 2017

When configuring the logging for the REST API, the following exception occurs.

log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.hadoop.hbase.shaded.org.apache.log4j.Appender" variable.

This change prevents the shaded log4j dependencies of metron-hbase from bleeding into metron-rest.

Testing

  1. Spin-up Full Dev
  2. Create a log4j configuration file. In this example /usr/metron/0.4.2/config/log4j.properties
  3. Add the following to "Metron JVM Flags" in Ambari > Metron > Config.
    -Dlog4j.debug -Dlog4j.configuration=file:/usr/metron/0.4.2/config/log4j.properties
    
  4. Restart Metron REST and watch the logging output. Ensure that you can configure logging as you would expect.

Pull Request Checklist

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
  • Has your PR been rebased against the latest commit within the target branch (typically master)?
  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?
  • Have you included steps or a guide to how the change may be verified and tested manually?
  • Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
  • Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

@cestella
Copy link
Member

cestella commented Nov 7, 2017

Dig. +1 by inspection

@asfgit asfgit closed this in f7b0a16 Nov 8, 2017
iraghumitra pushed a commit to iraghumitra/incubator-metron that referenced this pull request Nov 20, 2017
@nickwallen nickwallen deleted the METRON-1295 branch September 17, 2018 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants