class ServicesNamenodeTruncateCheck extends AbstractCheckDescriptor {

  @Override
  public void perform(PrerequisiteCheck prerequisiteCheck, PrereqCheckRequest request) throws AmbariException {
    final String clusterName = request.getClusterName();
    final Cluster cluster = clustersProvider.get().getCluster(clusterName);
    Config config = cluster.getDesiredConfigByType("hdfs-site");

    String truncateEnabled = config.getProperties().get("dfs.allow.truncate");

    if (Boolean.valueOf(truncateEnabled)) {
      prerequisiteCheck.getFailedOn().add("HDFS");
      PrereqCheckStatus checkStatus = PrereqCheckStatus.FAIL;
      prerequisiteCheck.setStatus(checkStatus);
      prerequisiteCheck.setFailReason(getFailReason(prerequisiteCheck, request));
    }
  }

  public  ServicesNamenodeTruncateCheck();

}