Return-Path:
Delivered-To: apmail-avro-dev-archive@www.apache.org
Received: (qmail 43847 invoked from network); 28 Feb 2011 18:20:04 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 28 Feb 2011 18:20:04 -0000
Received: (qmail 23902 invoked by uid 500); 28 Feb 2011 18:20:03 -0000
Delivered-To: apmail-avro-dev-archive@avro.apache.org
Received: (qmail 23643 invoked by uid 500); 28 Feb 2011 18:20:02 -0000
Mailing-List: contact dev-help@avro.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@avro.apache.org
Delivered-To: mailing list dev@avro.apache.org
Received: (qmail 23633 invoked by uid 99); 28 Feb 2011 18:20:01 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 18:20:01 +0000
X-ASF-Spam-Status: No, hits=2.2 required=5.0
tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of bruce.mitchener@gmail.com
designates 209.85.220.171 as permitted sender)
Received: from [209.85.220.171] (HELO mail-vx0-f171.google.com)
(209.85.220.171)
by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Feb 2011 18:19:54 +0000
Received: by vxc40 with SMTP id 40so3808178vxc.30
for ; Mon, 28 Feb 2011 10:19:33 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:in-reply-to:references:date
:message-id:subject:from:to:content-type;
bh=A7ecVKEeK5UEjosgE3hPwy6gx7hXX0FjEJr87MI5aFA=;
b=WUE7nwwG1UC50qpmQ6TQNKmaDS5KIZoT2hKd1YwZsouZ/8bq6ftyrCIpI3YBKIYkWI
OIxOYVHk31PKOTVaXNFhnKMTlzPy/g1J6M6ebSHkUvriKJAvt+JZTzUpQv1lLdIjo/uf
qOmk7U/nDtecalUmDRsUXNTu66p6fp6wRZU0A=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
b=Sx41A/Joa5sHoZvD+bFGcecy1B6M6kaj3UZwhmFfFLC1yRl+XNM1wjh90QXVwwQa+L
i1Tyqbx8fkSwhNZqiVBL1B6p+xIzaTE0Zj+8tYQ0LjsU8QBlxpBqpzDbUy+18OoobMZh
N75Zzhkk6tW4N59Nb8gVzUdpyqW8b+2XLudZY=
MIME-Version: 1.0
Received: by 10.52.88.163 with SMTP id bh3mr3751820vdb.81.1298917162460; Mon,
28 Feb 2011 10:19:22 -0800 (PST)
Received: by 10.220.169.74 with HTTP; Mon, 28 Feb 2011 10:19:22 -0800 (PST)
In-Reply-To:
References:
Date: Tue, 1 Mar 2011 01:19:22 +0700
Message-ID:
Subject: Re: JsonEncoder issue in 1.5?
From: Bruce Mitchener
To: dev@avro.apache.org
Content-Type: multipart/alternative; boundary=20cf3071c86a0fa71b049d5bb863
X-Virus-Checked: Checked by ClamAV on apache.org
--20cf3071c86a0fa71b049d5bb863
Content-Type: text/plain; charset=ISO-8859-1
Hmm, something odd happened to my tree. It was missing several commits, so
I had quite a different version of JsonEncoder.java.
- Bruce
On Tue, Mar 1, 2011 at 1:17 AM, Scott Carey wrote:
> I'll take another pass through the Javadoc on the changes in AVRO-753 and
> AVRO-769.
>
> I may have missed some details.
>
> JsonEncoder's class Javadoc has this info:
>
> "
> /** An {@link Encoder} for Avro's JSON data encoding.
> *
> * Construct using {@link EncoderFactory}.
> *
> * JsonEncoder buffers output, and data may not appear on the output
> * until {@link Encoder#flush()} is called.
> *
> * JsonEncoder is not thread-safe.
> * */
>
> "
> It has no public constructors.
>
> JsonDecoder however is missing the equivalent.
>
>
> On 2/28/11 9:49 AM, "Bruce Mitchener" wrote:
>
> >Thanks, that solves that. I didn't find that because I was searching for
> >Json and JsonEncoder. Also, despite the constructor being public and not
> >actually being usable, there's no notice in the Javadoc comments about how
> >to properly construct things...
> >
> > - Bruce
> >
> >On Tue, Mar 1, 2011 at 12:32 AM, Doug Cutting wrote:
> >
> >> Bruce,
> >>
> >> This sounds like the incompatible change of AVRO-753:
> >>
> >>
> >>
> >>
> http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?r1=1074364&r2=1074363
> >>&pathrev=1074364
> >>
> >> Doug
> >>
> >> On 02/28/2011 09:22 AM, Bruce Mitchener wrote:
> >> > Hopefully this is just some stupidity on my part, but ...
> >> >
> >> > I'm doing a test upgrade of Flume from Avro 1.4 to the rc0 of 1.5.0 to
> >> make
> >> > sure everything works ... After putting the new jars in place and
> >>fixing
> >> > errors due to classes moving around some, I end up with these 2
> >>errors:
> >> >
> >> > [javac]
> >> >
> >>
> >>/Users/bruce/Development/flume/src/java/com/cloudera/flume/handlers/avro/
> >>AvroJsonOutputFormat.java:61:
> >> > cannot find symbol
> >> > [javac] symbol : constructor
> >> > JsonEncoder(org.apache.avro.Schema,java.io.OutputStream)
> >> > [javac] location: class org.apache.avro.io.JsonEncoder
> >> > [javac] json = new JsonEncoder(schema, o);
> >> > [javac] ^
> >> > [javac]
> >> >
> >>
> >>/Users/bruce/Development/flume/src/java/com/cloudera/flume/handlers/avro/
> >>AvroJsonOutputFormat.java:67:
> >> > cannot find symbol
> >> > [javac] symbol : method init(java.io.OutputStream)
> >> > [javac] location: class org.apache.avro.io.JsonEncoder
> >> > [javac] json.init(o);
> >> > [javac] ^
> >> >
> >> > I can't see where I'm doing anything wrong and this code works with
> >>1.4.
> >> >
> >> > I also updated the Jackson jars to be the same as what Avro is using
> >>and
> >> > I've done 'ant clean'...
> >> >
> >> > Any idea what is going on and how I can fix it?
> >> >
> >> > - Bruce
> >> >
> >>
>
>
--20cf3071c86a0fa71b049d5bb863--