Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-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 C574B181F3 for ; Tue, 21 Jul 2015 15:41:33 +0000 (UTC) Received: (qmail 5785 invoked by uid 500); 21 Jul 2015 15:41:33 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 5698 invoked by uid 500); 21 Jul 2015 15:41:33 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 5676 invoked by uid 99); 21 Jul 2015 15:41:33 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jul 2015 15:41:33 +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 11E4AC0044; Tue, 21 Jul 2015 15:41:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.129 X-Spam-Level: *** X-Spam-Status: No, score=3.129 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 DiRfauIonNSD; Tue, 21 Jul 2015 15:41:32 +0000 (UTC) Received: from mail-ig0-f182.google.com (mail-ig0-f182.google.com [209.85.213.182]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 9C2F321143; Tue, 21 Jul 2015 15:41:31 +0000 (UTC) Received: by igbij6 with SMTP id ij6so112701684igb.1; Tue, 21 Jul 2015 08:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CMSiIZI7myd0vn6Vgf13PEYyIT1KWDRq0PD0ONyj25w=; b=NUFAyoklzScDNFv78MP+UidqEZRTj0Cv08x0UrKG3UbhBl+8cgCgsLzhVyldlEtwY2 +1vEHyDw+r+jIOtzcY6feTss3Fi9Ju3Tun8aRCOwa7SiNHgq5Gg52y4z4zPaPTMs7bUG 35VuMeIRMYjf2oSpnKNRUET6X9Uzq+mOvlMhgVdIOTRsyqIYmxcgVGFMuhn/POtxzDtU aP8OL6qKOqbqD2SCjDgD5svPl0JrjKoX45cO8WaNsWxs0121mN87SysRXgFXZefnnI3+ AitZG+pHXPrbGZZXnVEIhGhkrBTwj/WZYRcESk33TJlaAzgqYToGeXQYauiULZqK0ami Tvag== MIME-Version: 1.0 X-Received: by 10.50.66.234 with SMTP id i10mr25902524igt.46.1437493290537; Tue, 21 Jul 2015 08:41:30 -0700 (PDT) Received: by 10.107.170.223 with HTTP; Tue, 21 Jul 2015 08:41:30 -0700 (PDT) Date: Tue, 21 Jul 2015 09:41:30 -0600 Message-ID: Subject: Multiple Output Schema in Avro Map Reduce From: Nishanth S To: user@avro.apache.org, user-help@avro.apache.org, user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bdc1a6cf31bee051b647c4a --047d7bdc1a6cf31bee051b647c4a Content-Type: text/plain; charset=UTF-8 Hello, Could some one tell me if there is a way not to set schemas in a mapr reduce driver that outputs avro files.The input is a binary format.Right now I have to do this. AvroJob.setOutputKeySchema(job, Schema.create(Schema.Type.NULL)); AvroJob.setOutputValueSchema(job,B.getClassSchema() ); This works well when you have one output schema but what should be the approach when there are multiple schemas.Which schema should we set in AvroJob?. -Nsihan --047d7bdc1a6cf31bee051b647c4a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Could =C2=A0some =C2=A0one tell = me if =C2=A0there is a way =C2=A0not to set schemas in a mapr reduce driver= that outputs avro files.The input is a binary format.Right now I have to d= o this.


=C2=A0 =C2=A0 =C2=A0 = =C2=A0AvroJob.setOutputKeySchema(job, Schema.create(Schema.Type.NULL));
=C2=A0 =C2=A0 =C2=A0 =C2=A0 AvroJob.setOutputValueSchema(job,B.getCl= assSchema()=C2=A0);


This work= s well when you have one output schema =C2=A0but what =C2=A0should be the a= pproach when there are multiple schemas.Which schema should we set in AvroJ= ob?.


-Nsihan


--047d7bdc1a6cf31bee051b647c4a--