Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

hive server2 interactive error ERROR [Thread-9] util.PolicyRefresher: PolicyRefresher(serviceName={{repo_name}}): failed to refresh policies. Will continue to use last known version of policies (-1)

avatar
Explorer

 

i just install hive llap anda the problem is in log hive-server2-interactive.err 

```

ERROR [Thread-9] util.PolicyRefresher: PolicyRefresher(serviceName={{repo_name}}): failed to refresh policies. Will continue to use last known version of policies (-1)
java.lang.IllegalArgumentException: Illegal character in path at index 35: /service/plugins/policies/download/{{repo_name}}
at java.net.URI.create(URI.java:852)
at com.sun.jersey.api.client.Client.resource(Client.java:434)
at org.apache.ranger.plugin.util.RangerRESTClient.getResource(RangerRESTClient.java:156)
at org.apache.ranger.admin.client.RangerAdminRESTClient.createWebResource(RangerAdminRESTClient.java:275)
at org.apache.ranger.admin.client.RangerAdminRESTClient.getServicePoliciesIfUpdated(RangerAdminRESTClient.java:126)
at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicyfromPolicyAdmin(PolicyRefresher.java:264)
at org.apache.ranger.plugin.util.PolicyRefresher.loadPolicy(PolicyRefresher.java:202)
at org.apache.ranger.plugin.util.PolicyRefresher.run(PolicyRefresher.java:171)
Caused by: java.net.URISyntaxException: Illegal character in path at index 35: /service/plugins/policies/download/{{repo_name}}
at java.net.URI$Parser.fail(URI.java:2845)
at java.net.URI$Parser.checkChars(URI.java:3018)
at java.net.URI$Parser.parseHierarchical(URI.java:3102)
at java.net.URI$Parser.parse(URI.java:3060)
at java.net.URI.<init>(URI.java:588)
at java.net.URI.create(URI.java:850)
... 7 more

```

and in task log accour error 

}
WARN cli.LlapStatusServiceDriver: Watch timeout 600s exhausted before desired state RUNNING is attained.
2022-12-20 09:51:42,858 - LLAP app 'llap0' current state is LAUNCHING.
2022-12-20 09:51:42,858 - LLAP app 'llap0' current state is LAUNCHING.
2022-12-20 09:51:42,858 - LLAP app 'llap0' deployment unsuccessful.

Command failed after 1 tries

anybody can help me?  

2 REPLIES 2

avatar
Master Collaborator

@myzard Can you check ranger url in hive configs(ranger.plugin.hive.policy.rest.url) make sure their is not space or special characters

avatar
Explorer

myzard_0-1671591697209.png

nothing just url to ranger in master 1