Member since
11-06-2015
44
Posts
9
Kudos Received
0
Solutions
03-15-2018
09:45 PM
That's correct @GN_Exp. If you want to do SLA in Knox via Ranger plugin then you'd need kerberos too.
... View more
10-05-2018
12:10 AM
1 Kudo
These seems to be bogus replay exception when running solr service. Changes hadoop-env.sh or solr JVM option with -Dsun.security.krb5.rcache=none should fix the problem. # # Extra Java runtime options. Empty by default.
export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true -Dsun.security.krb5.rcache=none ${HADOOP_OPTS}"
... View more
11-25-2017
05:50 PM
Hi vsuvagia, I checked the logs. it is successful call but still there is not data avaialable in the audit tab- access log. [25/Nov/2017:10:46:27 -0700] "GET /service/assets/accessAudit?XXXXX HTTP/1.1" 200 119 I enabled the Amabari-infra service for the ranger. Please find the screenshot. SJ.untitled.png
... View more
05-08-2018
02:31 AM
Thanks for this guide.. 🙂 ...Will this work on a HA setup?
... View more
03-20-2017
11:34 AM
2 Kudos
How to set up a Ranger enabled cluster using Ambari-blueprint.
In order to setup a cluster using Ambari blueprints we will need a minimum three node cluster. Lets say this cluster contains three hosts as below: simple-ranger-a.com simple-ranger-b.com simple-ranger-c.com
Pre-requisites: To setup a Ranger enabled cluster we need to install ambari-server on one of the hosts can be the called the gateway node let and ambari-agents should be installed on all the nodes.All the ambari-agents should be configured to point to the ambari-server on the gateway node. Note : The operating system used for this setup is Cent-OS. Lets consider the gateway node to be simple-ranger-a.com, to install ambari-server on this host we need to add ambari repository to the OS repositories. To update the OS repository we add ambari.repo file to /etc/yum.repos.d/ directory. Next we do a refresh of the OS repositories using command yum clean all Then we run the command yum install -y ambari-server ambari-agent, this will install both ambari-server and ambari-agent on the gateway host. Then we run ambari-server setup -s to setup ambari-server silently with default values, and ambari-server start to start the ambari-server To install ambari-agent on the all hosts we copy the ambari.repo file to each of the hosts /etc/yum.repos.d/ and do yum clean all and yum install -y ambari-agent. To make ambari-agent point to the ambari-server on the gateway node we run the command ambari-agent reset <FQDN of the gateway node> in this case we need to run ambari-agent reset simple-ranger-a.com on all hosts where agent is to be installed. We now need to setup the Ranger-database as it is a pre-requisite to install Ranger service, here is a nice document to configure Ranger with mysql, postgres or oracle , which can be referred to setup the database of choice. Now we will need to create the blueprints and run them on the Ambari server.you can use the below blueprints and modify accordingly. Save the attached hdp.txt and rename the .txt extention to .json Save the attached cluster.txt and rename the .txt extention to .json Save the attached blueprint.txt and rename the .txt extention to .json
After modifying the above jsons to use required repositories and hosts, we should now save the jsons on the gateway host. Now we can submit the blueprints to be processed on the ambari-server using below commands.
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d @<path to hdp.json> "http://<gateway-host>:8080/api/v1/stacks/HDP/versions/2.6/operating_systems/redhat6/repositories/HDP-2.6" curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d @<path to blueprint.json> "http://<gateway-host>:8080/api/v1/blueprints/myblueprint" curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d @<path to cluster.json> "http://<gateway-host>:8080/api/v1/clusters/myblueprint" On successful execution of above commands we get response message in below format: { "href" : "http://<gateway-host>:8080/api/v1/clusters/myblueprint/requests/1", "Requests" : { "id" : 1, "status" : "Accepted" } } We can now log-in to Ambari and check the background operations to see the components being installed and started on all the hosts.
... View more
Labels: