|
|
@ -539,9 +539,9 @@ public class DataSourceService extends BaseService { |
|
|
|
(type == DbType.HIVE || type == DbType.SPARK)) { |
|
|
|
(type == DbType.HIVE || type == DbType.SPARK)) { |
|
|
|
parameterMap.put(Constants.PRINCIPAL, principal); |
|
|
|
parameterMap.put(Constants.PRINCIPAL, principal); |
|
|
|
} |
|
|
|
} |
|
|
|
if (other != null && !"".equals(other)) { |
|
|
|
|
|
|
|
Map<String, String> map = JSONUtils.toMap(other); |
|
|
|
Map<String, String> map = JSONUtils.toMap(other); |
|
|
|
if (map.size() > 0) { |
|
|
|
if (map != null) { |
|
|
|
StringBuilder otherSb = new StringBuilder(); |
|
|
|
StringBuilder otherSb = new StringBuilder(); |
|
|
|
for (Map.Entry<String, String> entry: map.entrySet()) { |
|
|
|
for (Map.Entry<String, String> entry: map.entrySet()) { |
|
|
|
otherSb.append(String.format("%s=%s%s", entry.getKey(), entry.getValue(), separator)); |
|
|
|
otherSb.append(String.format("%s=%s%s", entry.getKey(), entry.getValue(), separator)); |
|
|
@ -552,8 +552,6 @@ public class DataSourceService extends BaseService { |
|
|
|
parameterMap.put(Constants.OTHER, otherSb); |
|
|
|
parameterMap.put(Constants.OTHER, otherSb); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
logger.info("parameters map:{}", JSONUtils.toJsonString(parameterMap)); |
|
|
|
logger.info("parameters map:{}", JSONUtils.toJsonString(parameterMap)); |
|
|
|
} |
|
|
|
} |
|
|
|