Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 000CA1074D for ; Fri, 22 Nov 2013 02:49:29 +0000 (UTC) Received: (qmail 89459 invoked by uid 500); 22 Nov 2013 02:49:24 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 89368 invoked by uid 500); 22 Nov 2013 02:49:24 -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 89361 invoked by uid 99); 22 Nov 2013 02:49:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 02:49:24 +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 jayamviswanathan@gmail.com designates 209.85.220.41 as permitted sender) Received: from [209.85.220.41] (HELO mail-pa0-f41.google.com) (209.85.220.41) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Nov 2013 02:49:17 +0000 Received: by mail-pa0-f41.google.com with SMTP id lf10so667438pab.14 for ; Thu, 21 Nov 2013 18:48:56 -0800 (PST) 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=pF7H7oqolCNxyiYyShLV0Si/pfZf4KLVDCxA3aWQTjQ=; b=o5hR0Vpbw+usZVTN5qrS6+KUud4vZN5Ps/5WmbTBQe5rBTTD2puCvjb4UoAfr/PCMm 8JjipLbFaEWZGVjjm+PMrQ9RxB+gd3dQ0df5HJ5Smi59KciEKNDfLdHijVUr5bIj6DZb dKhYKVFKCKKVpiuwurBkCnNWMwlbM1ZdSsxAogK/pznND9+zSc4UqGUrPonGTUbvP8xn gJ8+qvkPnbpsY5JTbYMQRri/Lv5tuogyrzFTPnw5QwsFiJc8gMX7bIxlkgkAZ99lAkqJ 6f4yDGh7OnfKyzr0jyObLncaWT2WF25ZIwkascZvSDTEd2Oa/FDBlA9gugBAlNYOhSmq qvlA== MIME-Version: 1.0 X-Received: by 10.67.1.203 with SMTP id bi11mr9849346pad.137.1385088536504; Thu, 21 Nov 2013 18:48:56 -0800 (PST) Received: by 10.70.130.229 with HTTP; Thu, 21 Nov 2013 18:48:56 -0800 (PST) Received: by 10.70.130.229 with HTTP; Thu, 21 Nov 2013 18:48:56 -0800 (PST) In-Reply-To: <1385061818.78022.YahooMailNeo@web161703.mail.bf1.yahoo.com> References: <1385061649.86176.YahooMailNeo@web161706.mail.bf1.yahoo.com> <1385061818.78022.YahooMailNeo@web161703.mail.bf1.yahoo.com> Date: Fri, 22 Nov 2013 08:18:56 +0530 Message-ID: Subject: Re: Jobtracker fair scheduler From: Viswanathan J To: user@hadoop.apache.org, anurag tangri Content-Type: multipart/alternative; boundary=047d7b5d37dc33703004ebbb0ea5 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d37dc33703004ebbb0ea5 Content-Type: text/plain; charset=ISO-8859-1 Thanks Anurag. I will check and keep you posted in case of any issue. On Nov 22, 2013 12:54 AM, "anurag tangri" wrote: > Here's step-by-step on how to do this: > ================ > > Here's step by step on how to do this: > > 1. Add following in mapred-site.xml: > > > > mapred.fairscheduler.preemption > true > true > > > mapred.jobtracker.taskScheduler > true > org.apache.hadoop.mapred.FairScheduler > > > mapred.acls.enabled > true > true > > > mapred.fairscheduler.allow.undeclared.pools > true > false > > > mapred.fairscheduler.poolnameproperty > true > mapred.job.queue.name > > > mapred.fairscheduler.allocation.file > true > /etc/hadoop/conf/allocations.xml > > > mapred.queue.names > true > sqoop,default > > > mapreduce.job.acl-view-job > true > * > > > > 2. Create mapred-queue-acls.xml in same dir as mapred-site.xml where you > define all the queues: > > > > mapred.queue.sqoop.acl-submit-job > usera, userb > > > mapred.queue.sqoop.acl-administer-jobs > usera, userc > > > > > > 3. Define fair scheduler allocations file (location specified in > maped-site.xml) to use the queues defined and assign resources to them: > > > > 300 > > 700 > 175 > 25 > > > 120 > 40 > 40 > > 600 > > > > 4. After this, restart job tracker. > > > And your queues should be in place. You can then submit job to right queue > using > -Dmapred.job.queue.name=sqoop or default > > And check the job going to actual queue at the link: > http://:50030/scheduler > > > Look at the property mapreduce.job.acl-view-job in mapred-site. Means > anyone can view the jobs. > > > Try above and let us know any issues you still face. > > > ================================ > > > Anurag Tangri > > > Never wear your best trousers when you go out to fight for freedom and > truth.- Henrik Ibsen > > > On Thursday, November 21, 2013 11:21 AM, anurag tangri < > anurag_tangri@yahoo.com> wrote: > Hi Viswanathan, > What steps have you followed to set fair scheduler ? > > Thanks, > Anurag Tangri > > > Never wear your best trousers when you go out to fight for freedom and > truth.- Henrik Ibsen > > > On Thursday, November 21, 2013 10:25 AM, Viswanathan J < > jayamviswanathan@gmail.com> wrote: > Hi, > I'm running hadoop with 1.2.1, all my jobs are running in single queue > (Queue 1) only all the time. But I have configured default, queue 1&2. > Why jobs are not scheduled to all the queues. > Please help. Running like this will be any issue? > Thanks, > > > > > --047d7b5d37dc33703004ebbb0ea5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Thanks Anurag. I will check and keep you posted in case of any issue.

