Browse Source

Using Jackson instead of Fastjson

pull/2/head
simon 5 years ago
parent
commit
dea2d4634d
  1. 2
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HadoopUtils.java
  2. 7
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java

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

@ -406,7 +406,6 @@ public class HadoopUtils implements Closeable {
* *
* @param applicationId application id * @param applicationId application id
* @return the return may be null or there may be other parse exceptions * @return the return may be null or there may be other parse exceptions
* @throws JSONException json exception
*/ */
public ExecutionStatus getApplicationStatus(String applicationId) { public ExecutionStatus getApplicationStatus(String applicationId) {
if (StringUtils.isEmpty(applicationId)) { if (StringUtils.isEmpty(applicationId)) {
@ -467,6 +466,7 @@ public class HadoopUtils implements Closeable {
* hdfs resource dir * hdfs resource dir
* *
* @param tenantCode tenant code * @param tenantCode tenant code
* @param resourceType resource type
* @return hdfs resource dir * @return hdfs resource dir
*/ */
public static String getHdfsDir(ResourceType resourceType, String tenantCode) { public static String getHdfsDir(ResourceType resourceType, String tenantCode) {

7
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/ParameterUtils.java

@ -215,9 +215,10 @@ public class ParameterUtils {
/** /**
* new * new
* $[yyyyMMdd] replace scheduler time * $[yyyyMMdd] replace scheduler time
* @param text * @param text text
* @param paramsMap * @param scheduleTime scheduleTime
* @return * @param paramsMap paramsMap
* @return text
*/ */
public static String replaceScheduleTime(String text, Date scheduleTime, Map<String, Property> paramsMap) { public static String replaceScheduleTime(String text, Date scheduleTime, Map<String, Property> paramsMap) {
if (paramsMap != null) { if (paramsMap != null) {

Loading…
Cancel
Save