spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Franke <>
Subject Re: AVRO Append HDFS using saveAsNewAPIHadoopFile
Date Mon, 09 Jan 2017 09:47:53 GMT
Avro itself supports it, but I am not sure if this functionality is available through the Spark
API. Just out of curiosity, if your use case is only write to HDFS then you might use simply

> On 9 Jan 2017, at 09:58, awkysam <> wrote:
> Currently for our project we are collecting data and pushing into Kafka with messages
are in Avro format. We need to push this data into HDFS and we are using SparkStreaming and
in HDFS also it is stored in Avro format. We are partitioning the data per each day. So when
we write data into HDFS we need to append to the same file. Curenttly we are using GenericRecordWriter
and we will be using saveAsNewAPIHadoopFile for writing into HDFS. Is there a way to append
data into file in HDFS with Avro format using saveAsNewAPIHadoopFile ? Thanks, Santosh B 
> View this message in context: AVRO Append HDFS using saveAsNewAPIHadoopFile
> Sent from the Apache Spark User List mailing list archive at

View raw message