How to use the yarn.timeline-service.webapp.address function in yarn

To help you get started, we’ve selected a few yarn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / ambari / contrib / views / jobs / src / main / resources / ui / app / scripts / mappers / application_status_mapper.js View on Github external
getConfigurationSuccessCallback: function(data) {
    var c = data.items.findBy('type', 'yarn-site');
    if (!Em.isNone(c)) {
      var properties = Em.get(c, 'properties'),
        port = '8188';
      if (!Em.isNone(properties)) {
        port = properties['yarn.timeline-service.webapp.address'].match(/:(\d+)/)[1];
      }
      App.HiveJob.store.getById('service', 'YARN').set('ahsWebPort', port);
      this.set('portIsLoaded', true);
    }
  }