Community Articles

Find and share helpful community-sourced technical articles.
Celebrating as our community reaches 100,000 members! Thank you!

For HDFS analysis, an Activity Analyzer needs to be deployed to each NameNode in the cluster. These instances will automatically begin processing the fsimage on startup and will reprocess the latest fsimage data once every 24 hours. By default, when deployed on a NameNode, these Activity Analyzers do not process YARN, or MapReduce & Tez utilization data; This is to reduce the amount of processing done on servers hosting critical services like the NameNode.

Unless we install analyzer on namenode, it will not be able to find fsimage in directory and hence fail with below error

2018-08-23 14:28:04,401 ERROR [pool-3-thread-1] ActivityManager:78 - Failed to process activity id null of type HDFS
        at com.hortonworks.smartsense.activity.hdfs.HDFSImageProcessor.processActivity(
        at com.hortonworks.smartsense.activity.ActivityManager$
        at com.hortonworks.smartsense.activity.ActivityManager$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
2018-08-23 14:28:04,403  INFO [Thread-3] ActivityManager:172 - Shutting down activity manager...
2018-08-23 14:28:04,425  WARN [Thread-6] HeapMemorySizeUtil:55 - is deprecated by - Failed to process activity id null of type HDFSShutting down activity

Solution - Install activity analyzer on both the namenodes

0 Kudos