Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Cloudera Licence details using CLI

avatar
Explorer

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

avatar
Mentor
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
}
}
}

View solution in original post

1 REPLY 1

avatar
Mentor
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
}
}
}