Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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