You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Sunny Kimhy <su...@gmail.com> on 2012/08/19 17:05:14 UTC

Re: Flume changes output format from .csv to .json

I'm using flume in its node-only (testing) mode; My flume is started in
> following manner:
>
> flume node -1 -c $FQDN':amqp("exchangeName=[exchange name]",
> "bindings=[binding name]", "host=127.0.0.1", "port=5672",
> "userName=[user]", "password=[pass]", "exchangeType=direct",
> "durableExchange=false", "queueName=[queue name]", "durableQueue=true",
> "exclusiveQueue=false", "autoDeleteQueue=false",
> "useMessageTimestamp=true")|collectorSink("s3n://[Amazon key]:[Amazon
> secret]@[path at S3]","server");' -s "$@" > "$log" 2>&1
>
> I'm interested to pass .csv files with flume. Unfortunately, flume turns
> .csv file to .json, adding some fields.
>
> Example:
>
> original messsage:
>
> "a,b,c"
>
> flume transforms the message into:
>
> {"body":"\""a,b,c\"","timestamp":1345380385605,"pri":"INFO","nanos":275832626718182,"host":[host name],"fields":{"rolltag":"20120819-124542793+0000.275789814494811.00000011"}}
>
>