Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume, mail # user - How to run flume-mg in background?


Copy link to this message
-
Re: How to run flume-mg in background?
Andrew Otto 2013-01-22, 17:00
This is the flume-ng-agent init.d script included with CDH4.  Drop it in /etc/init.d/flume-ng-agent, make it executable (chmod 755 /etc/init.d/flume-ng-agent), and then you can start/stop flume to your heart's content.

https://gist.github.com/4596260

On Jan 22, 2013, at 3:59 AM, Juhani Connolly <[EMAIL PROTECTED]> wrote:

> We use "nohup <command> &" and record the process id after.
>
> I'm pretty sure the cdh distribution of flume does the same, so you might want to have a look at that if you want a ready made init.d file and whatnot
>
> On 01/22/2013 05:48 PM, GuoWei wrote:
>> Thanks a lot
>>
>> I try to use nohup at the beginning of the flume-mg. It seems also works.
>>
>> Do you try that ?
>>
>> Thanks
>>
>> On 2013-1-22, at 下午4:34, Nitin Pawar <[EMAIL PROTECTED]> wrote:
>>
>>> also try ending the command with &
>>>
>>>
>>> On Tue, Jan 22, 2013 at 2:02 PM, Connor Woodson <[EMAIL PROTECTED]> wrote:
>>> Easiest way I have found is to run it in a screen instance:
>>>
>>> $ screen -R <unique name>
>>> (you're now in a screen instance)
>>> $ <run flume>
>>> (type Ctrl-a then d to leave screen; to go back to that instance, retype the command from above)
>>>
>>> - Connor
>>>
>>>
>>> On Mon, Jan 21, 2013 at 10:38 PM, GuoWei <[EMAIL PROTECTED]> wrote:
>>> Dear all,
>>>
>>> Can you tell me how to start flume-mg agent in background mode ?
>>>
>>> Thanks a lot.
>>>
>>>
>>>
>>> Best Regards / 商祺
>>> 郭伟 Guo Wei
>>> -----------------------------------------------------
>>> 南京西桥科技有限公司
>>> Western Bridge Tech Ltd.,  Nanjing
>>>
>>> 南京市玄武区花园路8号一号楼511
>>> No. 511, Building 1, No. 8, Hua Yuan Road
>>>
>>> Xuanwu District, Nanjing, PR China
>>>
>>> Email: [EMAIL PROTECTED]
>>>
>>> Tel: +86 25 8528 4900 (Operator)
>>> Mobile: +86 138 1589 8257
>>> Fax: +86 25 8528 4980
>>>
>>> Weibo: http://weibo.com/guowee
>>> Web: http://www.wbkit.com
>>> -----------------------------------------------------
>>> WesternBridge Tech: Professional software service provider. Professional is MANNER as well CAPABILITY.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Nitin Pawar
>>
>