Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1385118861 for ; Fri, 26 Feb 2016 23:43:44 +0000 (UTC) Received: (qmail 29975 invoked by uid 500); 26 Feb 2016 23:43:44 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 29932 invoked by uid 500); 26 Feb 2016 23:43:44 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 29915 invoked by uid 99); 26 Feb 2016 23:43:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Feb 2016 23:43:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 561B6180492 for ; Fri, 26 Feb 2016 23:43:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4X1cjaszDXP4 for ; Fri, 26 Feb 2016 23:43:42 +0000 (UTC) Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2B3555F5CE for ; Fri, 26 Feb 2016 23:43:41 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id jq7so91363264obb.0 for ; Fri, 26 Feb 2016 15:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=yiBSOe1bUiIvos71O7HmFG6eUjt7TfUlPstNitu668w=; b=JmlD3NEyJwMFnvgtbseJMBCJPJ3I5DqluopCVxqXgBQKYjmtljvoQHv+1Zu5AUJWLM EMxZ9oTJnw3yR6IWwC6nMUDJpxr4EsfQqBtBILgjgVkV4b/VjYJD48H87UR5isRGFY5q s0rjY6DqRrZ8An2CgXrczel4oQvCNuX12Bzv3tTNAyNVtWLZJxCopacAlHiXePp8G59D 4ofC1viuFRcuRmJO/eWR12BUnWT4CTIX8F7hqFzMd/ERcG2kooLTZFlgI0PjFdTKfRMc QcGkk9SvxHvynGRHXyPW4RBClJQ0YB72pCppP/Q8KwEuMa4owFthitAvdp7beqCfCWXH GZhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=yiBSOe1bUiIvos71O7HmFG6eUjt7TfUlPstNitu668w=; b=TR9I9SCjOEuNXJDWdMNMITvbxd7+C6uxBsiLTSMwJhH6BrQFWNF0lnpm8C7dllWe54 Hs2wruVz+HZvHcPxLjzaXuVxfHelGuubkr42KEKMjrlkcbvfeLHMgoSytv5K40LfbpXB 1IB57DeP8pCfPSnrvnqBH1RW7ynIO1mNi+zHE3HQWY2Vzjb/Evw0o47jOG41MRThXxYQ BXwPy0MO4Sf1IFuShIt48WL7kMgtDiFeMkEgwVG2hiL5bQ0x7kIymFmo0Iivn07xFBD1 hsF8Xg6OE5u1Y3Ysz+W0jl3/KH+QcKZZHKW0rj/VqOcYnXQHDZfwr7A5gsTmUE7y9quD aRDQ== X-Gm-Message-State: AD7BkJLwc0J7d3ZgCYgWLtU3jN7fSS3JwVNYEncrRo7+ozoKTDWGlZ+FjURHZRX6m0pzPCj9YFmMde+TQuy6dw== X-Received: by 10.182.24.170 with SMTP id v10mr3409437obf.55.1456530213820; Fri, 26 Feb 2016 15:43:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.202.74.215 with HTTP; Fri, 26 Feb 2016 15:43:14 -0800 (PST) In-Reply-To: References: <3035AB48-DE57-47FA-BBF1-9054D149AF00@gmail.com> <62963EB9-2FE3-4450-B33C-7900D5096A50@gmail.com> From: Josh Wills Date: Fri, 26 Feb 2016 15:43:14 -0800 Message-ID: Subject: Re: Processing splittable inputs To: dev Content-Type: multipart/alternative; boundary=001a11c304baffe399052cb4dd2c --001a11c304baffe399052cb4dd2c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yeah, I suspect the Source-property approach is the right thing here. On Fri, Feb 26, 2016 at 3:37 PM, Micah Whitacre wrote: > Where are you trying to specify them? Inside a DoFn? Prior to > constructing the MRPipeline? > > I'd suggest trying either: > 1. Setting those values on the initial Configuration object you pass to t= he > MRPipeline > 2. Setting them as Source specific properties[1] on the source itself. > > The latter approach might be better if you are reading a lot of different > sources into your pipeline and don't want to affect them all. > > [1] - > > http://crunch.apache.org/apidocs/0.12.0/org/apache/crunch/Source.html#inp= utConf(java.lang.String,%20java.lang.String) > > On Fri, Feb 26, 2016 at 5:17 PM, Ben Juhn wrote: > > > The data isn=E2=80=99t compressed. The parameters aren=E2=80=99t showi= ng up in the job > > configuration either. > > > > > > > On Feb 25, 2016, at 5:15 PM, Ben Juhn wrote: > > > > > > Hello there, > > > > > > I haven=E2=80=99t been able to get crunch to split inputs into multip= le > > mappers. Currently it=E2=80=99s giving me one mapper per text file, ev= en though > > they=E2=80=99re 1GB each. I=E2=80=99ve tried supplying split.maxsize o= n the command line > > and in the DoFn implementation: > > > > > > @Override > > > public void configure(Configuration conf) { > > > conf.set("crunch.combine.file.size", "67108864"); > > > conf.set("mapreduce.input.fileinputformat.split.maxsize", "67108864")= ; > > > conf.set("mapreduce.input.fileinputformat.split.minsize", "67108864")= ; > > > } > > > > > > Any suggestions? > > > > > > Thanks, > > > Ben > > > > > > > > --001a11c304baffe399052cb4dd2c--