On Nov 22, 2013 12:54 AM, "anurag tangri&qu= ot; <anurag_tangri@yahoo.com<= /a>> wrote:
Here's step-by-step on how to= do this:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Here&#= 39;s step by step on how to do this:

1. Add following in mapred-site.xml:


=A0 <property>=A0=A0=A0 <name>mapred.fairscheduler.preemption</name>
=A0= =A0=A0 <final>true</final>
=A0=A0=A0 <value>true</v= alue>
=A0 </property>
=A0 <property>
=A0=A0=A0 <name>mapred.jobtracker.taskSchedul= er</name>=A0=A0
=A0=A0=A0 <final>true</final>
=A0= =A0=A0 <value>org.apache.hadoop.mapred.FairScheduler</value>=A0 </property>
=A0 <property>
=A0=A0=A0 <name>mapred.acls.enabled</name&= gt;
=A0=A0=A0 <final>true</final>
=A0=A0=A0 <value>true</value&g= t;
=A0 </property>
=A0=A0=A0 <property>
=A0=A0=A0 <= name>mapred.fairscheduler.allow.undeclared.pools</name>
=A0=A0= =A0 <final>true</final>
=A0=A0=A0 <value>false</value>
=A0 </property>
=A0 = <property>
=A0=A0=A0 <name>mapred.fairscheduler.poolnameprop= erty</name>
=A0=A0=A0 <final>true</final>
=A0=A0=A0= <value>
ma= pred.job.queue.name</value>
=A0 </property>
=A0 <property>
=A0=A0=A0 <name>mapr= ed.fairscheduler.allocation.file</name>
=A0=A0=A0 <final>tru= e</final>
=A0=A0=A0 <value>/etc/hadoop/conf/allocations.xml&= lt;/value>
=A0 </property>
=A0 <property>
=A0=A0=A0 <name>mapred.queue.names</name><= br>=A0=A0=A0 <final>true</final>
=A0=A0=A0 <value>sqoo= p,default</value>
=A0 </property>
=A0 <property>=A0=A0=A0 <name>mapreduce.job.acl-view-job</name>
=A0=A0=A0 <final>true</final>
=A0=A0=A0 <value>*</v= alue>
=A0 </property>


2. Create mapred-queue-acls.xm= l in same dir as mapred-site.xml where you define all the queues:

&l= t;configuration>
=A0 <property>
=A0=A0=A0 <name>mapred.queue.sqoop.acl-submit= -job</name>
=A0=A0=A0 <value>usera, userb</value>
= =A0 </property>
=A0 <property>
=A0=A0=A0 <name>mapr= ed.queue.sqoop.acl-administer-jobs</name>
=A0=A0=A0 <value>usera, userc</value>
=A0 </property>
<! above two properties= for every queue defined in mapred-site.xml -->
</configuration>= ;


3. Define fair scheduler allocations file (location specified = in maped-site.xml) to use the queues defined and assign resources to them:<= br>
<?xml version=3D"1.0"?>
<allocations>
=A0 &= lt;defaultMinSharePreemptionTimeout>300</defaultMinSharePreemptionTim= eout>
=A0 <pool name=3D"sqoop">
=A0=A0=A0 <minM= aps>700</minMaps>
=A0=A0=A0 <minReduces>175</minReduces>
=A0=A0=A0 <maxRunn= ingJobs>25</maxRunningJobs>
=A0 </pool>
=A0 <pool n= ame=3D"default">
=A0=A0=A0 <minMaps>120</minMaps&g= t;
=A0=A0=A0 <minReduces>40</minReduces>
=A0=A0=A0 <maxRunningJobs>40</maxRunningJobs>
=A0 </pool&= gt;
=A0 <fairSharePreemptionTimeout>600</fairSharePreemptionTimeout></allocations>


4. After this, restart job tracker.

And your queues should be in place. You can then submit job to right = queue using
-Dmapred.job.qu= eue.name=3Dsqoop or default

And check the job going to actual q= ueue at the link:
http://<job tracker hostname>:50030/scheduler

Look at the property mapreduce.job.acl-view-job in mapred-site. Mea= ns anyone can view the jobs.


Try above and let us know any issue= s you still face.


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

=A0
Anurag Tangri


= Never wear your best trousers when you go out to fight for freedom and
t= ruth.- Henrik Ibsen
--047d7b5d37dc33703004ebbb0ea5--