Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1623 High Availability Framework for HDFS NN
  3. HDFS-2579

Starting delegation token manager during safemode fails

    XMLWordPrintableJSON

Details

    Description

      I noticed this on the HA branch, but it seems to actually affect non-HA branch 0.23 if security is enabled. When the NN starts up, if security is enabled, we start the delegation token secret manager, which then tries to call logUpdateMasterKey. This fails because the edit logs may not be written while in safe-mode.

      It seems to me that there's not any necessary reason that you have to make a new master key at startup, since you've loaded the old key when you load the FSImage. You'd only be lacking a DT master key on a fresh cluster, in which case we could have it generate one at format time.

      Attachments

        1. hdfs-2579.txt
          30 kB
          Todd Lipcon
        2. hdfs-2579.txt
          30 kB
          Todd Lipcon
        3. hdfs-2579.txt
          35 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: