[
https://issues.apache.org/jira/browse/AVRO-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063938#comment-14063938
]
Scott Nottingham commented on AVRO-1286:
----------------------------------------
I was just trying to challenge the OP comment that "Standard in is not
seekable". Using the method I posted, something from the command line can be
piped ( | ) to a python script as standard in and used by the DataFileReader
constructor as if it were a file being read. This could be useful in
map/reduce jobs where Hadoop will try to send mapped data to a reduce python
script as stdin. For a continuous stream ( as it sounds like you are describing
) I don't think this method would work.
> Python script avro cat should be able to read from stdin
> --------------------------------------------------------
>
> Key: AVRO-1286
> URL: https://issues.apache.org/jira/browse/AVRO-1286
> Project: Avro
> Issue Type: Bug
> Components: python
> Reporter: Uri Laserson
> Priority: Minor
>
> Currently, you have to specify a target file on the command line. But it
> would be nice to be able to stream data through avro cat.
--
This message was sent by Atlassian JIRA
(v6.2#6252)