Ranger KMS - Curl command

0 votes

Hi Team,

I was trying to hit the API of ranger kms  using below command I am getting error as 401 authorized .But I am sure password and username whatever I am passing is ryt  .Please let me knw whats the issue curl -v -u  "username:passwrod" http://localhost:9292/kms

[kms]$ * About to connect() to localhost port 9292 (#0)

*   Trying 127.0.0.1...

* Connected to localhost (127.0.0.1) port 9292 (#0)

* Server auth using Basic with user 'admin'

> GET /kms/v1/?op=GETDELEGATIONTOKEN HTTP/1.1

> Authorization: Basic> User-Agent: curl/7.29.0

> Host: localhost:9292

> Accept: */*

>

< HTTP/1.1 401 Unauthorized

< Server: Apache-Coyote/1.1

< WWW-Authenticate: Negotiate

< Content-Length: 0

< Date: Mon, 28 Sep 2020 11:48:36 GMT

curl -v -u  "username:passwrod" http://localhost:9292/kms

Sep 28 in Apache Spark by Shilpa S
• 270 points
38 views

1 answer to this question.

0 votes

Hi@Shllpa,

In general, we get the 401 status code because it lacks valid authentication credentials for the target resource. Also, check the connectivity. You can also reset your password. You can also check the firewall if it is not allowing.

answered Sep 28 by MD
• 64,820 points

Related Questions In Apache Spark

0 votes
1 answer

Unresolved dependency issue on sbt package command

Check if you are able to access ...READ MORE

answered Jan 3, 2019 in Apache Spark by Omkar
• 69,030 points
660 views
0 votes
1 answer

What does the command df.registerTempTable() do?

df.registerTempTable(“airports”) This command is used to register ...READ MORE

answered Jul 14, 2019 in Apache Spark by James
3,080 views
0 votes
1 answer
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
6,062 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,950 points
924 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
38,905 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,320 points
2,274 views
+2 votes
2 answers
0 votes
1 answer

Issue to run curl command in windows 7 Docker Quickstart Terminal

Actually, the issue is more likely that ...READ MORE

answered Jun 27, 2018 in Blockchain by aryya
• 7,380 points
140 views
0 votes
1 answer

Error while running curl command in Docker Quickstart Terminal

You can get the new version of ...READ MORE

answered Jul 12, 2018 in Blockchain by slayer
• 29,300 points
922 views