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:[email protected]]
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: [email protected]<mailto:[email protected]>
Subject: Re: Detect agent started or not
Date: Wed, 7 Jan 2015 15:30:13 +0800
To: [email protected]<mailto:[email protected]>
jmx port?
姚仁捷 Frank Yao
@Vipshop, Shanghai
from iPhone

在 2015年1月7日,15:04,mahendran m 
<[email protected]<mailto:[email protected]>> 写道:
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

Reply via email to