Example usage for org.apache.hadoop.hdfs.server.namenode UnsupportedActionException UnsupportedActionException

List of usage examples for org.apache.hadoop.hdfs.server.namenode UnsupportedActionException UnsupportedActionException

Introduction

In this page you can find the example usage for org.apache.hadoop.hdfs.server.namenode UnsupportedActionException UnsupportedActionException.

Prototype

public UnsupportedActionException(String msg) 

Source Link

Usage

From source file:mzb.Balancer.java

License:Apache License

private static void checkReplicationPolicyCompatibility(Configuration conf) throws UnsupportedActionException {
    if (!(BlockPlacementPolicy.getInstance(conf, null, null) instanceof BlockPlacementPolicyDefault)) {
        throw new UnsupportedActionException("Balancer without BlockPlacementPolicyDefault");
    }/*  w w  w  . ja  va  2  s.c  om*/
}