Member since
03-14-2016
4721
Posts
1111
Kudos Received
874
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2452 | 04-27-2020 03:48 AM | |
4891 | 04-26-2020 06:18 PM | |
3977 | 04-26-2020 06:05 PM | |
3223 | 04-13-2020 08:53 PM | |
4930 | 03-31-2020 02:10 AM |
02-06-2019
02:59 AM
@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.
... View more
02-06-2019
02:56 AM
1 Kudo
@Tom Burke It may be browser caching issue. So please try this: 1. Open the Web Browser in "Private Mode" (In Firefox) or "Incognito Mode" (in Chrome) and then try again. 2. If still you face the same issue then please try this to edit the "/etc/ambari-server/ambari.properties" file and then unset the value of the following two properties: FROM
------
http.strict-transport-security=max-age=31536000
views.http.strict-transport-security=max-age=31536000
TO
------
http.strict-transport-security=max-age=
views.http.strict-transport-security=max-age= The restart ambari-server and then try accessing the UI again # ambari-server restart .
... View more
02-06-2019
01:16 AM
@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
... View more
02-06-2019
01:08 AM
attached file is corrupted.
... View more
02-06-2019
12:54 AM
@Tom Burke You can also open the same URL from the Browser where you have logged in the Ambari UI as well. http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name . (OR)
You can use the following curl call to produce the JSON output to some
file like "/tmp/hosts.json". Also pleas emake sure to use the correct
cluster name in the same URL. # curl -k -H "X-Requested-By: ambari" -u admin:admin "http://ambari.example.com:8443/api/v1/clusters/cluster-name/hosts?fields=Hosts/ip,Hosts/host_name" -o "/tmp/hosts.json" .
... View more
02-06-2019
12:50 AM
@Tom Burke And regarding the SSL related issue. You will need to make sure that you configure a truststore in ambari Server and import the LDAP/AD certificate to Ambari Server's truststore to fix the following message: Failed to connect to KDC - Failed to communicate with the Active Directory at ldaps://xxx.yyy.com:636: simple bind failed: xxx.yyy.com:636 . Please see: https://community.hortonworks.com/content/supportkb/148572/failed-to-connect-to-kdc-make-sure-the-servers-ssl.html
... View more
02-06-2019
12:46 AM
@Tom Burke Looks like the FQDN is not set correctly on your failing Node. Please run the following commands to verify if the FQDN is setup correctly? (hostname and FQDN are not same) # python<<<"import socket;print socket.getfqdn();"
(OR)
# hostname -f
# hostname
If you find a difference in the FQDN then please set the FQDN of your host correctly. You can find the details here about hostname and public_hostname: https://community.hortonworks.com/content/kbentry/42872/why-ambari-host-might-have-different-public-host-n.html
... View more
02-06-2019
12:40 AM
@Tom Burke I think everything is fine and i see no errors any more in the UI operational logs or in the ambari-agent logs. So it looks good to me. Do you still see any issue?
... View more
02-06-2019
12:18 AM
@Tom Burke Looks like ambari agent is already installed on your ambari server host. So just try to start it and then see it it is starting fine without any error. # ambari-agent start; tail -f /var/log/ambari-agent/ambari-agent.log .
... View more
02-06-2019
12:06 AM
@Tom Burke i meant to say on the host where the Agent registration is failing can you check from where Ambari 2.2.1.0 binaries are coming because we saw in your output as : http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.2.1.0 Ambari . Or can you please share the "ambari-agent.log" from the host where the agent setup is failing? "/var/log/ambari-agent/ambari-agent.log"
... View more