Support Questions
Find answers, ask questions, and share your expertise

Problem with Apache Ranger Kms

Highlighted

Problem with Apache Ranger Kms

Explorer
4 REPLIES 4
Highlighted

Re: Problem with Apache Ranger Kms

Expert Contributor

@Aitor Osa

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

Highlighted

Re: Problem with Apache Ranger Kms

Explorer

Apache Ranger is running , with HDFS, ZooKeeper and Ambari Metrics, and no one of them has warnings :s

Re: Problem with Apache Ranger Kms

Explorer
Highlighted

Re: Problem with Apache Ranger Kms

@Aitor Osa

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'.