ranger-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stromas, Aaron" <aaron.stro...@rsa.com>
Subject Re: Cannot create policy, getting 404
Date Tue, 19 Jul 2016 18:09:02 GMT
I  should have checked the logs before posting – I had an error in content.

Best regards,

-Aaron

—
Aaron Stromas  |  RSA  The Security Division of EMC | Practice Consultant  |  Identity &
Fraud Protection Practice |  M +1 240 271 64 58 |

From: Corporate User <aaron.stromas@rsa.com<mailto:aaron.stromas@rsa.com>>
Reply-To: "user@ranger.incubator.apache.org<mailto:user@ranger.incubator.apache.org>"
<user@ranger.incubator.apache.org<mailto:user@ranger.incubator.apache.org>>
Date: Tuesday, July 19, 2016 at 2:06 PM
To: "user@ranger.incubator.apache.org<mailto:user@ranger.incubator.apache.org>" <user@ranger.incubator.apache.org<mailto:user@ranger.incubator.apache.org>>
Subject: Cannot create policy, getting 404

Greetings,

I am familiarizing myself with Apache Ranger, as I am starting an project that will use Ranger
REST API, so I’m trying various API calls, and I am having a problem with the create policy
request. Any suggestions what I am doing wrong? TIA.
I’m using Ranger version 0.5.0.2.4.0.0-169

curl -iv -u <admin-user>>:<admin-password>  -H "Content-Type: application/json"
-d @hdfs-create-policy.payload -X POST http://<ranger-host>:6080/service/public/v2/api/policy
* About to connect() to 192.168.26.111 port 6080 (#0)
*   Trying 192.168.26.111... connected
* Connected to 192.168.26.111 (192.168.26.111) port 6080 (#0)
* Server auth using Basic with user 'admin'
> POST /service/public/api/policy HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.19.7 (x86_64-suse-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8j zlib/1.2.7
libidn/1.10
> Host: 192.168.26.111:6080
> Accept: */*
> Content-Type: application/json
> Content-Length: 677
>
< HTTP/1.1 404 Not Found
HTTP/1.1 404 Not Found
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=41171E333DB1E48A0AD0CBFC088DB033; Path=/; HttpOnly
Set-Cookie: JSESSIONID=41171E333DB1E48A0AD0CBFC088DB033; Path=/; HttpOnly
< X-Frame-Options: DENY
X-Frame-Options: DENY
< Content-Length: 0
Content-Length: 0
< Date: Tue, 19 Jul 2016 15:01:30 GMT
Date: Tue, 19 Jul 2016 15:01:30 GMT

Best regards,

-Aaron

—
Aaron Stromas  |  RSA  The Security Division of EMC | Practice Consultant  |  Identity &
Fraud Protection Practice |  M +1 240 271 64 58 |

Mime
View raw message