The last line of your stederr states that Ranger service is not started on the host. Do you have your Ranger service running?
File "/var/lib/ambari-agent/cache/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py", line 274, in enable_kms_plugin raise Fail('Ranger service is not started on given host') resource_management.core.exceptions.Fail: Ranger service is not started on given host
You can view the status / start / stop services from Ambari directly
Can you please check value for below properties -
-- 'ranger.externalurl' in 'ranger-admin-site.xml' -- 'ranger.service.host' in 'ranger-kms-site.xml' The value of 'ranger.externalurl' needs to include 'http://'. For example, 'http://ranger.admin.url:6080'.
While the value of 'ranger.service.host' needs to exclude 'http://'. For example, 'ranger.admin.url:6080'.