提交 199c9729 编写于 作者: L ligang

remove init basepath

上级 8f7018f6
......@@ -100,7 +100,6 @@ public class HadoopUtils implements Closeable {
logger.info("appAddress : {}", appAddress);
}
configuration.set(Constants.YARN_APPLICATION_STATUS_ADDRESS, appAddress);
initBasePath();
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
......@@ -110,17 +109,6 @@ public class HadoopUtils implements Closeable {
}
}
/**
* init data.store2hdfs.basepath in common.properties
* @throws IOException
*/
private void initBasePath() throws IOException {
Path path = new Path(getString(DATA_STORE_2_HDFS_BASEPATH));
if( !fs.exists(path) ){
fs.mkdirs(path);
}
}
/**
* @return Configuration
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册