Community Articles
Find and share helpful community-sourced technical articles
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
New Contributor


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
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎06-02-2017 06:00 PM
Updated by:
Top Kudoed Authors