Support Questions

Find answers, ask questions, and share your expertise

Ranger web ui unavailable with errorcode 404

avatar

After upgrade hdp from 2.4.2.0 to 2.6.1.0,ranger web ui become unavailble.The new ranger admin installed on other machines is accessible. Is it because of conflict with the previous version?Thanks in advance.


ERROR in xa_portal.log:


ERROR org.springframework.web.context.ContextLoader (ContextLoader.java:331) - Context initialization failed

org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'loggingDataSource' defined in ServletContext resource [/META-INF/applicationContext.xml]: C

ould not resolve placeholder 'ranger.jpa.audit.jdbc.url' in string value "${ranger.jpa.audit.jdbc.url}"; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder

'ranger.jpa.audit.jdbc.url' in string value "${ranger.jpa.audit.jdbc.url}"

3 REPLIES 3

avatar
Master Mentor

@Joe

There is a behaviour change documented from ranger perspective when the HDP upgrade happens from HDP 2.4 to HDP 2.5 (you have upgraded to HDP 2.6) so you must refer to this:


Release Notes: (HDP 2.5 Behavior Change)

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_release-notes/content/behavior_changes.h...


Scenario: Ranger Audits users who are currently using Audit to DB must migrate to Audit to Solr.

Previous Behavior: Ranger Audit can be configured to go with any of the following destinations: DB, SOLR, and HDFS.

New Behavior: Ranger Audit can no longer be configured to the destination DB. Ranger Audit can only be configured to go with the following destinations: SOLR and HDFS.

During upgrade to HDP 2.5, If you have not enabled ranger-audit to SOLR, then you will have to configure audit to Solr post-upgrade. Otherwise, you will not see audit activities in Ranger UI. You can either use an externally managed Solr or Ambari managed Solr. For details on configuring these, refer to the Solr Audit configuration section in installation guide.


https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_security/content/migrating_audit_logs_fr...

.

avatar

Thank you very much for your reply. The problem we encountered was that ranger web ui of http://ranger-admin-host:6080/login.jsp could not be accessed. The error code returned was 404. It seems to have nothing to do with ranger audit.

avatar

We didn't enable audit to solr or db,only audit to hdfs.The problem seems to be related to catalina.