Browse Source

resolve #3096 fixbug ambari plugin the config options which has unit doesnt write unit into config file (#3209)

Co-authored-by: zhangchunyang <zhangchunyang@analysys.com.cn>
pull/3/MERGE
zhangchunyang 4 years ago committed by GitHub
parent
commit
438a009a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      ambari_plugin/common-services/DOLPHIN/1.3.0/package/scripts/params.py

7
ambari_plugin/common-services/DOLPHIN/1.3.0/package/scripts/params.py

@ -145,6 +145,11 @@ if len(zookeeperHosts) > 0 and "clientPort" in config['configurations']['zoo.cfg
zookeeperPort = ":" + clientPort + "," zookeeperPort = ":" + clientPort + ","
dolphin_zookeeper_map['zookeeper.quorum'] = zookeeperPort.join(zookeeperHosts) + ":" + clientPort dolphin_zookeeper_map['zookeeper.quorum'] = zookeeperPort.join(zookeeperHosts) + ":" + clientPort
dolphin_zookeeper_map.update(config['configurations']['dolphin-zookeeper']) dolphin_zookeeper_map.update(config['configurations']['dolphin-zookeeper'])
if 'spring.servlet.multipart.max-file-size' in dolphin_app_api_map:
file_size = dolphin_app_api_map['spring.servlet.multipart.max-file-size']
dolphin_app_api_map['spring.servlet.multipart.max-file-size'] = file_size + "MB"
if 'spring.servlet.multipart.max-request-size' in dolphin_app_api_map:
request_size = dolphin_app_api_map['spring.servlet.multipart.max-request-size']
dolphin_app_api_map['spring.servlet.multipart.max-request-size'] = request_size + "MB"

Loading…
Cancel
Save