Skip to Main Content
Hadoop管理手冊
book

Hadoop管理手冊

by Eric Sammer
February 2014
Intermediate to advanced content levelIntermediate to advanced
312 pages
6h 28m
Chinese
GoTop Information, Inc.
Content preview from Hadoop管理手冊
Hadoop
效能指標
|
251
interface
),或者使用一組簡單的
Java
註解;希望能接收並處理效能指標資料的元
件則須實作
MetricsSink
介面。根據系統管理者所提供的設定,這個框架能從資料源
取出資料,處理後送給接收端。
來自全部資料源的所有效能指標預設將被傳送到全部的接收端。這是多數情境中預期
的行為──(舉例來說)將所有效能指標傳送到單一檔案或
Ganglia
中。當資料需要更
複雜的路由時,您可以依照效能指標的關聯群組(
context
)進行過濾,就像其他所謂
標籤(
tags
)的作法。過慮器可以套用到資料源(
source
)、記錄(
record
),或甚至
效能指標名稱(
metrics name
)。請注意,過濾器設定愈嚴格,您必須預期,在處理效
能指標時,會造成更大的額外負擔(
overhead
)。
透過設定位於標準
Hadoop
設定檔目錄的
hadoop-metrics2.properties
檔來完成系統的
設定(請注意檔名中的數字二)。就像它的前身一樣,
hadoop-metrics2.properties
一個
Java
屬性檔(
properties file
),不過它用到一些特別的慣例(
convention
)代表
預設值(
defaults
)與覆蓋值(
overrides
)。在範例
10-5
中,我們展示了一個
metrics2
的簡易設定檔。
範例
10-5
hadoop-metrics2.properties
設定檔範例
# hadoop-metrics2.properties
# By default, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang
Python应用开发指南

Python应用开发指南

Posts & Telecom Press, Ninad Sathaye
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
自然语言处理与计算语言学

自然语言处理与计算语言学

Posts & Telecom Press, Bhargav Srinivasa-Desikan

Publisher Resources

ISBN: 9789862769973