Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-2350

Sqoop2: log4j properties file should be configurable

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.99.6
    • Fix Version/s: 1.99.8
    • Component/s: sqoop2-framework
    • Labels:
      None

      Description

      Currently, the MapReduce job that's kicked off will have the following configuration:

      log4j.logger.org.apache.sqoop=INFO, A1
      
      # A1 is set to be a ConsoleAppender.
      log4j.appender.A1=org.apache.log4j.ConsoleAppender
      log4j.appender.A1.Target   = System.err
      log4j.appender.A1.layout=org.apache.log4j.PatternLayout
      log4j.appender.A1.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c %x - %m%n
      

      It's hard coded in the generated JAR file that we distribute. We should remove it from there and make it configurable elsewhere.

      Work around is to set mapreduce.job.log4j-properties-file in sqoop2 mapred-site.xml. See MAPREDUCE-6052 for more info.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                abec Abraham Elmahrek
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: