Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleProposed YAML
# Discovery info source
discovery-type: AMBARI
discovery-address: http://c6401sandbox.ambarihortonworks.apache.orgcom:8080
discovery-user: ambariusermaria_dev
discovery-pwd-alias: ambari.discovery.password

# Provider config reference, the contents of which will be
# included in (or referenced from) the resulting topology descriptor.
# The contents of this reference has a <gateway/> root, and
# contains <provider/> configurations.
provider-config-ref : ambarisandbox-cluster-policyproviders.xml

# The cluster for which the service details should be discovered
cluster: myclusterSandbox

# The services to declare in the resulting topology descriptor,
# whose URLs will be discovered (unless a value is specified)
services:
    - name: NAMENODE
    - name: JOBTRACKER
    - name: WEBHDFS
    - name: WEBHCAT
    - name: OOZIE
    - name: WEBHBASE
    - name: HIVE
    - name: RESOURCEMANAGER
    - name: KNOXSSO
      params:
          knoxsso.cookie.secure.only: true
          knoxsso.token.ttl: 100000 
    - name: AMBARI
      urls:
        - http://c6401sandbox.ambarihortonworks.apache.orgcom:8080
    - name: AMBARIUI
      urls:
        - http://c6401sandbox.ambarihortonworks.apache.orgcom:8080

# UIs to be proxied through the resulting Knox topology (see KIP-9)
#uis:
#   - name: AMBARIUI
#     url: http://c6401sandbox.ambarihortonworks.apache.orgcom:8080

 

While JSON is not really a format for configuration, it is certainly appropriate as a wire format, and will be used for API interactions.

Code Block
languagetext
titleProposed JSON
{
  "discovery-type":"AMBARI",
  "discovery-address":"http://sandbox.hortonworks.com:8080",
  "discovery-user":"maria_dev",
  "discovery-pwd-alias":"ambari.discovery.password",
  "provider-config-ref":"sandbox-providers.xml",
  "cluster":"Sandbox",
  "services":[
     {"name":"NAMENODE"},
     {"name":"JOBTRACKER"},
     {"name":"WEBHDFS"},
     {"name":"WEBHCAT"},
     {"name":"OOZIE"},
     {"name":"WEBHBASE"},
     {"name":"HIVE"},
     {"name":"RESOURCEMANAGER"},
     {"name":"KNOXSSO",
      "params":{
          "knoxsso.cookie.secure.only":"true",
          "knoxsso.token.ttl":"100000"
      }
     },
     {"name":"AMBARI", "urls":["http://c6401sandbox.ambarihortonworks.apache.orgcom:8080"]}
  ],
  "uis":[
     {"name":"AMBARIUI", "urls":["http://c6401sandbox.ambarihortonworks.apache.orgcom:8080"]}
  ]
} 

 

Anchor
topologygen
topologygen
3.Topology Generation

...