public HiveConfiguration(@NonNull final Configuration conf) { this.conf = conf; ConfigUtil.checkMandatoryProperties(this.conf, getMandatoryProperties()); this.dataPath = this.getConf().getProperty(HIVE_DATA_PATH).get(); this.jobName = this.getConf().getProperty(JOB_NAME).get(); this.baseMetadataPath = this.getConf().getProperty(BASE_METADATA_PATH).get(); this.partitionKeyName = this.getConf().getProperty(PARTITION_KEY_NAME); if (this.conf.getProperty(PARTITION_TYPE).isPresent()) { this.partitionType = PartitionType.valueOf(this.getConf().getProperty(PARTITION_TYPE) .get().trim().toUpperCase()); } else { this.partitionType = PartitionType.NONE; } }