How to set space quota in Hadoop HDFS directory?

Free Online Certification Courses – Learn Today. Lead Tomorrow. Forums Apache Hadoop How to set space quota in Hadoop HDFS directory?

Viewing 1 reply thread
  • Author
    Posts
    • #4775
      DataFlair TeamDataFlair Team
      Spectator

      How will you set space quota in HDFS directory?

    • #4777
      DataFlair TeamDataFlair Team
      Spectator

      Space Quotas in Hadoop HDFS directory

      A hard limit on the number of bytes which is used by files in the tree rooted at that directory is what we call the space quota. If the quota would not allow a full block to be written, block allocations fail. Each replica of a block counts against the quota. Moreover, the rename operation fails if the operation would result in a quota violation since the Quotas stick with renamed directories. However, a newly created directory has no associated quota. No blocks can be added to the files since a quota of zero still permits files to be created.

      In addition, with the fsimage, quotas are persistent. a warning is printed for each of such violations if the fsimage is immediately in violation of a quota when starting. Removing or setting a quota creates a journal entry.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.