Package org.apache.hadoop.hdfs.protocol
Class QuotaExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.ClusterStorageCapacityExceededException
org.apache.hadoop.hdfs.protocol.QuotaExceededException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DSQuotaExceededException,FSLimitException,NSQuotaExceededException,QuotaByStorageTypeExceededException
@Public
@Evolving
public class QuotaExceededException
extends ClusterStorageCapacityExceededException
This exception is thrown when modification to HDFS results in violation
of a directory quota. A directory quota might be namespace quota (limit
on number of files and directories) or a diskspace quota (limit on space
taken by all the file under the directory tree).
The message for the exception specifies the directory where the quota was violated and actual quotas. Specific message is generated in the corresponding Exception class: DSQuotaExceededException or NSQuotaExceededException
The message for the exception specifies the directory where the quota was violated and actual quotas. Specific message is generated in the corresponding Exception class: DSQuotaExceededException or NSQuotaExceededException
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Stringprotected longprotected static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedQuotaExceededException(long quota, long count) protected -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
protected static final long serialVersionUID- See Also:
-
pathName
-
quota
protected long quota -
count
protected long count
-
-
Constructor Details
-
QuotaExceededException
protected QuotaExceededException() -
QuotaExceededException
-
QuotaExceededException
protected QuotaExceededException(long quota, long count)
-
-
Method Details
-
setPathName
-
getMessage
- Overrides:
getMessagein classThrowable
-