You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Fay Wang <fa...@yahoo.com> on 2016/04/21 15:43:59 UTC
question on kerberos
Hi,
After kerberization, is there any way to kerberos csv file from ambari server? I tried the following command, but got an error :-(
wget http://ambari-server-host:8080/resources/kerberos.csv -O /tmp/kerberos.csv
HTTP request sent, awaiting response... 404 Not Found
2016-04-21 13:29:51 ERROR 404: Not Found.
-fay
Re: question on kerberos
Posted by Fay Wang <fa...@yahoo.com>.
Nice! It works! Thank u so much!
-f
On Thursday, April 21, 2016 9:23 AM, Robert Levas <rl...@hortonworks.com> wrote:
Hey Fay…
Try putting the URL in quotes:
curl -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET "http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*&format=CSV"
Rob
From: Fay Wang <fa...@yahoo.com>
Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>, Fay Wang <fa...@yahoo.com>
Date: Thursday, April 21, 2016 at 12:21 PM
To: "user@ambari.apache.org" <us...@ambari.apache.org>
Subject: Re: question on kerberos
Thank, Rob!I tried this command but the result is in json format :-(
curl -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GEThttp://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*&format=CSV
At the end, the following is shown:
[1]+ Done curl -k -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GEThttp://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*
It seems that format=csv is not taken into account. Do I miss anything?
-f
On Thursday, April 21, 2016 7:12 AM, Robert Levas <rl...@hortonworks.com> wrote:
Hi Fay…
The API call you want to use to get the details about the expected Kerberos identities is
GET /api/v1/clusters/c1/kerberos_identities?fields=*
By default this will give you a JSON formatted file of the data. If you appendformat=CSV to the query, Ambari will provide the data in a CSV format:
GET /api/v1/clusters/c1/kerberos_identities?fields=*&format=CSV
You can see https://issues.apache.org/jira/browse/AMBARI-10576 for some examples.
I suppose I should probably add this to https://cwiki.apache.org/confluence/display/AMBARI/Automated+Kerberizaton
Rob
From: Fay Wang <fa...@yahoo.com>
Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>, Fay Wang <fa...@yahoo.com>
Date: Thursday, April 21, 2016 at 9:43 AM
To: "user@ambari.apache.org" <us...@ambari.apache.org>
Subject: question on kerberos
Hi,
After kerberization, is there any way to kerberos csv file from ambari server? I tried the following command, but got an error :-(
wget http://ambari-server-host:8080/resources/kerberos.csv -O /tmp/kerberos.csv
HTTP request sent, awaiting response... 404 Not Found
2016-04-21 13:29:51 ERROR 404: Not Found.
-fay
Re: question on kerberos
Posted by Robert Levas <rl...@hortonworks.com>.
Hey Fay…
Try putting the URL in quotes:
curl -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET "http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*&format=CSV"
Rob
From: Fay Wang <fa...@yahoo.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>, Fay Wang <fa...@yahoo.com>>
Date: Thursday, April 21, 2016 at 12:21 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: Re: question on kerberos
Thank, Rob!
I tried this command but the result is in json format :-(
curl -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*&format=CSV
At the end, the following is shown:
[1]+ Done curl -k -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*
It seems that format=csv is not taken into account. Do I miss anything?
-f
On Thursday, April 21, 2016 7:12 AM, Robert Levas <rl...@hortonworks.com>> wrote:
Hi Fay…
The API call you want to use to get the details about the expected Kerberos identities is
GET /api/v1/clusters/c1/kerberos_identities?fields=*
By default this will give you a JSON formatted file of the data. If you append format=CSV to the query, Ambari will provide the data in a CSV format:
GET /api/v1/clusters/c1/kerberos_identities?fields=*&format=CSV
You can see https://issues.apache.org/jira/browse/AMBARI-10576 for some examples.
I suppose I should probably add this to https://cwiki.apache.org/confluence/display/AMBARI/Automated+Kerberizaton
Rob
From: Fay Wang <fa...@yahoo.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>, Fay Wang <fa...@yahoo.com>>
Date: Thursday, April 21, 2016 at 9:43 AM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: question on kerberos
Hi,
After kerberization, is there any way to kerberos csv file from ambari server? I tried the following command, but got an error :-(
wget http://ambari-server-host:8080/resources/kerberos.csv -O /tmp/kerberos.csv
HTTP request sent, awaiting response... 404 Not Found
2016-04-21 13:29:51 ERROR 404: Not Found.
-fay
Re: question on kerberos
Posted by Fay Wang <fa...@yahoo.com>.
Thank, Rob!I tried this command but the result is in json format :-(
curl -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*&format=CSV
At the end, the following is shown:
[1]+ Done curl -k -H "X-Requested-By:ambari" -u admin:passw0rd -i -X GET http://localhost:8081/api/v1/clusters/MyCluster/kerberos_identities?fields=*
It seems that format=csv is not taken into account. Do I miss anything?
-f
On Thursday, April 21, 2016 7:12 AM, Robert Levas <rl...@hortonworks.com> wrote:
Hi Fay…
The API call you want to use to get the details about the expected Kerberos identities is
GET /api/v1/clusters/c1/kerberos_identities?fields=*
By default this will give you a JSON formatted file of the data. If you appendformat=CSV to the query, Ambari will provide the data in a CSV format:
GET /api/v1/clusters/c1/kerberos_identities?fields=*&format=CSV
You can see https://issues.apache.org/jira/browse/AMBARI-10576 for some examples.
I suppose I should probably add this to https://cwiki.apache.org/confluence/display/AMBARI/Automated+Kerberizaton
Rob
From: Fay Wang <fa...@yahoo.com>
Reply-To: "user@ambari.apache.org" <us...@ambari.apache.org>, Fay Wang <fa...@yahoo.com>
Date: Thursday, April 21, 2016 at 9:43 AM
To: "user@ambari.apache.org" <us...@ambari.apache.org>
Subject: question on kerberos
Hi,
After kerberization, is there any way to kerberos csv file from ambari server? I tried the following command, but got an error :-(
wget http://ambari-server-host:8080/resources/kerberos.csv -O /tmp/kerberos.csv
HTTP request sent, awaiting response... 404 Not Found
2016-04-21 13:29:51 ERROR 404: Not Found.
-fay
Re: question on kerberos
Posted by Robert Levas <rl...@hortonworks.com>.
Hi Fay…
The API call you want to use to get the details about the expected Kerberos identities is
GET /api/v1/clusters/c1/kerberos_identities?fields=*
By default this will give you a JSON formatted file of the data. If you append format=CSV to the query, Ambari will provide the data in a CSV format:
GET /api/v1/clusters/c1/kerberos_identities?fields=*&format=CSV
You can see https://issues.apache.org/jira/browse/AMBARI-10576 for some examples.
I suppose I should probably add this to https://cwiki.apache.org/confluence/display/AMBARI/Automated+Kerberizaton
Rob
From: Fay Wang <fa...@yahoo.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>, Fay Wang <fa...@yahoo.com>>
Date: Thursday, April 21, 2016 at 9:43 AM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: question on kerberos
Hi,
After kerberization, is there any way to kerberos csv file from ambari server? I tried the following command, but got an error :-(
wget http://ambari-server-host:8080/resources/kerberos.csv -O /tmp/kerberos.csv
HTTP request sent, awaiting response... 404 Not Found
2016-04-21 13:29:51 ERROR 404: Not Found.
-fay