Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
deeplearning
DolphinScheduler
提交
f6f29f4a
DolphinScheduler
项目概览
deeplearning
/
DolphinScheduler
与 Fork 源项目一致
Fork自
apache / DolphinScheduler
通知
24
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
f6f29f4a
编写于
3月 16, 2020
作者:
T
t1mon
提交者:
GitHub
3月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace Charset.forName("UTF-8") with StandardCharsets.UTF_8. (#2193)
上级
1658176e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
7 deletion
+9
-7
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessInstanceService.java
.../dolphinscheduler/api/service/ProcessInstanceService.java
+3
-2
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/utils/Constants.java
...a/org/apache/dolphinscheduler/remote/utils/Constants.java
+2
-1
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java
...rg/apache/dolphinscheduler/server/utils/ProcessUtils.java
+2
-2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/datax/DataxTask.java
.../dolphinscheduler/server/worker/task/datax/DataxTask.java
+2
-2
未找到文件。
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessInstanceService.java
浏览文件 @
f6f29f4a
...
...
@@ -16,6 +16,7 @@
*/
package
org.apache.dolphinscheduler.api.service
;
import
java.nio.charset.StandardCharsets
;
import
org.apache.dolphinscheduler.api.dto.gantt.GanttDto
;
import
org.apache.dolphinscheduler.api.dto.gantt.Task
;
import
org.apache.dolphinscheduler.api.enums.Status
;
...
...
@@ -49,7 +50,6 @@ import java.io.BufferedReader;
import
java.io.ByteArrayInputStream
;
import
java.io.IOException
;
import
java.io.InputStreamReader
;
import
java.nio.charset.Charset
;
import
java.text.ParseException
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -273,7 +273,8 @@ public class ProcessInstanceService extends BaseDAGService {
return
resultMap
;
}
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
new
ByteArrayInputStream
(
log
.
getBytes
(
Charset
.
forName
(
"utf8"
))),
Charset
.
forName
(
"utf8"
)));
BufferedReader
br
=
new
BufferedReader
(
new
InputStreamReader
(
new
ByteArrayInputStream
(
log
.
getBytes
(
StandardCharsets
.
UTF_8
)),
StandardCharsets
.
UTF_8
));
String
line
;
while
((
line
=
br
.
readLine
())
!=
null
)
{
if
(
line
.
contains
(
DEPENDENT_SPLIT
)){
...
...
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/utils/Constants.java
浏览文件 @
f6f29f4a
...
...
@@ -17,6 +17,7 @@
package
org.apache.dolphinscheduler.remote.utils
;
import
java.nio.charset.Charset
;
import
java.nio.charset.StandardCharsets
;
/**
...
...
@@ -31,7 +32,7 @@ public class Constants {
/**
* charset
*/
public
static
final
Charset
UTF8
=
Charset
.
forName
(
"UTF-8"
)
;
public
static
final
Charset
UTF8
=
StandardCharsets
.
UTF_8
;
/**
* cpus
...
...
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java
浏览文件 @
f6f29f4a
...
...
@@ -16,6 +16,7 @@
*/
package
org.apache.dolphinscheduler.server.utils
;
import
java.nio.charset.StandardCharsets
;
import
org.apache.dolphinscheduler.common.Constants
;
import
org.apache.dolphinscheduler.common.utils.CommonUtils
;
import
org.apache.dolphinscheduler.common.utils.LoggerUtils
;
...
...
@@ -29,7 +30,6 @@ import org.slf4j.LoggerFactory;
import
java.io.File
;
import
java.io.IOException
;
import
java.nio.charset.Charset
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.regex.Matcher
;
...
...
@@ -297,7 +297,7 @@ public class ProcessUtils {
File
f
=
new
File
(
commandFile
);
if
(!
f
.
exists
())
{
FileUtils
.
writeStringToFile
(
new
File
(
commandFile
),
sb
.
toString
(),
Charset
.
forName
(
"UTF-8"
)
);
FileUtils
.
writeStringToFile
(
new
File
(
commandFile
),
sb
.
toString
(),
StandardCharsets
.
UTF_8
);
}
String
runCmd
=
"sh "
+
commandFile
;
...
...
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/worker/task/datax/DataxTask.java
浏览文件 @
f6f29f4a
...
...
@@ -18,7 +18,7 @@ package org.apache.dolphinscheduler.server.worker.task.datax;
import
java.io.File
;
import
java.nio.charset.
Charset
;
import
java.nio.charset.
StandardCharsets
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.nio.file.StandardOpenOption
;
...
...
@@ -209,7 +209,7 @@ public class DataxTask extends AbstractTask {
logger
.
debug
(
"datax job json : {}"
,
root
.
toString
());
// create datax json file
FileUtils
.
writeStringToFile
(
new
File
(
fileName
),
root
.
toString
(),
Charset
.
forName
(
"UTF-8"
)
);
FileUtils
.
writeStringToFile
(
new
File
(
fileName
),
root
.
toString
(),
StandardCharsets
.
UTF_8
);
return
fileName
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录