Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9542410051 for ; Tue, 29 Apr 2014 15:30:00 +0000 (UTC) Received: (qmail 52700 invoked by uid 500); 29 Apr 2014 15:29:43 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 52591 invoked by uid 500); 29 Apr 2014 15:29:42 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 52435 invoked by uid 99); 29 Apr 2014 15:29:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 15:29:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bobyangbo@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-wg0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Apr 2014 15:29:29 +0000 Received: by mail-wg0-f48.google.com with SMTP id b13so387446wgh.31 for ; Tue, 29 Apr 2014 08:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7ANBho9nBsAKOuxmbSKx/Z88Lkgl8qJW8233MgR76KM=; b=PVYKWWv/QFAzumKIgTQvqm1k7t4B9cs83MGVOIPL5JodeQ8xFk7nKrZR8EdZbl0CGG lh7sr0lluFqoMShSfqirtWif7neDAc5zLhla8MMxE6jTtlkh7JOGZEG8K0DdaUrzvDB3 AKAn5Vd5dcwVkb2A8SJ1JHPHWotB68s+Qv5H1ZigLAzFOtTQ49+oqHjvyzMc8MfHR7oB FgXW0O3AhZeUlnnXXiRP9/kc10nWVcoLrZI438DvfoYYMEnsQFiFkRGGQayN5Z/F0zwf nnarcvhN2DukzSGxqlXqqEb2Eya5BtQkcSRv9M7herZqJvEbn6YC46Rk7szOphZZoI2h OFpg== MIME-Version: 1.0 X-Received: by 10.180.88.129 with SMTP id bg1mr781880wib.51.1398785347197; Tue, 29 Apr 2014 08:29:07 -0700 (PDT) Received: by 10.217.66.70 with HTTP; Tue, 29 Apr 2014 08:29:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 29 Apr 2014 08:29:07 -0700 Message-ID: Subject: Re: Running YARN in-process Application Master? From: bo yang To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d04426c46bca2af04f8301708 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04426c46bca2af04f8301708 Content-Type: text/plain; charset=UTF-8 This is great info for me. Thanks Oleg! I will take a look. Hope it can also fit in our production environment. Best Regards, Bo On Tue, Apr 29, 2014 at 3:38 AM, Oleg Zhurakousky < oleg.zhurakousky@gmail.com> wrote: > Yes there is. You can provide your own implementation of > org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor and > configure it as 'yarn.nodemanager.container-executor.class' property. > There you can bypass Shell and create your own way of invoking processes. > Obviously it only makes sense for testing with mini-cluster during the > development and I think that's what you meant. > I've been playing with it lately, so feel free to take a look - > https://github.com/olegz/yaya/wiki/CoreFeatures#in-jvm-container-executor. > At least you'll get some ideas out of it. > > Cheers > Oleg > > > On Mon, Apr 28, 2014 at 3:57 PM, bo yang wrote: > >> Hi All, >> >> I just joined this group, and not sure whether this question was >> discussed before. >> >> Is it possible to run Application Master within the same process as Node >> Manager? If not, any plan to support it future? >> >> I am asking this because we might want to use YARN as a job dispatching >> system. We have our own heavy-weight service which is not practical to >> be launched as a new process for each new job. A possible thing we can do >> is to use YARN to launch a new dummy Application Master process which will >> dispatch the job to our service. But that new dummy process is a little >> waste. So if YARN supports in-process Application Master, that will be >> great. >> >> Thanks, >> Bo >> >> > --f46d04426c46bca2af04f8301708 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is great info for me. Thanks Oleg! I will take a= look. Hope it can also fit=C2=A0in our production environment.
<= span>=C2=A0
Best Regards,
Bo
<= /div>


On Tue, Apr 29, 2014 at 3:38 AM, Oleg Zh= urakousky <oleg.zhurakousky@gmail.com> wrote:
Yes there is. You can provide your own implementation of o= rg.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor and confi= gure it as=C2=A0=C2=A0'yarn.nodemanager.container-executor.class' p= roperty.
There you can bypass Shell and create your own way of invoking processes. O= bviously it only makes sense for testing with mini-cluster during the devel= opment and I think that's what you meant.
I've been playi= ng with it lately, so feel free to take a look -=C2=A0https://github.com/olegz/yaya/wiki/CoreFeatures#in-jvm-container-ex= ecutor. At least you'll get some ideas out of it.

Cheers
Oleg


On Mon, A= pr 28, 2014 at 3:57 PM, bo yang <bobyangbo@gmail.com> wrot= e:
Hi All,

I j= ust joined this group, and not sure whether this question was discussed bef= ore.

Is it possible to run Application Master within the sam= e process as Node Manager? If not, any plan to support it future?

I am asking this because we might want to use YARN as a= job dispatching system. We have our own heavy-weight service which is not = practical to be=C2=A0launched as=C2=A0a new process for each new job. A pos= sible thing we can do is to use YARN to launch a new dummy Application Mast= er process which will dispatch the job to our service. But that new dummy p= rocess is a little waste. So if YARN supports in-process Application Master= , that will be great.

Thanks,
Bo



--f46d04426c46bca2af04f8301708--