Browse Source

change static field to instance field (#2190)

pull/2/head
tswstarplanet 4 years ago committed by GitHub
parent
commit
a3767642a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java

6
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java

@ -64,8 +64,8 @@ public class HadoopUtils implements Closeable {
}
});
private static Configuration configuration;
private static FileSystem fs;
private Configuration configuration;
private FileSystem fs;
private static String hdfsUser = PropertyUtils.getString(Constants.HDFS_ROOT_USER);
@ -99,7 +99,7 @@ public class HadoopUtils implements Closeable {
/**
* init hadoop configuration
*/
private static void init() {
private void init() {
try {
configuration = new Configuration();

Loading…
Cancel
Save