nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Kurc <trk...@gmail.com>
Subject Re: JSON / Avro issues
Date Fri, 06 Nov 2015 11:31:54 GMT
Presuming it is off a recent commit, you should be able to read a delimited
tab file using "\t" as the delimiter. There should be a dropdown that will
allow you to choose ARRAY or NONE as a JSON container option, which would
toggle between the two JSON representations you described.

On Thu, Nov 5, 2015 at 10:24 PM, Cerulean Blue <j.007ba7@gmail.com> wrote:

> I'm using a snapshot built yesterday.
>
> Thanks
>
>
> Sent from my iPhone
>
> > On Nov 5, 2015, at 4:19 PM, Bryan Bende <bbende@gmail.com> wrote:
> >
> > Jeff,
> >
> > Are you using the 0.3.0 release?
> >
> > I think this is the issue you ran into which is resolved for the next
> release:
> > https://issues.apache.org/jira/browse/NIFI-944
> >
> > With regards to ConvertJSONtoAvro, I believe it one json document per
> line with a new line at the end of each line (your second example).
> >
> > -Bryan
> >
> >> On Thu, Nov 5, 2015 at 4:59 PM, Jeff <j.007ba7@gmail.com> wrote:
> >> I built a simple flow that reads a tab separated file and attempts to
> convert to Avro.
> >>
> >> ConvertCSVtoAvro just says that the conversion failed.
> >>
> >> Where can I find more information on what the failure was?
> >>
> >> Using the same sample tab separated file, I create a JSON file out of
> it.
> >>
> >> The JSON to Avro processor also fails with very little explication.
> >>
> >>
> >> With regard to the ConvertCSVtoAvro processor
> >>         Since my file is tab  delimited, do I simple open the "CSV
> delimiter” property, delete , and hit the tab key or is there a special
> syntax like ^t?
> >>         My data has no CSV quote character so do I leave this as “or
> delete it or check the empty box?
> >>
> >> With regard to the ConvertJSONtoAvro
> >>         What is the expected JSON source file to look like?
> >>                 [
> >>                  {fields values … },
> >>                  {fields values …}
> >>                 ]
> >>         Or
> >>                  {fields values … }
> >>                  {fields values …}
> >>         or something else.
> >>
> >> Thanks,
> >>
> >> Sorry for send this to 2 lists
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message