You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by mahendran m <ma...@hotmail.com> on 2015/01/07 08:04:15 UTC

Detect agent started or not

Hi ,
I am running the flume on windows . i am trying to implement flume as service . Now i have one question 
By watching the console windows we can see all the log include error , info, warning when starting the flume . But with out watch the console windows Is there any way to detect agent is stared or not in flume ?
Regards,Mahendran 		 	   		  

RE: Detect agent started or not

Posted by Paul Chavez <pc...@ntent.com>.
You can use a Powershell command to check for running Java processes that have the flume application class in the commandline.

Eg:
Get-WmiObject win32_process -Filter "name like '%java.exe'" | Where-Object { $_.Commandline -match 'org.apache.flume.node.Application' }

At my work we use a service wrapper called winsw (https://github.com/kohsuke/winsw) to run Flume as a service and then just monitor it like any other windows service.

Hope that helps,
Paul Chavez


From: mahendran m [mailto:mahendranec@hotmail.com]
Sent: Thursday, January 08, 2015 1:49 AM
To: FlumeMaling List
Subject: RE: Detect agent started or not

JMX monitoring is not help , example when i start the agent without port for flume source . agent is not started but monitoring api give result with all value set to zero . i need to Is there any command available . in cloudera flume  you can use below command th check status like that is there any option available in flume

1.     Check the status of the Flume Agent to determine if it is running or not:

$ sudo /etc/init.d/flume-ng-agent status
http://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-1-x/Search/Cloudera-Search-User-Guide/csug_start_flume_agent.html

Regard,
Mahendran
________________________________
From: baniu.yao@gmail.com<ma...@gmail.com>
Subject: Re: Detect agent started or not
Date: Wed, 7 Jan 2015 15:30:13 +0800
To: user@flume.apache.org<ma...@flume.apache.org>
jmx port?
姚仁捷 Frank Yao
@Vipshop, Shanghai
from iPhone

在 2015年1月7日,15:04,mahendran m <ma...@hotmail.com>> 写道:
Hi ,

I am running the flume on windows . i am trying to implement flume as service . Now i have one question


  1.  By watching the console windows we can see all the log include error , info, warning when starting the flume . But with out watch the console windows Is there any way to detect agent is stared or not in flume ?

Regards,
Mahendran

RE: Detect agent started or not

Posted by mahendran m <ma...@hotmail.com>.
JMX monitoring is not help , example when i start the agent without port for flume source . agent is not started but monitoring api give result with all value set to zero . i need to Is there any command available . in cloudera flume  you can use below command th check status like that is there any option available in flume 
Check the status of the Flume Agent to determine if it is running or not:$ sudo /etc/init.d/flume-ng-agent statushttp://www.cloudera.com/content/cloudera/en/documentation/cdh5/v5-1-x/Search/Cloudera-Search-User-Guide/csug_start_flume_agent.html
Regard,Mahendran

From: baniu.yao@gmail.com
Subject: Re: Detect agent started or not
Date: Wed, 7 Jan 2015 15:30:13 +0800
To: user@flume.apache.org

jmx port?

姚仁捷 Frank Yao @Vipshop, Shanghaifrom iPhone
在 2015年1月7日,15:04,mahendran m <ma...@hotmail.com> 写道:




Hi ,
I am running the flume on windows . i am trying to implement flume as service . Now i have one question 
By watching the console windows we can see all the log include error , info, warning when starting the flume . But with out watch the console windows Is there any way to detect agent is stared or not in flume ?
Regards,Mahendran 		 	   		  
 		 	   		  

Re: Detect agent started or not

Posted by Frank Yao <ba...@gmail.com>.
jmx port��

Ҧ�ʽ� Frank Yao 
@Vipshop, Shanghai
from iPhone

> �� 2015��1��7�գ�15:04��mahendran m <ma...@hotmail.com> д����
> 
> Hi ,
> 
> I am running the flume on windows . i am trying to implement flume as service . Now i have one question 
> 
> By watching the console windows we can see all the log include error , info, warning when starting the flume . But with out watch the console windows Is there any way to detect agent is stared or not in flume ?
> 
> Regards,
> Mahendran