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 AD70C18826 for ; Fri, 9 Oct 2015 04:40:23 +0000 (UTC) Received: (qmail 73353 invoked by uid 500); 9 Oct 2015 04:40:18 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 73239 invoked by uid 500); 9 Oct 2015 04:40:18 -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 73229 invoked by uid 99); 9 Oct 2015 04:40:18 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2015 04:40:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C2F8CC0CC3 for ; Fri, 9 Oct 2015 04:40:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id d0psBZrIE8uX for ; Fri, 9 Oct 2015 04:40:17 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 3F4B024E1C for ; Fri, 9 Oct 2015 04:40:16 +0000 (UTC) Received: by oiak8 with SMTP id k8so24262979oia.1 for ; Thu, 08 Oct 2015 21:40:09 -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=EzGRSLlVA6IK4eywTYEmKT0gwzsVeDhVNTEpfYpGL6k=; b=onKpavmT0gQl8whB/T/0VPQ+7KFbAE1elkAToexir1zpHKTzv+xal1VTWQcfSdD8X6 WI542ftLwt88HiuvgTG4OH1KoWaBjebWxs0XHaJjT1VlmR/r/nzkybVu4/+kA7sK+Z6B gLPUIQMxrq/Mbrss1tUYfDMWO/51IV3KpskrJUa5RFl1fhOkVhgEeOixuXkMDpRtnEOs G9n5g4fPJFpgnLwuG5HJfy0PQSechcn7Y3e7fl+4/hGiSj4b20sqvWIDwOshurVK81Ws 8K+ZndF7bf2vYRxOsJImhY+OHevXoU+WEu1OlnXT/peZX78lP+9Vtrb5bLJhPHrEmHH4 dzgw== MIME-Version: 1.0 X-Received: by 10.202.227.3 with SMTP id a3mr6656680oih.71.1444365609029; Thu, 08 Oct 2015 21:40:09 -0700 (PDT) Received: by 10.182.51.129 with HTTP; Thu, 8 Oct 2015 21:40:08 -0700 (PDT) Received: by 10.182.51.129 with HTTP; Thu, 8 Oct 2015 21:40:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2015 21:40:08 -0700 Message-ID: Subject: Re: Specify start and end range for Tasks Api From: manoj To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a1141aebc0d56bc0521a49395 --001a1141aebc0d56bc0521a49395 Content-Type: text/plain; charset=UTF-8 Any suggestions on the following query? Thanks, Manoj On Oct 1, 2015 2:54 PM, "manoj" wrote: > Hello All, > > > I'm using the following API to get all the tasks relating to a job. The > problem is, if the number of tasks are in say 1million range then the data > returned by this api is too huge to store in memory before I process the > data and save it. > > I was wondering if I can specify a range say: start and end of taskID and > get only 1K task at a time. > Basically I want to chop down the day instead of getting all at once. > > http:///ws/v1/history/mapreduce/jobs/{jobid}/tasks > > > Thanks, > --Manoj Kumar M > --001a1141aebc0d56bc0521a49395 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Any suggestions on the following query?

Thanks,
Manoj

On Oct 1, 2015 2:54 PM, "manoj" <manojm.321@gmail.com> wrote:
Hell= o All,


I'm using the following API to= get all the tasks relating to a job. The problem is, if the number of task= s are in say 1million range then the data returned by this api is too huge = to store in memory before I process the data and save it.

I was wondering if I can specify a range say: start and end of task= ID and get only 1K task at a time.
Basically I want to chop down = the day instead of getting all at once.

http://<history server http address=
:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks

Th= anks,
--Manoj Kumar M
--001a1141aebc0d56bc0521a49395--