Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2598

Sqoop2: Main sqoop.log is missing log outputs from classes other then org.apache.sqoop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.6
    • 1.99.7
    • None
    • None

    Description

      While working with abrahamfine on failing integration tests on our laptops we've noticed that the main Sqoop server log sqoop.log contains log lines only from classes inside org.apache.sqoop namespace but is missing logs from any other classes - in particular I was missing logs from org.apache.hadoop.

      I've spent some time investigating the issue and found out that we're currently configuring log4j twice. Once in SqoopConfiguration for entire server, but then for second time in the FileAuditLogger for audit logger. Those two configurations are however messing with each other resulting in the described behavior.

      I would like to propose refactoring the FileAuditLogger to be a bit smarter and rather then reconfiguring the log4j, only use already defined logger. This way user still have ability to specify arbitrary number of instances that can be configured to log to different files and we would have to configure log4j only once.

      Attachments

        1. SQOOP-2598.patch
          6 kB
          Jarek Jarcec Cecho
        2. SQOOP-2598.patch
          6 kB
          Jarek Jarcec Cecho

        Issue Links

          Activity

            People

              jarcec Jarek Jarcec Cecho
              jarcec Jarek Jarcec Cecho
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: