Professional Documents
Culture Documents
Page 1 of 8
Cloudera.com
Cloudera University
Documentation
Developer Community
My Account
Contact Us
Downloads
Cloudera
Why Cloudera
Our Customers
See a selection of Cloudera customers and how they use Cloudera to ask bigger questions of all their data.
FAQs
We answer some of your most popular questions about Cloudera and our technology.
Blog
Explore thought, technical, and community leadership from Cloudera.
Products
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 2 of 8
Cloudera Support
The industrys highest quality technical support for Hadoop.
Cloudera Manager
Explore the leading end-to-end management application for Hadoop.
CDH
Get details about our 100% open source distribution of Hadoop and other projects, designed for enterprise demands.
Latest Releases
Downloads & Installation
Professional Services
Training
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 3 of 8
Work at the speed of thought with Cloudera Enterprise RTQ powered by Cloudera Impala.
Learn More
Solutions
Industries
Learn about Cloudera use cases across several major industries.
Applications
Explore the leading end-to-end management application for Hadoop.
Partner Solutions
See our list of the best complementary solutions for Cloudera Enterprise available.
Search
Partners
Partner Listing
Explore the largest partner ecosystem developing, integrating and deploying technology on Hadoop.
Partner Program
Please login to access your Cloudera Connect Partner benefits, exclusive content, tools, training and more
Resources
Support
About
Management Team
Board
Investors
Events
Awards
Press Center
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 4 of 8
Careers
Contact Us
Overview
Cloudera Partner Portal
Getting Started Guide
Developer Portal
Cloudera Certified
Technology
Software Certification
Guide
Hardware Certification
Guide
Get Certified on CDH4
Enabling Metrics
Logging
Partner Events Calendar
Sales and Marketing
Resources
Last-Minute Cloudera
University Training Seats
and Discounts
Get Smart on CDH4 and
CM4
Toggle Fullscreen
Cloudera Partner Portal
Latest Release
Downloads
Learn Hadoop
Documentation
Get Support
Let us know!
dfs.class=org.apache.hadoop.metrics.file.FileContext
dfs.period=10
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 5 of 8
dfs.fileName=/tmp/dfsmetrics.log
mapred.class=org.apache.hadoop.metrics.file.FileContext
mapred.period=10
mapred.fileName=/tmp/mrmetrics.log
jvm.class=org.apache.hadoop.metrics.file.FileContext
jvm.period=10
jvm.fileName=/tmp/jvmmetrics.log
1.
2.
3.
4.
From the "All Services" management screen, click on the HDFS service, hdfs1 by default.
Click on the Configuration tab in the top navigation bar.
Click on the Advanced tab under the DataNode heading in the tree in the left panel.
Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
datanode.sink.file.filename=/tmp/datanode-metrics.out
5. Click on the Advanced tab under the NameNode heading in the tree in the left panel.
6. Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
namenode.sink.file.filename=/tmp/namenode-metrics.out
7.
8.
9.
10.
11.
12.
13.
From the Actions pulldown in the upper right, select Restart... and click the Restart button on the popup window.
Click the Close button. You don't need to wait for the operation to complete.
Click the Services link in the bread crumbs in the upper left.
Click on the MapReduce service, mapreduce1 by default.
Click on the Configuration tab in the top navigation bar.
Click on the Advanced tab under the JobTracker heading in the tree in the left panel.
Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
resourcemanager.sink.file.filename=/tmp/resourcemanager-metrics.out
14. Click on the Advanced tab under the TaskTracker heading in the tree in the left panel.
15. Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
nodemanager.sink.file.filename=/tmp/nodemanager-metrics.out
mrappmaster.sink.file.filename=/tmp/mrappmaster-metrics.out
16. From the Actions pulldown in the upper right, select Restart... and click the Restart button on the popup window.
17. After the operation completes, click the Close button.
18. Verify that the correct files are being written into the /tmp directory on the cluster nodes.
Certification testing requires the namenode-metrics.out, datanode-metrics.out, resourcemanager-metrics.out,
nodemanager-metrics.out, and mrappmaster-metrics.out for all nodes in the test cluster.
You must use at least Cloudera Manager 4.0.3. Prior to that update, these was a bug that prevented the
hadoop-metrics2.properties from being written properly.
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 6 of 8
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
*.period=10
namenode.sink.file.filename=/tmp/namenode-metrics.out
datanode.sink.file.filename=/tmp/datanode-metrics.out
resourcemanager.sink.file.filename=/tmp/resourcemanager-metrics.out
nodemanager.sink.file.filename=/tmp/nodemanager-metrics.out
mrappmaster.sink.file.filename=/tmp/mrappmaster-metrics.out
1.
2.
3.
4.
From the "All Services" management screen, click on the HDFS service, hdfs1 by default.
Click on the Configuration tab in the top navigation bar.
Click on the Advanced tab under the DataNode heading in the tree in the left panel.
Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
datanode.sink.file.filename=/tmp/datanode-metrics.out
5. Click on the Advanced tab under the NameNode heading in the tree in the left panel.
6. Locate the Hadoop Metrics2 Safety Valve field and enter the following into that field:
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
namenode.sink.file.filename=/tmp/namenode-metrics.out
7.
8.
9.
10.
11.
12.
13.
From the Actions pulldown in the upper right, select Restart... and click the Restart button on the popup window.
Click the Close button. You don't need to wait for the operation to complete.
Click the Services link in the bread crumbs in the upper left.
Click on the MapReduce service, mapreduce1 by default.
Click on the Configuration tab in the top navigation bar.
Click on the Advanced tab under the JobTracker heading in the tree in the left panel.
Locate the Hadoop Metrics Safety Valve field and enter the following into that field:
mapred.class=org.apache.hadoop.metrics.file.FileContext
mapred.period=10
mapred.fileName=/tmp/mrmetrics.log
jvm.class=org.apache.hadoop.metrics.file.FileContext
jvm.period=10
jvm.fileName=/tmp/jvmmetrics.log
14. Click on the Advanced tab under the TaskTracker heading in the tree in the left panel.
15. Locate the Hadoop Metrics Safety Valve field and enter the following into that field:
mapred.class=org.apache.hadoop.metrics.file.FileContext
mapred.period=10
mapred.fileName=/tmp/mrmetrics.log
jvm.class=org.apache.hadoop.metrics.file.FileContext
jvm.period=10
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 7 of 8
jvm.fileName=/tmp/jvmmetrics.log
16. From the Actions pulldown in the upper right, select Restart... and click the Restart button on the popup window.
17. After the operation completes, click the Close button.
18. Verify that the correct files are being written into the /tmp directory on the cluster nodes.
Certification requires the mrmetrics.log, jvmmetrics.log, namenode-metrics.out, and datanode-metrics.out for all nodes
in the test cluster.
You must use at least Cloudera Manager 4.0.3. Prior to that update, these was a bug that prevented the
hadoop-metrics2.properties from being written properly. Note that the hadoop-metrics.properties file is
handled correctly by earlier versions, so you may discover that the MapReduce metrics logs are being
written, but the HDFS metrics logs are not.
*.sink.file.class=org.apache.hadoop.metrics2.sink.FileSink
*.period=10
namenode.sink.file.filename=/tmp/namenode-metrics.out
datanode.sink.file.filename=/tmp/datanode-metrics.out
mapred.class=org.apache.hadoop.metrics.file.FileContext
mapred.period=10
mapred.fileName=/tmp/mrmetrics.log
jvm.class=org.apache.hadoop.metrics.file.FileContext
jvm.period=10
jvm.fileName=/tmp/jvmmetrics.log
Why Cloudera?
Hadoop & Big Data
Cloudera & Hadoop
Our Customers
FAQs
Blog
Products
Cloudera Enterprise Core
Cloudera Enterprise Free
Cloudera Manager
CDH
Latest Releases
All Downloads
Professional Services
Training
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013
Page 8 of 8
Solutions
For Your Industry
For Your Use Case
Partner Solutions
Partners
Resource Library
Support
About
Team
Events
Awards
Press Center
Careers
Contact Us
Follow us:Share:
LinkedIn
Twitter
Facebook
YouTube
Cloudera
Cloudera, Inc. 220 Portage Avenue Palo Alto, CA 94306
www.cloudera.com US: 1-888-789-1488 Intl: 1-650-362-0488
2012 Cloudera, Inc. All rights reservedTerms & ConditionsSite Map Hadoop and the Hadoop elephant logo are trademarks of the Apache Software Foundation.
https://ccp.cloudera.com/display/PARTNERS/Enabling+Metrics+Logging
4/10/2013