Reply
Contributor
Posts: 34
Registered: ‎08-12-2014

Cannot Access API

Greetings,

 

We have several clusters, and there is one where I cannot access the API.  For example, if I go to:

 

https://<hostname>:7183/api/v19/hosts

 

I get this:

 

No webpage was found for the web address: https://<hostname>:7183/api/v19/hosts

HTTP ERROR 404
 
Is there an option to enable the API?  I have not found documentation about it.
 
Michael Reynolds
 
Highlighted
Explorer
Posts: 14
Registered: ‎05-21-2018

Re: Cannot Access API

You should be able to access it via HTTP on port 7180 (using basic auth).

 

I'm not sure if HTTPS is available at all.  Is 7183 supposed to be for HTTPS?

 

You will find API help in the Manager... upper right> Support > API Documentation / API Explorer.   This is on 6.0.  Not sure about other version.

Master
Posts: 430
Registered: ‎07-01-2015

Re: Cannot Access API

Are you sure you have enabled TLS? Try http:// xx 7180
Contributor
Posts: 34
Registered: ‎08-12-2014

Re: Cannot Access API

I found what's going on.  The cluster for which I could not access the API is using V17, while the others are V19, even though all CDH versions are all 5.12.x.  After changing V19 to V17 in the URL, I can now access the API.  I wonder why the version is different.

 

Michael Reynolds

 

Posts: 1,047
Topics: 1
Kudos: 263
Solutions: 131
Registered: ‎04-22-2014

Re: Cannot Access API

@Urantian,

 

CDH version does not impact the Cloudera Manager version level; rather, it is the Cloudera Manager version that dictates what API versions are available.  To view your CM version, in CM, navigate to Support --> About

The pop-up window will show you what version of CM you have.

 

It sounds as if one of your clusters may have a more recent version of Cloudera Manager but an older version of CDH (which is fine).

Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.