|
|
|
@ -539,11 +539,11 @@ public class DataSourceService extends BaseService {
|
|
|
|
|
(type == DbType.HIVE || type == DbType.SPARK)) { |
|
|
|
|
parameterMap.put(Constants.PRINCIPAL, principal); |
|
|
|
|
} |
|
|
|
|
if (other != null && !"".equals(other)) { |
|
|
|
|
|
|
|
|
|
Map<String, String> map = JSONUtils.toMap(other); |
|
|
|
|
if (map.size() > 0) { |
|
|
|
|
if (map != null) { |
|
|
|
|
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)); |
|
|
|
|
} |
|
|
|
|
if (!Constants.DB2.equals(type.name())) { |
|
|
|
@ -552,8 +552,6 @@ public class DataSourceService extends BaseService {
|
|
|
|
|
parameterMap.put(Constants.OTHER, otherSb); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (logger.isDebugEnabled()) { |
|
|
|
|
logger.info("parameters map:{}", JSONUtils.toJsonString(parameterMap)); |
|
|
|
|
} |
|
|
|
|