Modifying the Hadoop/hdfs log level

Source: Internet
Author: User

Describe:

If A large directory is deleted and Namenode was immediately restarted, there is a lot of blocks that does not belong to any File. This results in a log:

2014-11-08 03:11:45,584 INFO Blockstatechange (BlockManager.java:processReport (1901))-block* Processreport:blk_ 1074250282_509532 on 172.31.44.17:1019 size 6 does no belong to any file.

This log is printed within Fsnamsystem lock. This can cause Namenode to take a long time in coming out of SafeMode.

One solution is to downgrade the logging level.

Solution Solutions

Tail-f/var/log/hadoop/hdfs/hdfs-namenode.log

Http://<namenode:50070>/logLevel

Input "Blockstatechange" and "WARN" and "click" Set Log Level "button

Wait up to mins. It works and performance is fine.


This article is from the "Han Lei" blog, make sure to keep this source http://deararvin.blog.51cto.com/11158301/1742542

Modifying the Hadoop/hdfs log level

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.