Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

unable to join Amabari server to cluster

Solved Go to solution
Highlighted

Re: unable to join Amabari server to cluster

New Contributor

Hi Jay, thansk for help , uncertain what asked last , want this output again? attached.hosts-2.json

Re: unable to join Amabari server to cluster

Super Mentor

attached file is corrupted.

Re: unable to join Amabari server to cluster

New Contributor

another host3.json

hosts3.json

Re: unable to join Amabari server to cluster

Super Mentor

@Tom Burke

Please change the protocol to "https" in your case if you are using https for your ambari and then try this:

# curl -k -H "X-Requested-By: ambari" -u admin:admin "https://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name" -o "/tmp/hosts.json"

.

Or atleast try to open the URL in the browser to see if it is working for you before trying with the Curl command and then once you knwo that the file which you are attaching is of any use or not then you can attach it

https://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name

Re: unable to join Amabari server to cluster

New Contributor

forgot about SSL, my bad...

OK I get output in browser test , here is the file from that.

hosts4.json

Re: unable to join Amabari server to cluster

New Contributor

will try to send again , seems not to have worked last time.... hosts4 i verified output fist in browser. forgot about the ssl , my bad..hosts4.json

Re: unable to join Amabari server to cluster

New Contributor

ok I may have to break for the day. I am getting like 10 capcha tests to verify with every post :(

Re: unable to join Amabari server to cluster

New Contributor

problem seems to be with this two-hosted DNS domain.....what if instead of using the ambari.example.com we use the corp.example.com all around with other hosts... so change their fqdn to ambari.corp.example.com, cpmpute1.corp.example.com I feel like spinning wheels trying to get it to work wiht short name,

Re: unable to join Amabari server to cluster

Super Mentor

@Tom Burke

Are you really checking what kind of command aere you executing in curl and what does every curl argument means?

Before attaching the "hosts4.json" if you would have just checked the content of this file then you would know that the credentials which you are entering in curl command are Wrong ambari admin credential.

# cat hosts4.json 
{
  "status": 403,
  "message": "Unable to sign in. Invalid username/password combination."
}

.

As i do not know your ambari admin credentials hence i just gave you a dummy curl command and expected that you will change the values according to your cluster.

Re: unable to join Amabari server to cluster

New Contributor

abandoning this effort. was not getting anywhere as I think the ldaps in corp.example.com and machein hostname setup was causing all my issues., it is not a preferred setup anyhow I needed to correct so i renamed all cluster membre with corp....