You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by li...@apache.org on 2020/03/16 10:06:21 UTC
[incubator-dolphinscheduler] branch dev updated: change static
field to instance field (#2190)
This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new a376764 change static field to instance field (#2190)
a376764 is described below
commit a3767642a546a4dac11975b0032eb80766871134
Author: tswstarplanet <ts...@apache.org>
AuthorDate: Mon Mar 16 18:06:13 2020 +0800
change static field to instance field (#2190)
---
.../java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
index e767911..6c42704 100644
--- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
+++ b/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();