Hello,

Currently I am writing multiple text files based on keys.
Code :

public class RDDMultipleTextOutputFormat extends
MultipleTextOutputFormat<String, String> {

    @Override
    protected String generateFileNameForKeyValue(String key, String value,
            String name) {
        return key;
    }}

rddPairs.saveAsHadoopFile(args[1], String.class, String.class,
RDDMultipleTextOutputFormat.class);

How to write multiple output in avro format.

Also I have checked *"Avro Data Source for Apache Spark" *by *databricks*

Is it possible to write Multiple output using this library?

-- 
*Regards,*
*Mahebub Sayyed*

Reply via email to