Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
Cloudera Employee


Bundle capture will fail with the following error found in the hst-agent.log, during the anonymization process:

ERROR - Execution of script /usr/jdk64/jdk1.7.0_67/bin/java -Xmx2048m
-Xms1024m -cp :/etc/hst/conf/:/usr/hdp/share/hst/hst-common/lib/* com.hortonworks.smartsense.anonymization.Main -m /var/lib/smartsense/hst-agent/data/tmp/ -c /etc/hst/conf/hst-agent.ini failed 

ERROR - Execution of command returned 1. 

Exception in thread "main" java.lang.NullPointerException at
com.hortonworks.smartsense.anonymization.rules.RuleType.from( at
com.hortonworks.smartsense.anonymization.Main.start( at

ERROR - Anonymization failed. Please check logs. Traceback (most recent call last): 
File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/command/",
line 56, in execute  
context['bundle_dir'] = anonymizer.anonymize(bundle_dir)  
File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/",
line 64, in anonymize  
raise Exception("Anonymization failed.") Exception: Anonymization failed.


During the SmartSense HST upgrade process, the anonymization-rules.json file will be modified. This error typically indicates that the process of updating/modifying the anonymization-rules.json file somehow failed to complete successfully.


This exception occurs when the /etc/hst/conf/anonymization-rules.json file does not update as expected during the upgrade process. To correct this you must first replace the anonymization-rules.json with the valid base version and then re-add any customizations that you had prior to the upgrade.

Administrators can extract a valid version of the anonymization-rules.json from the RPM using the rpm2cpio utility in Linux or Mac. The extracted file should then be manually copied out to /etc/hst/conf/anonymization-rules.json on the server where the HST server is installed. Once this has been done, you can then re-add any customizations that you had prior to the upgrade via the UI.

0 Kudos
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎06-02-2017 06:00 PM
Updated by:
Top Kudoed Authors