RangerTagSync passwordchange not working
PROBLEM STATEMENT: I would like to change the default password for rangertagsync. According to the manual https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_command-line-installation/content/ch13s05s04.html
I should just run the python updatetagadminpassword.py after changing the password in ranger. However I get error as shown below -
ERROR:
[root@test ranger-tagsync]# pwd
/usr/hdp/current/ranger-tagsync
[root@test ranger-tagsync]# python updatetagadminpassword.py
2016-11-18 09:30:08,311 [E] Required file not found: [/usr/hdp/2.5.0.0-1245/ranger-tagsync/conf/ranger-tagsync-site.xml]
[root@test ranger-tagsync]#
Debugging Steps:
- From the above logs its clear that "ranger-tagsync-site.xml" is missing.But when check using "rpm -qa |grep tagsync" I see the rpm was installed
[root@thakur2 ranger-tagsync]# rpm -qa |grep tagsync
ranger_2_5_0_0_1245-tagsync-0.6.0.2.5.0.0-1245.el6.x86_64
2. Check the "rpm -ql" on package to make sure "ranger-tagsync-site.xml" comes from same package, but i didn't found "ranger-tagsync-site.xml"
[root@thakur2 ranger-tagsync]# rpm -ql ranger_2_5_0_0_1245-tagsync-0.6.0.2.5.0.0-1245.el6.x86_64 |grep xml
/usr/hdp/2.5.0.0-1245/etc/ranger/tagsync/conf.dist/log4j.xml
/usr/hdp/2.5.0.0-1245/ranger-tagsync/conf.dist/log4j.xml
/usr/hdp/2.5.0.0-1245/ranger-tagsync/templates/installprop2xml.properties
/usr/hdp/2.5.0.0-1245/ranger-tagsync/templates/ranger-tagsync-template.xml
3. Tried removing ranger-tagsync on test cluster and re-installed. From Ambari operations logs i see that while installation of Ranger Tagsync the file is auto generated and is not owned by any package. Check the below output -

RESOLUTION: Reinstalled "ranger_2_5_0_0_1245-tagsync" which resolved the issue. I was able to execute the password change script after reinstalling ranger-tagsync
[root@test ranger-tagsync]# python updatetagadminpassword.py
2016-11-18 09:48:22,774 [I] Using Java:/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
getting values from file : /usr/hdp/2.5.0.0-1245/ranger-tagsync/conf/ranger-tagsync-site.xml
Enter Destination NAME (Ranger/Atlas):

