Hari Sekhon created RANGER-1872: ----------------------------------- Summary: Ranger PolicyRefresher Error: ClientHandlerException: A message body reader for Java class java.lang.String, and Java type class java.lang.String, and MIME media type application/octet-stream was not found Key: RANGER-1872 URL: https://issues.apache.org/jira/browse/RANGER-1872 Project: Ranger Issue Type: Bug Components: admin, plugins, Ranger Affects Versions: 0.7.0 Environment: HDP 2.6.1 deb on Ubuntu Trusty inside Docker container with Presto Ranger integration Reporter: Hari Sekhon Priority: Minor
I'm seeing the below error from Ranger client library from within some custom Presto Ranger integration code. It looks like Ranger is not returning as expected, perhaps because there is no new policy update? {code} presto_1 | 2017-11-03T13:46:57.185Z ERROR Thread-41 com.sun.jersey.api.client.ClientResponse A message body reader for Java class java.lang.String, and Java type class java.lang.String, and MIME media type application/octet-stream was not found presto_1 | 2017-11-03T13:46:57.185Z ERROR Thread-41 com.sun.jersey.api.client.ClientResponse The registered message body readers compatible with the MIME media type are: presto_1 | presto_1 | 2017-11-03T13:46:57.186Z INFO Thread-41 stdout 2017-11-03 13:46:57 ERROR PolicyRefresher:288 - PolicyRefresher(serviceName=hivedev): failed to refresh policies. Will continue to use last known version of policies (5) presto_1 | com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class java.lang.String, and Java type class java.lang.String, and MIME media type application/octet-stream was not found presto_1 | at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:561) presto_1 | at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:517) presto_1 | at org.apache.ranger.admin.client.datatype.RESTResponse.fromClientResponse(RESTResponse.java:96) presto_1 | at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:134) presto_1 | at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:264) presto_1 | at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:202) presto_1 | at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:171) {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)