123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428 |
- /**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- var App = require('app');
- var portRegex = '\\w*:(\\d+)';
- App.QuickLinks = DS.Model.extend({
- label: DS.attr('string'),
- url: DS.attr('string'),
- service_id: DS.attr('string'),
- template: DS.attr('string'),
- http_config: DS.attr('string'),
- https_config: DS.attr('string'),
- site: DS.attr('string'),
- regex: DS.attr('string'),
- default_http_port: DS.attr('number'),
- default_https_port: DS.attr('number')
- });
- App.QuickLinks.FIXTURES = [
- {
- id:1,
- label:'NameNode UI',
- url:'%@://%@:%@/dfshealth.jsp',
- service_id: 'HDFS',
- template:'%@://%@:%@/dfshealth.jsp',
- http_config: 'dfs.namenode.http-address',
- https_config: 'dfs.namenode.https-address',
- site: 'hdfs-site',
- regex: portRegex,
- default_http_port: 50070,
- default_https_port: 50470
- },
- {
- id:2,
- label:'NameNode logs',
- url:'%@://%@:%@/logs',
- service_id: 'HDFS',
- template:'%@://%@:%@/logs',
- http_config: 'dfs.namenode.http-address',
- https_config: 'dfs.namenode.https-address',
- site: 'hdfs-site',
- regex: portRegex,
- default_http_port: 50070,
- default_https_port: 50470
- },
- {
- id:3,
- label:'NameNode JMX',
- url:'%@://%@:%@/jmx',
- service_id: 'HDFS',
- template:'%@://%@:%@/jmx',
- http_config: 'dfs.namenode.http-address',
- https_config: 'dfs.namenode.https-address',
- site: 'hdfs-site',
- regex: portRegex,
- default_http_port: 50070,
- default_https_port: 50470
- },
- {
- id:4,
- label:'Thread Stacks',
- url:'%@://%@:%@/stacks',
- service_id: 'HDFS',
- template:'%@://%@:%@/stacks',
- http_config: 'dfs.namenode.http-address',
- https_config: 'dfs.namenode.https-address',
- site: 'hdfs-site',
- regex: portRegex,
- default_http_port: 50070,
- default_https_port: 50470
- },
- {
- id:5,
- label:'JobTracker UI',
- url:'%@://%@:%@/jobtracker.jsp',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/jobtracker.jsp',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:6,
- label:'Scheduling Info',
- url:'%@://%@:%@/scheduler',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/scheduler',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:7,
- label:'Running Jobs',
- url:'%@://%@:%@/jobtracker.jsp#running_jobs',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/jobtracker.jsp#running_jobs',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:8,
- label:'Retired Jobs',
- url:'%@://%@:%@/jobtracker.jsp#retired_jobs',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/jobtracker.jsp#retired_jobs',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:9,
- label:'JobHistory Server',
- url:'%@://%@:%@/jobhistoryhome.jsp',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/jobhistoryhome.jsp',
- http_config: 'mapreduce.history.server.http.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 51111
- },
- {
- id:10,
- label:'JobTracker Logs',
- url:'%@://%@:%@/logs',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/logs',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:11,
- label:'JobTracker JMX',
- url:'%@://%@:%@/jmx',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/jmx',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:12,
- label:'Thread Stacks',
- url:'%@://%@:%@/stacks',
- service_id: 'MAPREDUCE',
- template:'%@://%@:%@/stacks',
- http_config: 'mapred.job.tracker.http.address',
- https_config: 'mapred.job.tracker.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 50030,
- default_https_port: 50035
- },
- {
- id:13,
- label:'HBase Master UI',
- url:'%@://%@:%@/master-status',
- service_id: 'HBASE',
- template:'%@://%@:%@/master-status',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:14,
- label:'HBase Logs',
- url:'%@://%@:60010/logs',
- service_id: 'HBASE',
- template:'%@://%@:%@/logs',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:15,
- label:'Zookeeper Info',
- url:'%@://%@:60010/zk.jsp',
- service_id: 'HBASE',
- template:'%@://%@:%@/zk.jsp',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:16,
- label:'HBase Master JMX',
- url:'%@://%@:60010/jmx',
- service_id: 'HBASE',
- template:'%@://%@:%@/jmx',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:17,
- label:'Debug Dump',
- url:'%@://%@:%@/dump',
- service_id: 'HBASE',
- template:'%@://%@:%@/dump',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:18,
- label:'Thread Stacks',
- url:'%@://%@:%@/stacks',
- service_id: 'HBASE',
- template:'%@://%@:%@/stacks',
- http_config: 'hbase.master.info.port',
- site: 'hbase-site',
- regex: '^(\\d+)$',
- default_http_port: 60010
- },
- {
- id:19,
- label:'Oozie Web UI',
- url:'%@://%@:%@/oozie',
- service_id: 'OOZIE',
- template:'%@://%@:%@/oozie',
- http_config: 'oozie.base.url',
- site: 'oozie-site',
- regex: portRegex,
- default_http_port: 11000
- },
- {
- id:20,
- label:'Ganglia Web UI',
- url:'%@://%@/ganglia',
- service_id: 'GANGLIA',
- template:'%@://%@/ganglia'
- },
- {
- id:21,
- label:'Nagios Web UI',
- url:'%@://%@/nagios',
- service_id: 'NAGIOS',
- template:'%@://%@/nagios'
- },
- {
- id:22,
- label:'Hue Web UI',
- url:'%@://%@/hue',
- service_id: 'HUE',
- template:'%@://%@/hue'
- },
- {
- id:23,
- label:'ResourceManager UI',
- url:'%@://%@:%@',
- service_id: 'YARN',
- template:'%@://%@:%@',
- http_config: 'yarn.resourcemanager.webapp.address',
- https_config: 'yarn.resourcemanager.webapp.https.address',
- site: 'yarn-site',
- regex: portRegex,
- default_http_port: 8088,
- default_https_port: 8090
- },
- {
- id:24,
- label:'ResourceManager logs',
- url:'%@://%@:%@/logs',
- service_id: 'YARN',
- template:'%@://%@:%@/logs',
- http_config: 'yarn.resourcemanager.webapp.address',
- https_config: 'yarn.resourcemanager.webapp.https.address',
- site: 'yarn-site',
- regex: portRegex,
- default_http_port: 8088,
- default_https_port: 8090
- },
- {
- id:25,
- label:'ResourceManager JMX',
- url:'%@://%@:%@/jmx',
- service_id: 'YARN',
- template:'%@://%@:%@/jmx',
- http_config: 'yarn.resourcemanager.webapp.address',
- https_config: 'yarn.resourcemanager.webapp.https.address',
- site: 'yarn-site',
- regex: portRegex,
- default_http_port: 8088,
- default_https_port: 8090
- },
- {
- id:26,
- label:'Thread Stacks',
- url:'%@://%@:%@/stacks',
- service_id: 'YARN',
- template:'%@://%@:%@/stacks',
- http_config: 'yarn.resourcemanager.webapp.address',
- https_config: 'yarn.resourcemanager.webapp.https.address',
- site: 'yarn-site',
- regex: portRegex,
- default_http_port: 8088,
- default_https_port: 8090
- },
- {
- id:27,
- label:'JobHistory UI',
- url:'%@://%@:%@',
- service_id: 'MAPREDUCE2',
- template:'%@://%@:%@',
- http_config: 'mapreduce.jobhistory.webapp.address',
- https_config: 'mapreduce.jobhistory.webapp.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 19888
- },
- {
- id:28,
- label:'JobHistory logs',
- url:'%@://%@:%@/logs',
- service_id: 'MAPREDUCE2',
- template:'%@://%@:%@/logs',
- http_config: 'mapreduce.jobhistory.webapp.address',
- https_config: 'mapreduce.jobhistory.webapp.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 19888
- },
- {
- id:29,
- label:'JobHistory JMX',
- url:'%@://%@:%@/jmx',
- service_id: 'MAPREDUCE2',
- template:'%@://%@:%@/jmx',
- http_config: 'mapreduce.jobhistory.webapp.address',
- https_config: 'mapreduce.jobhistory.webapp.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 19888
- },
- {
- id:30,
- label:'Thread Stacks',
- url:'%@://%@:%@/stacks',
- service_id: 'MAPREDUCE2',
- template:'%@://%@:%@/stacks',
- http_config: 'mapreduce.jobhistory.webapp.address',
- https_config: 'mapreduce.jobhistory.webapp.https.address',
- site: 'mapred-site',
- regex: portRegex,
- default_http_port: 19888
- },
- {
- id:31,
- label:'Nimbus UI',
- url:'%@://%@:%@/',
- service_id: 'STORM',
- template:'%@://%@:%@/',
- http_config: 'nimbus.host',
- https_config: 'nimbus.host',
- site: 'storm-site',
- regex: portRegex,
- default_http_port: 8744
- },
- // @todo Add real info about link
- {
- id:33,
- label:'App Timeline Server UI',
- url:'%@://%@:%@/ats',
- service_id: 'YARN',
- template:'%@://%@:%@/ats',
- http_config: 'yarn.resourcemanager.webapp.address',
- https_config: 'yarn.resourcemanager.webapp.https.address',
- site: 'yarn-site',
- regex: portRegex,
- default_http_port: 8088
- },
- {
- id:32,
- label:'Falcon Server UI',
- url:'%@://%@:%@/stacks',
- service_id: 'FALCON',
- template:'%@://%@:%@/html5-ui',
- site: 'falcon-site',
- regex: portRegex,
- default_http_port: 16000
- }
- ];
|