General Troubleshooting
Ambari Server: Check /var/log/ambari-server/ambari-server.\[log\|out\] for errors.
Wiki Markup
Ambari Agent: Check /var/log/ambari-agent/ambari-agent.\[log\|out\] for errors.
Note that if Ambari Agent has any output in /var/log/ambari-agent/ambari-agent.out, it is indicative of a significant problem.
Services fail to start up
...
- and remove them :
rpm -e <package name>
HTTP error 400 – Bad Request – during REST call (POST, PUT, DELETE) to Ambari server
Ambari Server now expects an additional HTTP header called "X-Requested-By" for all non-GET calls. The value can be set to anything. For example:
Code Block |
---|
curl -i -H 'X-Requested-By: mycompany' -X POST -d '{"Clusters": {"version": "HDP-2.0.6"}}' --user admin:admin http://hadoop1.mycompany.com:8080/api/v1/clusters/cluster1 |
#Spaces in manager DN/Base DN causing login issues in Ambari Anchor Spaces in manager DN/Base DN causing login issues in Ambari Spaces in manager DN/Base DN causing login issues in Ambari
Note that there are some issues with Ambari current release 1.2.5 in case you have spaces in baseDN/managerDN. Please take a look at: https://issues.apache.org/jira/browse/ambari-3006. The fix will be available in 1.4.1 release of Ambari. In case you are running into issues and cant get rid of spaces in the managerDN/baseDN - keep reading.
I have created a jar with the patch applied on top of branch-1.2.5. The jar is posted at http://people.apache.org/~mahadev/ambari/ambari-server-1.2.5.17.jar.
Download the above jar and follow the following steps for fixing the issue:
- Stop ambari server using
Code Block |
---|
ambari-server stop
|
- Replace the ambari server jar with the downloaded jar. Please backup the ambari-server jar before you overwrite in case you run into issues.
Code Block |
---|
cp <download<downloaded_ambari_server_jar> /usr/lib/ambari-server/ambari-server-1.2.5.17.jar |
- Restart Ambari Server
Code Block |
---|
ambari-server start
|
This should fix the issue with spaces in LDAP dn names.