-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathREADME
50 lines (36 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Author: Brandon Bell
Contact: remuso AT gmail DOT com
Date: 06/23/2012
-------------------
Implementation of metrics package that sends metric data to Graphite.
Disclaimer:
This is my first 'useful' thing programmed in Java. Any recommendations or improvements would be welcome.
Compile:
$ jar -cf GraphiteContext.jar -C org/ .
Installation:
In your hadoop-env.sh file (usually in /etc/hadoop/conf/), add the location of the GraphiteContext.jar file into the HADOOP_CLASSPATH
example: export HADOOP_CLASSPATH="/home/brandon/GraphiteContext.jar"
Configuration:
In your hadoop-metrics.properties file, add the following for all metrics
mapred.class=org.apache.hadoop.metrics.graphite.GraphiteContext
mapred.period=60
mapred.serverName=<Your Graphite Server>
mapred.port=2013
jvm.class=org.apache.hadoop.metrics.graphite.GraphiteContext
jvm.period=60
jvm.serverName=<Your Graphite Server>
jvm.port=2013
dfs.class=org.apache.hadoop.metrics.graphite.GraphiteContext
dfs.period=60
dfs.serverName=<Your Graphite Server>
dfs.port=2013
ugi.class=org.apache.hadoop.metrics.graphite.GraphiteContext
ugi.period=60
ugi.serverName=<Your Graphite Server>
ugi.port=2013
<metric>.path=<path> can be used to specify the path in Graphite. Defaults to Platform.Hadoop
Restart Daemons:
$sudo /etc/init.d/hadoop-tasktracker restart
$sudo /etc/init.d/hadoop-tasktracker restart
$sudo /etc/init.d/hadoop-tasktracker restart
$sudo /etc/init.d/hadoop-tasktracker restart