use of com.dtstack.dtcenter.loader.client.IHdfsFile in project Taier by DTStack.
the class HdfsOperator method rename.
public static boolean rename(Map<String, Object> conf, Map<String, Object> kerberos, String src, String dist) {
HdfsSourceDTO sourceDTO = getSourceDTO(conf, kerberos);
IHdfsFile hdfsClient = ClientCache.getHdfs(DataSourceType.HDFS.getVal());
return hdfsClient.rename(sourceDTO, src, dist);
}
Aggregations