Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Cloudera Licence details using CLI
Labels:
- Labels:
-
Cloudera Manager
Explorer
Created ‎03-26-2018 03:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi There,
I want to know that there is any mechanism to find Cloudera licence details through Command Line without logging into GUI. If I have all servers access with FA.
1 ACCEPTED SOLUTION
Mentor
Created ‎03-26-2018 06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure what 'FA' means in this context, but CM APIs offer license information via the following REST end-points:
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_license.html
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_licensedFeatureUsage.html
An example query:
# For licensee details and UIDs:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/license
…
{
"owner" : "Licensee Name",
"uuid" : "12345678-abcd-1234-abcd-1234abcd1234"
}
# For license usage details:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/licensedFeatureUsage
…
{
"totals" : {
"Core" : 8,
"HBase" : 8,
"Impala" : 8,
"Search" : 5,
"Spark" : 3,
"Accumulo" : 4,
"Navigator" : 8
},
"clusters" : {
"Cluster 1" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 4,
"Spark" : 2,
"Accumulo" : 4,
"Navigator" : 4
},
"Cluster 2" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 1,
"Spark" : 1,
"Accumulo" : 0,
"Navigator" : 4
}
}
}
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_license.html
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_licensedFeatureUsage.html
An example query:
# For licensee details and UIDs:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/license
…
{
"owner" : "Licensee Name",
"uuid" : "12345678-abcd-1234-abcd-1234abcd1234"
}
# For license usage details:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/licensedFeatureUsage
…
{
"totals" : {
"Core" : 8,
"HBase" : 8,
"Impala" : 8,
"Search" : 5,
"Spark" : 3,
"Accumulo" : 4,
"Navigator" : 8
},
"clusters" : {
"Cluster 1" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 4,
"Spark" : 2,
"Accumulo" : 4,
"Navigator" : 4
},
"Cluster 2" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 1,
"Spark" : 1,
"Accumulo" : 0,
"Navigator" : 4
}
}
}
1 REPLY 1
Mentor
Created ‎03-26-2018 06:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure what 'FA' means in this context, but CM APIs offer license information via the following REST end-points:
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_license.html
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_licensedFeatureUsage.html
An example query:
# For licensee details and UIDs:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/license
…
{
"owner" : "Licensee Name",
"uuid" : "12345678-abcd-1234-abcd-1234abcd1234"
}
# For license usage details:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/licensedFeatureUsage
…
{
"totals" : {
"Core" : 8,
"HBase" : 8,
"Impala" : 8,
"Search" : 5,
"Spark" : 3,
"Accumulo" : 4,
"Navigator" : 8
},
"clusters" : {
"Cluster 1" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 4,
"Spark" : 2,
"Accumulo" : 4,
"Navigator" : 4
},
"Cluster 2" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 1,
"Spark" : 1,
"Accumulo" : 0,
"Navigator" : 4
}
}
}
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_license.html
http://cloudera.github.io/cm_api/apidocs/v18/path__cm_licensedFeatureUsage.html
An example query:
# For licensee details and UIDs:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/license
…
{
"owner" : "Licensee Name",
"uuid" : "12345678-abcd-1234-abcd-1234abcd1234"
}
# For license usage details:
~> curl -u admin http://cm-hostname.organization.com:7180/api/v18/cm/licensedFeatureUsage
…
{
"totals" : {
"Core" : 8,
"HBase" : 8,
"Impala" : 8,
"Search" : 5,
"Spark" : 3,
"Accumulo" : 4,
"Navigator" : 8
},
"clusters" : {
"Cluster 1" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 4,
"Spark" : 2,
"Accumulo" : 4,
"Navigator" : 4
},
"Cluster 2" : {
"Core" : 4,
"HBase" : 4,
"Impala" : 4,
"Search" : 1,
"Spark" : 1,
"Accumulo" : 0,
"Navigator" : 4
}
}
}
