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, 2020 in Apache Spark by Shilpa S
• 450 points
1,325 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 29, 2020 by MD
• 95,460 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,220 points
2,966 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
8,367 views
0 votes
1 answer

if i want to see my public key after running cat <path> command in gitbash but saying no such file or directory.

Hey, @KK, You can fix this issue may be ...READ MORE

answered May 26, 2020 in Apache Spark by Gitika
• 65,770 points
855 views
+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
• 11,380 points
11,028 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
• 11,380 points
2,535 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,830 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,350 points
4,611 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,460 points
935 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,370 points
2,918 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP