Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Not able to access Ranger Admin UI

Not able to access Ranger Admin UI

New Contributor

Hi ,

I am not able to access the Ranger Admin UI from Ranger--> Quick links

Can you please suggest what log file i should check and work around for it .

Ranger version we are using is Ranger 0.5.0.2.4

Thanks

JJ

7 REPLIES 7

Re: Not able to access Ranger Admin UI

@Jacqualin jasmin

Is Ambari shows service is UP?You can look at /var/log/ranger/admin/xa_portal.log file for errors. also check whether service is listening on that port.

Re: Not able to access Ranger Admin UI

New Contributor

Hi ,

it says : node1.finity.com refused to connect.

when i checked the process and netstat and lsof it show below results :

[ranger@node1 bin]$ ps -ef|grep -i ranger

root 5974 14338 0 21:04 pts/2 00:00:00 su - ranger

ranger 5975 5974 0 21:04 pts/2 00:00:00 -bash

ranger 12223 1 0 03:31 ? 00:01:50 java -Dproc_rangeradmin -XX:MaxPermSize=256m -Xmx1024m -Xms1024m -Dlogdir=/usr/hdp/2.4.2.0-258/ranger-admin/ews/logs/ -Dcatalina.base=/usr/hdp/2.4.2.0-258/ranger-admin/ews -cp /usr/hdp/2.4.2.0-258/ranger-admin/ews/webapp/WEB-INF/classes/conf:/usr/hdp/2.4.2.0-258/ranger-admin/ews/lib/*:/usr/hdp/2.4.2.0-258/ranger-admin/ews/ranger_jaas/*:/usr/hdp/2.4.2.0-258/ranger-admin/ews/webapp/WEB-INF/classes/conf/ranger_jaas:/usr/lib/jvm/jre-1.8.0/lib/*: org.apache.ranger.server.tomcat.EmbeddedServer

ranger 12457 1 0 03:31 ? 00:00:42 java -Dproc_rangerusersync -Dlog4j.configuration=file:/etc/ranger/usersync/conf/log4j.xml -Dlogdir=/var/log/ranger/usersync -cp /usr/hdp/2.4.2.0-258/ranger-usersync/dist/*:/usr/hdp/2.4.2.0-258/ranger-usersync/lib/*:/usr/hdp/2.4.2.0-258/ranger-usersync/conf org.apache.ranger.authentication.UnixAuthenticationService -enableUnixAuth

ranger 15216 5975 0 21:17 pts/2 00:00:00 ps -ef

ranger 15217 5975 0 21:17 pts/2 00:00:00 grep --color=auto -i ranger

[ranger@node1 bin]$ netstat -a | grep 6080

tcp6 0 0 [::]:6080 [::]:* LISTEN

tcp6 0 0 node1.:6080 node1:38894 TIME_WAIT

tcp6 0 0 snode1.:6080 node1:38898 TIME_WAIT

[ranger@node1 bin]$ lsof -i :6080 -S

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME

java 12223 ranger 18u IPv6 199416 0t0 TCP *:6080 (LISTEN)

****************

your help is needed further

Thanks

JJ

Re: Not able to access Ranger Admin UI

@Jacqualin jasmin

can you check if iptables are running in the host- you can try "service iptables stop" and then see.

Re: Not able to access Ranger Admin UI

New Contributor

You can access ranger logs in this directory :

- /opt/hadoop/log/ranger/admin

- /opt/hadoop/log/ranger/usersync

Re: Not able to access Ranger Admin UI

New Contributor

Hi ,

Thank you very much for your suggestion. Now the issue got resolved. This was related to port open issue.

Thanks

JJ

Re: Not able to access Ranger Admin UI

Mentor

Please select the best answer, from your comments, it is not clear who'd helped you the most

Re: Not able to access Ranger Admin UI

Expert Contributor

@Jacqualin jasmin check that in Ambari the quick link what is the hostname it is used. If the hostname is not in your dns lookup /etc/host config in OS you might need to configure it to get the hostname resolved to correct IP and viceversa