-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/57849/
-----------------------------------------------------------
Review request for ranger, Madhan Neethiraj and Velmurugan Periasamy.
Bugs: RANGER-1472
https://issues.apache.org/jira/browse/RANGER-1472
Repository: ranger
Description
-------
Components fail to download tags from ranger-admin due to following error.
2017-03-22 12:16:48,576 [http-bio-6080-exec-26] INFO
org.apache.ranger.common.RESTErrorUtil (RESTErrorUtil.java:345) - Request
failed. loginId=hdfs, logMessage=NamedQuery of name:
XXServiceResourceElement.findTaggedResourcesInServiceId not found.
javax.ws.rs.WebApplicationException
at
org.apache.ranger.common.RESTErrorUtil.createRESTException(RESTErrorUtil.java:337)
at
org.apache.ranger.rest.TagREST.getSecureServiceTagsIfUpdated(TagREST.java:1225)
The root cause is incorrectly named JPA named queries.
Diffs
-----
security-admin/src/main/resources/META-INF/jpa_named_queries.xml 589f3cd
Diff: https://reviews.apache.org/r/57849/diff/1/
Testing
-------
Tested with live cluster with tag optimizations turned off. Tag downloads
succeeded without errors.
Thanks,
Abhay Kulkarni