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.

Ambari-agent logs not generating

Highlighted

Ambari-agent logs not generating

Rising Star

what are the major causes of down ambari-agent. Does restarting of ambari-server affects ambari-agent status. How to find root cause for ambari-agent not generating any logs.

10 REPLIES 10
Highlighted

Re: Ambari-agent logs not generating

@Anshul Sisodia

ls -l /var/log/ambar-agent/*

ambari-agent status

[root@phdns01 ~]# ambari-agent status

Found ambari-agent PID: 25501

ambari-agent running.

Agent PID at: /var/run/ambari-agent/ambari-agent.pid

Agent out at: /var/log/ambari-agent/ambari-agent.out

Agent log at: /var/log/ambari-agent/ambari-agent.log

[root@phdns01 ~]#

ambari-agent stop

ambari-agent start

ls -l /var/log/ambar-agent/*

Please paste the output of the above command

Highlighted

Re: Ambari-agent logs not generating

Rising Star

I tried this but no logs generating and service is running

Highlighted

Re: Ambari-agent logs not generating

@Anshul Sisodia check the permissions on the file system.

ls -l /var/log (paste the output here)

Highlighted

Re: Ambari-agent logs not generating

Rising Star

drwxr-xr-x 2 root root 4096 Jan 27 05:04 ambari-agent

Highlighted

Re: Ambari-agent logs not generating

@Anshul Sisodia check ambari-server logs. We need more data to comment :)

More data ...you can use pastebin if you like to share the log

Highlighted

Re: Ambari-agent logs not generating

Rising Star

drwxr-xr-x 2 root root 4096 Jan 27 05:04 ambari-agent

Highlighted

Re: Ambari-agent logs not generating

Rising Star
ambari-server.zip @Neeraj Sabharwal PFA ambari-server log
Highlighted

Re: Ambari-agent logs not generating

Mentor

Anshul Sisodia@

Start by checking that the host names respect the FQDN and

passwordless login is enabled

iptables is off

SeLinux is disabled etc

Ensure the Ambari agent is up

Please find a condensed steps attachednetwork-setup.pdf

Highlighted

Re: Ambari-agent logs not generating

Can you please run below commands and paste the output?

1) service ambari-agent status

2) service ambari-agent restart

3) service ambari-agent status

4) ps -ef | grep ambari-agent

5) ps -ef | grep kPT

Don't have an account?
Coming from Hortonworks? Activate your account here