You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2013/02/11 20:34:48 UTC
svn commit: r1444935 - in /incubator/ambari/trunk: ./ ambari-web/app/
ambari-web/app/templates/main/admin/advanced/
ambari-web/app/templates/main/admin/user/ ambari-web/app/templates/main/apps/
ambari-web/app/templates/main/apps/item/ ambari-web/app/te...
Author: jaimin
Date: Mon Feb 11 19:34:48 2013
New Revision: 1444935
URL: http://svn.apache.org/r1444935
Log:
AMBARI-1375. Remove text from templates (main). (jaimin)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/messages.js
incubator/ambari/trunk/ambari-web/app/templates/main/admin/advanced/uninstall.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/admin/user/edit.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/apps/item/dag.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/apps/user_filter.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap/heatmap_host_detail.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hbase.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hdfs.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/mapreduce.hbs
incubator/ambari/trunk/ambari-web/app/templates/main/host/summary.hbs
incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
incubator/ambari/trunk/ambari-web/app/views/main/dashboard/service/hdfs.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Mon Feb 11 19:34:48 2013
@@ -40,6 +40,8 @@ Trunk (unreleased changes):
IMPROVEMENTS
+ AMBARI-1375. Remove text from templates (main). (jaimin)
+
AMBARI-1374. Add filter by alerts on the Hosts page. (jaimin)
AMBARI-1373. Since there is the ability to log in to Ambari Web as
Modified: incubator/ambari/trunk/ambari-web/app/messages.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/messages.js?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/messages.js (original)
+++ incubator/ambari/trunk/ambari-web/app/messages.js Mon Feb 11 19:34:48 2013
@@ -69,6 +69,7 @@ Em.I18n.translations = {
'common.ipAddress':'IP Address',
'common.cpu':'CPU',
'common.ram':'RAM',
+ 'common.disk':'Disk',
'common.diskUsage':'Disk Usage',
'common.loadAvg':'Load Avg',
'common.components':'Components',
@@ -76,6 +77,14 @@ Em.I18n.translations = {
'common.save':'Save',
'common.servers':'Servers',
'common.clients':'Clients',
+ 'common.user': 'User',
+ 'common.os':'OS',
+ 'common.memory':'Memory',
+ 'common.maximum':'Maximum',
+ 'common.start':'Start',
+ 'common.stop':'Stop',
+ 'common.decommission':'Decommission',
+ 'common.recommission':'Recommission',
'popup.highlight':'click to highlight',
@@ -103,7 +112,8 @@ Em.I18n.translations = {
'services.zookeeper.description':'ZooKeeper desc',
'services.hbase.description':'Non-relational distributed database and centralized service for configuration management & synchronization',
'services.hive.databaseComponent':'Database Server',
-
+
+ 'services.alerts.head':'You have {0} critical alert notification(s).',
'services.alerts.OK.timePrefix': 'OK for ',
'services.alerts.WARN.timePrefix': 'WARN for ',
'services.alerts.CRIT.timePrefix': 'CRIT for ',
@@ -332,6 +342,8 @@ Em.I18n.translations = {
'admin.users.createError.userNameExists': 'User with the same name is already exists',
'admin.users.editError.requiredField': 'This is required',
+ 'admin.confirmUninstall':'Confirm Uninstall',
+
'question.sure':'Are you sure?',
'yes':'Yes',
'no':'No',
@@ -433,6 +445,11 @@ Em.I18n.translations = {
'hosts.host.metrics.network':'Network Usage',
'hosts.host.metrics.processes':'Processes',
+ 'hosts.host.summary.header':'Summary',
+ 'hosts.host.summary.hostname':'Hostname',
+ 'hosts.host.summary.agentHeartbeat':'Agent <br/> Heartbeat',
+ 'hosts.host.summary.hostMetrics':'Host Metrics',
+
'hosts.host.details.deleteHost':'Delete Host',
'host.host.componentFilter.master':'Master Components',
@@ -465,6 +482,8 @@ Em.I18n.translations = {
'charts.horizon.chart.attributes.network':'Network',
'charts.horizon.chart.attributes.io':'I/O',
+ 'charts.heatmap.selectMetric':'Select Metric...',
+
'charts.heatmap.category.host':'Host',
'charts.heatmap.item.host.memory':'Memory Used',
'charts.heatmap.item.host.disk':'Disk Space Used',
@@ -515,6 +534,7 @@ Em.I18n.translations = {
'dashboard.services.hdfs.nodes.heap':'NameNode Heap',
'dashboard.services.hdfs.nodes.heapUsed':'{0} / {1} ({2}% used)',
'dashboard.services.hdfs.chart.label':'Capacity (Used/Total)',
+ 'dashboard.services.hdfs.blockErrors':'{0} corrupt / {1} missing / {2} under replicated',
'dashboard.services.mapreduce.summary':'{0} of {1} trackers live, {2} jobs running, {3} jobs waiting',
'dashboard.services.mapreduce.taskTrackers':'TaskTrackers',
@@ -580,6 +600,15 @@ Em.I18n.translations = {
'timeRange.presets.1month':'1mo',
'timeRange.presets.1year':'1yr',
+ 'apps.item.dag.job': 'Job',
+ 'apps.item.dag.jobId': 'Job Id',
+ 'apps.item.dag.status': 'Status',
+ 'apps.item.dag.maps': 'Maps',
+ 'apps.item.dag.reduces': 'Reduces',
+ 'apps.item.dag.input': 'Input',
+ 'apps.item.dag.output': 'Output',
+ 'apps.item.dag.duration': 'Duration',
+
'apps.avgTable.avg': 'Avg',
'apps.avgTable.min': 'Min',
'apps.avgTable.max': 'Max',
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/admin/advanced/uninstall.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/admin/advanced/uninstall.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/admin/advanced/uninstall.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/admin/advanced/uninstall.hbs Mon Feb 11 19:34:48 2013
@@ -16,4 +16,4 @@
* limitations under the License.
}}
-Confirm Uninstall
\ No newline at end of file
+{{t admin.confirmUninstall}}
\ No newline at end of file
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/admin/user/edit.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/admin/user/edit.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/admin/user/edit.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/admin/user/edit.hbs Mon Feb 11 19:34:48 2013
@@ -32,7 +32,7 @@
<div class="controls">
<button type="submit" class="btn" {{action gotoUsers}}>{{t form.cancel}}</button>
<button type="submit"
- class="btn btn-primary" {{action edit target="view"}}>Save</button>
+ class="btn btn-primary" {{action edit target="view"}}>{{t common.save}}</button>
</div>
</div>
</form>
\ No newline at end of file
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/apps/item/dag.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/apps/item/dag.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/apps/item/dag.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/apps/item/dag.hbs Mon Feb 11 19:34:48 2013
@@ -20,14 +20,14 @@
<table class="table table-bordered table-striped" id="innerTable">
<thead>
<tr>
- <th>Job #</th>
- <th>Job Id</th>
- <th>Status</th>
- <th>Maps</th>
- <th>Reduces</th>
- <th>Input</th>
- <th>Output</th>
- <th>Duration</th>
+ <th>{{t apps.item.dag.job}} #</th>
+ <th>{{t apps.item.dag.jobId}}</th>
+ <th>{{t apps.item.dag.status}}</th>
+ <th>{{t apps.item.dag.maps}}</th>
+ <th>{{t apps.item.dag.reduces}}</th>
+ <th>{{t apps.item.dag.input}}</th>
+ <th>{{t apps.item.dag.output}}</th>
+ <th>{{t apps.item.dag.duration}}</th>
</tr>
</thead>
<tbody>
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/apps/user_filter.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/apps/user_filter.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/apps/user_filter.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/apps/user_filter.hbs Mon Feb 11 19:34:48 2013
@@ -16,7 +16,7 @@
* limitations under the License.
}}
<button class="btn btn-info single-btn-group" {{action "clickFilterButton" target="view"}}>
- User <span class="caret"></span>
+ {{t common.user}} <span class="caret"></span>
</button>
<ul class="dropdown-menu filter-components">
{{#each user in view.users}}
@@ -25,7 +25,7 @@
</li>
{{/each}}
<li>
- <button class="btn" {{action "closeFilter" target="view"}}>Cancel</button>
- <button class="btn btn-primary" {{action "applyFilter" target="view"}}>Apply</button>
+ <button class="btn" {{action "closeFilter" target="view"}}>{{t common.cancel}}</button>
+ <button class="btn btn-primary" {{action "applyFilter" target="view"}}>{{t common.apply}}</button>
</li>
</ul>
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap.hbs Mon Feb 11 19:34:48 2013
@@ -22,7 +22,7 @@
<div class="row-fluid">
<div class="span2 legend-column">
<div class="btn-group">
- <button class="btn">Select Metric...</button>
+ <button class="btn">{{t charts.heatmap.selectMetric}}</button>
<button class="btn dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
@@ -52,7 +52,7 @@
</tr>
{{/each}}
</table>
- Maximum:
+ {{t common.maximum}}:
<div>
{{view Ember.TextField type="text" valueBinding="controller.selectedMetric.maximumValue" class="span6"}}
{{controller.selectedMetric.units}}
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap/heatmap_host_detail.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap/heatmap_host_detail.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap/heatmap_host_detail.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/charts/heatmap/heatmap_host_detail.hbs Mon Feb 11 19:34:48 2013
@@ -17,20 +17,20 @@
}}
<b>{{view.details.publicHostName}}</b><br/>
-OS: {{view.details.osType}}<br/>
-IP: {{view.details.ip}}<br/>
+{{t common.os}}: {{view.details.osType}}<br/>
+{{t common.ipAddress}}: {{view.details.ip}}<br/>
{{#if view.details.metricName}}
{{view.details.metricName}}: {{view.details.metricValue}}<br/>
{{/if}}
{{#if view.details.diskUsage}}
- Disk: {{view.details.diskUsage}}% <br/>
+ {{t common.disk}}: {{view.details.diskUsage}}% <br/>
{{/if}}
{{#if view.details.cpuUsage}}
- CPU: {{view.details.cpuUsage}}%<br/>
+ {{t common.cpu}}: {{view.details.cpuUsage}}%<br/>
{{/if}}
{{#if view.details.memoryUsage}}
- Memory: {{view.details.memoryUsage}}%<br/>
+ {{t common.memory}}: {{view.details.memoryUsage}}%<br/>
{{/if}}
{{#if view.details.hostComponents}}
- Components: {{view.details.hostComponents}}<br/>
+ {{t common.components}}: {{view.details.hostComponents}}<br/>
{{/if}}
\ No newline at end of file
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs Mon Feb 11 19:34:48 2013
@@ -16,7 +16,7 @@
* limitations under the License.
}}
-<p>You have {{view.warnAlertsCount}} critical alert notification(s).</p>
+<p>{{view.warnAlertsMessage}}</p>
{{#if view.warnAlertsCount}}
<ul id='summary-alerts-list' class="alerts">
{{#each view.warnAlerts}}
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hbase.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hbase.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hbase.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hbase.hbs Mon Feb 11 19:34:48 2013
@@ -99,7 +99,7 @@
{{#view App.QuickViewLinks contentBinding="view.service"}}
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
- Quick Links
+ {{t common.quickLinks}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hdfs.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hdfs.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hdfs.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/hdfs.hbs Mon Feb 11 19:34:48 2013
@@ -103,9 +103,7 @@
<tr>
<td>{{t services.service.summary.blockErrors}}</td>
<td>
- {{view.dfsCorruptBlocks}} corrupt /
- {{view.dfsMissingBlocks}} missing /
- {{view.dfsUnderReplicatedBlocks}} under replicated
+ {{view.blockErrorsMessage}}
</td>
</tr>
<!-- Total Files And Directories -->
@@ -149,7 +147,7 @@
{{#view App.QuickViewLinks contentBinding="view.service"}}
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
- Quick Links
+ {{t common.quickLinks}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/mapreduce.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/mapreduce.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/mapreduce.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/dashboard/service/mapreduce.hbs Mon Feb 11 19:34:48 2013
@@ -128,7 +128,7 @@
{{#view App.QuickViewLinks contentBinding="view.service"}}
<div class="btn-group">
<a class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#">
- Quick Links
+ {{t common.quickLinks}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
Modified: incubator/ambari/trunk/ambari-web/app/templates/main/host/summary.hbs
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/templates/main/host/summary.hbs?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/templates/main/host/summary.hbs (original)
+++ incubator/ambari/trunk/ambari-web/app/templates/main/host/summary.hbs Mon Feb 11 19:34:48 2013
@@ -22,18 +22,18 @@
<div class="host-configuration">
<div class="box">
<div class="box-header">
- <h4>Summary</h4>
+ <h4>{{t hosts.host.summary.header}}</h4>
</div>
<div class="host-summary-content">
<dl class="dl-horizontal">
- <dt>Hostname:</dt><dd> {{view.content.publicHostName}}</dd>
- <dt>IP Address:</dt><dd> {{view.content.ip}}</dd>
- <dt>OS:</dt><dd> {{view.content.osType}} ({{view.content.osArch}})</dd>
- <dt>CPU:</dt><dd> {{view.content.cpu}}</dd>
- <dt>Disk:</dt><dd> {{view.content.diskInfoBar}}</dd>
- <dt>Memory:</dt><dd> {{view.content.memoryFormatted}}</dd>
- <dt>Load Avg:</dt><dd> {{view.content.loadAvg}}</dd>
- <dt>Agent <br/> Heartbeat:</dt><dd>{{view.timeSinceHeartBeat}}</dd>
+ <dt>{{t hosts.host.summary.hostname}}:</dt><dd> {{view.content.publicHostName}}</dd>
+ <dt>{{t common.ipAddress}}:</dt><dd> {{view.content.ip}}</dd>
+ <dt>{{t common.os}}:</dt><dd> {{view.content.osType}} ({{view.content.osArch}})</dd>
+ <dt>{{t common.cpu}}:</dt><dd> {{view.content.cpu}}</dd>
+ <dt>{{t common.disk}}:</dt><dd> {{view.content.diskInfoBar}}</dd>
+ <dt>{{t common.memory}}:</dt><dd> {{view.content.memoryFormatted}}</dd>
+ <dt>{{t common.loadAvg}}:</dt><dd> {{view.content.loadAvg}}</dd>
+ <dt>{{t hosts.host.summary.agentHeartbeat}}:</dt><dd>{{view.timeSinceHeartBeat}}</dd>
</dl>
</div>
</div>
@@ -57,30 +57,30 @@
{{#if App.isAdmin}}
<div class="btn-group">
<a {{ bindAttr class=":btn :dropdown-toggle view.disabledClass"}} data-toggle="dropdown">
- Action
+ {{t common.action}}
<span class="caret pull-right"></span>
</a>
<ul class="dropdown-menu">
{{#if view.isDataNode}}
<li {{bindAttr class="view.isDataNodeDecommissionAvailable::hidden"}}>
<a href="javascript:void(null)" data-toggle="modal" {{action "decommission" view.content target="controller"}}>
- Decommission
+ {{t common.decommission}}
</a>
</li>
<li {{bindAttr class="view.isDataNodeRecommissionAvailable::hidden"}}>
<a href="javascript:void(null)" data-toggle="modal" {{action "recommission" view.content target="controller"}}>
- Recommission
+ {{t common.recommission}}
</a>
</li>
{{/if}}
<li {{bindAttr class="view.isStart::hidden"}}>
<a href="javascript:void(null)" data-toggle="modal" {{action "stopComponent" view.content target="controller"}}>
- Stop
+ {{t common.stop}}
</a>
</li>
<li {{bindAttr class="view.isStart:hidden:"}}>
<a href="javascript:void(null)" data-toggle="modal" {{action "startComponent" view.content target="controller"}}>
- Start
+ {{t common.start}}
</a>
</li>
</ul>
@@ -93,7 +93,7 @@
{{#if view.clients.length}}
<div class="clients row-fluid">
<div class="span8 row">
- <div class="span2">Clients / </div>
+ <div class="span2">{{t common.clients}} / </div>
<div class="span8">
{{#each component in view.clients}}
{{#if component.isLast}}
@@ -115,7 +115,7 @@
<div class="span6">
<div class="box">
<div class="box-header">
- <h4>Host Metrics</h4>
+ <h4>{{t hosts.host.summary.hostMetrics}}</h4>
<div class="btn-group">
<a class="btn" rel="tooltip" title="Go to Ganglia" {{action "showGangliaCharts" target="view"}}><i class="icon-link"></i></a>
</div>
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard.js Mon Feb 11 19:34:48 2013
@@ -105,6 +105,10 @@ App.MainDashboardView = Em.View.extend({
return this.get('warnAlerts').length;
}.property('warnAlerts'),
+ warnAlertsMessage: function() {
+ return Em.I18n.t('services.alerts.head').format(this.get('warnAlertsCount'));
+ }.property('warnAlertsCount'),
+
nagiosUrl: function () {
return App.router.get('clusterController.nagiosUrl');
}.property('App.router.clusterController.nagiosUrl'),
Modified: incubator/ambari/trunk/ambari-web/app/views/main/dashboard/service/hdfs.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/dashboard/service/hdfs.js?rev=1444935&r1=1444934&r2=1444935&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/dashboard/service/hdfs.js (original)
+++ incubator/ambari/trunk/ambari-web/app/views/main/dashboard/service/hdfs.js Mon Feb 11 19:34:48 2013
@@ -55,6 +55,10 @@ App.MainDashboardServiceHdfsView = App.M
return this.formatUnavailable(this.get('service.dfsUnderReplicatedBlocks'));
}.property('service.dfsUnderReplicatedBlocks'),
+ blockErrorsMessage: function() {
+ return Em.I18n.t('dashboard.services.hdfs.blockErrors').format(this.get('dfsCorruptBlocks'), this.get('dfsMissingBlocks'), this.get('dfsUnderReplicatedBlocks'));
+ }.property('dfsCorruptBlocks','dfsMissingBlocks','dfsUnderReplicatedBlocks'),
+
nodeUptime: function () {
var uptime = this.get('service').get('nameNodeStartTime');
if (uptime && uptime > 0){