List of usage examples for org.apache.hadoop.hdfs.server.namenode UnsupportedActionException UnsupportedActionException
public UnsupportedActionException(String msg)
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*/ }