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.

Ranger Policy Report

Ranger Policy Report

New Contributor

If we try to create report on the policy name and download as Excel/CSV – we get the following error. Any thoughts?

image001.png

image002.png

3 REPLIES 3

Re: Ranger Policy Report

New Contributor

Is there anything in the xa_portal.log for ranger that might give further clues? You might attach it here for review.

Highlighted

Re: Ranger Policy Report

Contributor

Hi @skothari, I tried your exact scenario in Firefox, both through UI and API call and worked fine for me.

Can you open any browser and login to Ranger UI using the url in your error, like, http://<Ranger host>:<Ranger port>. Then in another tab, give the exact url that's given in your error.

http://<Ranger internal hostname>:6080/service/plugins/policies/downloadExcel?policyNamePartial=VLS_CC_267_ACCESS_1&policyType=0&serviceType=hive

What do you get?

Also can you try the scenario once more through Ranger UI and observe what happens in Ranger log that is located at /var/log/ranger/admin/xa_portal.log?

Re: Ranger Policy Report

Contributor

to download a csv

curl --header "application/xml" -H "Content-Type: text/x-csv" -o Ranger_Policies.csv -u user:pass "http://rangerAdminServer:6080/service/plugins/policies/csv?&serviceType="

Don't have an account?
Coming from Hortonworks? Activate your account here