Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11832

spnego authentication logs only log in debug mode so its difficult to debug auth isues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.5.2
    • None
    • security
    • None

    Description

      The following logs should be at info level so that auth failures can be debugged more easily.

      2015-03-18 06:49:40,397 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call filter org.apache.hadoop.hdfs.web.AuthFilter
      2015-03-18 06:49:40,397 DEBUG server.AuthenticationFilter (AuthenticationFilter.java:doFilter(505)) - Request [http://os-hdp-2-2-r6-1426637581-sec-falcon-1-3.novalocal:50070/webhdfs/v1/?op=GETDELEGATIONTO
      KEN&user.name=hrt_qa] triggering authentication
      2015-03-18 06:49:40,397 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - RESPONSE /webhdfs/v1/  401
      2015-03-18 06:49:40,549 DEBUG BlockStateChange (BlockManager.java:computeReplicationWorkForBlocks(1499)) - BLOCK* neededReplications = 1357 pendingReplications = 0
      2015-03-18 06:49:40,634 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - EOF
      2015-03-18 06:49:40,639 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - REQUEST /webhdfs/v1/ on org.mortbay.jetty.HttpConnection@33c174b5
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - sessionManager=org.mortbay.jetty.servlet.HashSessionManager@a072d8c
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - session=null
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - servlet=com.sun.jersey.spi.container.servlet.ServletContainer-1953517520
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - chain=NoCacheFilter->NoCacheFilter->safety->org.apache.hadoop.hdfs.web.AuthFilter->com.sun.jersey.spi.container.servlet.ServletContainer-1953517520
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - servlet holder=com.sun.jersey.spi.container.servlet.ServletContainer-1953517520
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call filter NoCacheFilter
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call filter NoCacheFilter
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call filter safety
      2015-03-18 06:49:40,640 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call filter org.apache.hadoop.hdfs.web.AuthFilter
      2015-03-18 06:49:40,640 DEBUG server.AuthenticationFilter (AuthenticationFilter.java:doFilter(505)) - Request [http://os-hdp-2-2-r6-1426637581-sec-falcon-1-3.novalocal:50070/webhdfs/v1/?op=GETDELEGATIONTOKEN&user.name=hrt_qa] triggering authentication
      2015-03-18 06:49:40,642 DEBUG server.AuthenticationFilter (AuthenticationFilter.java:doFilter(517)) - Request [http://os-hdp-2-2-r6-1426637581-sec-falcon-1-3.novalocal:50070/webhdfs/v1/?op=GETDELEGATIONTOKEN&user.name=hrt_qa] user [hrt_qa] authenticated
      2015-03-18 06:49:40,642 DEBUG mortbay.log (Slf4jLog.java:debug(40)) - call servlet com.sun.jersey.spi.container.servlet.ServletContainer-1953517520
      

      Attachments

        1. hadoop-11832.001.patch
          2 kB
          Anu Engineer

        Activity

          People

            aengineer Anu Engineer
            aengineer Anu Engineer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: