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

getStoragePolicy varies b/w REST and CLI for unspecified path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Incompatible change

    Description

      CLI

      hdfs storagepolicies -getStoragePolicy -path /node-label-root
      The storage policy of /node-label-root is unspecified
      
      

      REST 

      curl -i "http://1*.*.*.*:50070/webhdfs/v1/node-label-root?op=GETSTORAGEPOLICY"
      
      {"BlockStoragePolicy":\{"copyOnCreateFile":false,"creationFallbacks":[],"id":7,"name":"HOT","replicationFallbacks":["ARCHIVE"],"storageTypes":["DISK"]}}
      
      

      HDFS-11968  introduced this new behaviour for CLI.

      Attachments

        Activity

          People

            msingh Mukul Kumar Singh
            brahmareddy Brahma Reddy Battula
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: