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

Sqoop2: log4j properties file should be configurable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.99.6
    • 1.99.8
    • sqoop2-framework
    • 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

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

              Dates

                Created:
                Updated: