Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9082

Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: webhdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Log info statements described below show up in the stdouts of FileSystem operations on WebHdfsFileSystem. So, the proposal is to change the log level from INFO to DEBUG.

       if(isOAuth) {
            LOG.info("Enabling OAuth2 in WebHDFS");
            connectionFactory = URLConnectionFactory
                .newOAuth2URLConnectionFactory(conf);
          } else {
            LOG.info("Not enabling OAuth2 in WebHDFS");
            connectionFactory = URLConnectionFactory
                .newDefaultURLConnectionFactory(conf);
          }
      
      1. HDFS-9082.1.patch
        1 kB
        Santhosh G Nayak

        Issue Links

          Activity

          Hide
          snayak Santhosh G Nayak added a comment -

          Attaching a patch containing the Log level changes in WebHdfsFileSystem#initialize() from INFO to DEBUG.

          Show
          snayak Santhosh G Nayak added a comment - Attaching a patch containing the Log level changes in WebHdfsFileSystem#initialize() from INFO to DEBUG.
          Hide
          cnauroth Chris Nauroth added a comment -

          +1 pending Jenkins run. The info-level logging can get onto the console during CLI access. Switching to debug-level logging suppresses it.

          Show
          cnauroth Chris Nauroth added a comment - +1 pending Jenkins run. The info-level logging can get onto the console during CLI access. Switching to debug-level logging suppresses it.
          Hide
          hadoopqa Hadoop QA added a comment -



          -1 overall



          Vote Subsystem Runtime Comment
          0 pre-patch 17m 16s Pre-patch trunk compilation is healthy.
          +1 @author 0m 0s The patch does not contain any @author tags.
          -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
          +1 javac 8m 2s There were no new javac warning messages.
          +1 javadoc 10m 32s There were no new javadoc warning messages.
          +1 release audit 0m 23s The applied patch does not increase the total number of release audit warnings.
          +1 checkstyle 1m 32s There were no new checkstyle issues.
          +1 whitespace 0m 0s The patch has no lines that end in whitespace.
          +1 install 1m 30s mvn install still works.
          +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse.
          +1 findbugs 1m 59s The patch does not introduce any new Findbugs (version 3.0.0) warnings.
          +1 native 3m 15s Pre-build of native portion
          +1 hdfs tests 0m 28s Tests passed in hadoop-hdfs-client.
              45m 35s  



          Subsystem Report/Notes
          Patch URL http://issues.apache.org/jira/secure/attachment/12756012/HDFS-9082.1.patch
          Optional Tests javadoc javac unit findbugs checkstyle
          git revision trunk / 62943b8
          hadoop-hdfs-client test log https://builds.apache.org/job/PreCommit-HDFS-Build/12456/artifact/patchprocess/testrun_hadoop-hdfs-client.txt
          Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12456/testReport/
          Java 1.7.0_55
          uname Linux asf903.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12456/console

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 pre-patch 17m 16s Pre-patch trunk compilation is healthy. +1 @author 0m 0s The patch does not contain any @author tags. -1 tests included 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javac 8m 2s There were no new javac warning messages. +1 javadoc 10m 32s There were no new javadoc warning messages. +1 release audit 0m 23s The applied patch does not increase the total number of release audit warnings. +1 checkstyle 1m 32s There were no new checkstyle issues. +1 whitespace 0m 0s The patch has no lines that end in whitespace. +1 install 1m 30s mvn install still works. +1 eclipse:eclipse 0m 34s The patch built with eclipse:eclipse. +1 findbugs 1m 59s The patch does not introduce any new Findbugs (version 3.0.0) warnings. +1 native 3m 15s Pre-build of native portion +1 hdfs tests 0m 28s Tests passed in hadoop-hdfs-client.     45m 35s   Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12756012/HDFS-9082.1.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 62943b8 hadoop-hdfs-client test log https://builds.apache.org/job/PreCommit-HDFS-Build/12456/artifact/patchprocess/testrun_hadoop-hdfs-client.txt Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/12456/testReport/ Java 1.7.0_55 uname Linux asf903.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Console output https://builds.apache.org/job/PreCommit-HDFS-Build/12456/console This message was automatically generated.
          Hide
          cnauroth Chris Nauroth added a comment -

          There are no tests required, because the patch only changes the logging level of some log statements. I have committed this to trunk and branch-2. Santhosh G Nayak, thank you for contributing the patch.

          Show
          cnauroth Chris Nauroth added a comment - There are no tests required, because the patch only changes the logging level of some log statements. I have committed this to trunk and branch-2. Santhosh G Nayak , thank you for contributing the patch.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-trunk-Commit #8460 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8460/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #8460 (See https://builds.apache.org/job/Hadoop-trunk-Commit/8460/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #398 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/398/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk-Java8 #398 (See https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/398/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Yarn-trunk #1132 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1132/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #1132 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/1132/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #392 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/392/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk-Java8 #392 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/392/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #2315 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2315/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #2315 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/2315/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #2339 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2339/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #2339 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2339/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #376 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/376/)
          HDFS-9082. Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683)

          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
          • hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #376 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/376/ ) HDFS-9082 . Change the log level in WebHdfsFileSystem.initialize() from INFO to DEBUG. Contributed by Santhosh Nayak. (cnauroth: rev 559c09dc0eba28666c4b16435512cc2d35e31683) hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

            People

            • Assignee:
              snayak Santhosh G Nayak
              Reporter:
              snayak Santhosh G Nayak
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development