Re: Writing to HDFS from spark Streaming

2015-02-16 Thread Sean Owen
PS this is the real fix to this issue: https://issues.apache.org/jira/browse/SPARK-5795 I'd like to merge it as I don't think it breaks the API; it actually fixes it to work as intended. On Mon, Feb 16, 2015 at 3:25 AM, Bahubali Jain wrote: > I used the latest assembly jar and the below as sugg

Re: Writing to HDFS from spark Streaming

2015-02-15 Thread Bahubali Jain
I used the latest assembly jar and the below as suggested by Akhil to fix this problem... temp.saveAsHadoopFiles("DailyCSV",".txt", String.class, String.class, *(Class)* TextOutputFormat.class); Thanks All for the help ! On Wed, Feb 11, 2015 at 1:38 PM, Sean Owen wrote: > That kinda dodges the

Re: Writing to HDFS from spark Streaming

2015-02-11 Thread Sean Owen
That kinda dodges the problem by ignoring generic types. But it may be simpler than the 'real' solution, which is a bit ugly. (But first, to double check, are you importing the correct TextOutputFormat? there are two versions. You use .mapred. with the old API and .mapreduce. with the new API.) H

Re: Writing to HDFS from spark Streaming

2015-02-10 Thread Akhil Das
Did you try : temp.saveAsHadoopFiles("DailyCSV",".txt", String.class, String.class, *(Class)* TextOutputFormat.class); Thanks Best Regards On Wed, Feb 11, 2015 at 9:40 AM, Bahubali Jain wrote: > Hi, > I am facing issues while writing data from a streaming rdd to hdfs.. > > JavaPairDstream temp

Writing to HDFS from spark Streaming

2015-02-10 Thread Bahubali Jain
Hi, I am facing issues while writing data from a streaming rdd to hdfs.. JavaPairDstream temp; ... ... temp.saveAsHadoopFiles("DailyCSV",".txt", String.class, String.class,TextOutputFormat.class); I see compilation issues as below... The method saveAsHadoopFiles(String, String, Class, Class, Cla