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

Able to move encryption zone to Trash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • fs-encryption (HADOOP-10150 and HDFS-6134)
    • None
    • security
    • None

    Description

      Users can remove encryption directory using the FsShell remove commands without -skipTrash option.

      /usr/hdp/current/hadoop-hdfs-client/bin/hdfs dfs -D "fs.trash.interval=60" -rm -r /user/hrt_qa/encryptionZone_1
      2015-04-01 19:19:46,510|beaver.machine|INFO|654|140309507495680|MainThread|15/04/01 19:19:46 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 360 minutes, Emptier interval = 0 minutes.
      2015-04-01 19:19:46,534|beaver.machine|INFO|654|140309507495680|MainThread|Moved: 'hdfs://sumana-dal-secure-4.novalocal:8020/user/hrt_qa/encryptionZone_1' to trash at: hdfs://sumana-dal-secure-4.novalocal:8020/user/hrt_qa/.Trash/Current
      2015-04-01 19:19:46,863|test_TDE_trash|INFO|654|140309507495680|MainThread|Checking if the encryption zone is in Trash or not
      2015-04-01 19:19:46,864|beaver.machine|INFO|654|140309507495680|MainThread|RUNNING: /usr/hdp/current/hadoop-client/bin/hadoop dfs -ls -R /user/hrt_qa/.Trash/Current
      2015-04-01 19:19:46,892|beaver.machine|INFO|654|140309507495680|MainThread|DEPRECATED: Use of this script to execute hdfs command is deprecated.
      2015-04-01 19:19:46,893|beaver.machine|INFO|654|140309507495680|MainThread|Instead use the hdfs command for it.
      2015-04-01 19:19:46,893|beaver.machine|INFO|654|140309507495680|MainThread|
      2015-04-01 19:19:50,289|beaver.machine|INFO|654|140309507495680|MainThread|drwx------   - hrt_qa hrt_qa          0 2015-04-01 19:19 /user/hrt_qa/.Trash/Current/user
      2015-04-01 19:19:50,292|beaver.machine|INFO|654|140309507495680|MainThread|drwx------   - hrt_qa hrt_qa          0 2015-04-01 19:19 /user/hrt_qa/.Trash/Current/user/hrt_qa
      2015-04-01 19:19:50,296|beaver.machine|INFO|654|140309507495680|MainThread|drwxr-xr-x   - hrt_qa hrt_qa          0 2015-04-01 19:19  /user/hrt_qa/.Trash/Current/user/hrt_qa/encryptionZone_1 
      2015-04-01 19:19:50,326|beaver.machine|INFO|654|140309507495680|MainThread|-rw-r--r--   3 hrt_qa hrt_qa       3273 2015-04-01 19:19 /user/hrt_qa/.Trash/Current/user/hrt_qa/encryptionZone_1/file_to_get.txt
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ssathish@hortonworks.com Sumana Sathish
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: