Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated json and yaml descriptor examples

...

Code Block
languagetext
titleProposed YAML
# Discovery info source
discovery-type: AMBARI
discovery-address: http://c6401.ambari.apache.org:8080
discovery-user: ambariuser

# 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 : ambari-cluster-policy.xml

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

# 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: AMBARI
      url:urls:
        - http://c6401.ambari.apache.org:8080
    - name: AMBARIUI
      url:urls:
        - http://c6401.ambari.apache.org:8080

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

...

Code Block
languagetext
titleProposed JSON
{
  "discovery-type":"AMBARI",
  "discovery-address":"http://c6401.ambari.apache.org:8080",
  "discovery-user":"ambariuser",
  "provider-config-ref":"ambari-cluster-policy.xml",
  "cluster":"mycluster",
  "services":[
     {"name":"NAMENODE"},
     {"name":"JOBTRACKER"},
     {"name":"WEBHDFS"},
     {"name":"WEBHCAT"},
     {"name":"OOZIE"},
     {"name":"WEBHBASE"},
     {"name":"HIVE"},
     {"name":"RESOURCEMANAGER"},
     {"name":"AMBARI", "urlurls":["http://c6401.ambari.apache.org:8080"]}
  ],
  "uis":[
     {"name":"AMBARIUI", "urlurls":["http://c6401.ambari.apache.org:8080"]}
  ]
} 

 

Anchor
topologygen
topologygen
3.Topology Generation

...