spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Georges Perrin <>
Subject Re: Spark streaming takes longer time to read json into dataframes
Date Sat, 16 Jul 2016 03:50:52 GMT
Do you need it on disk or just push it to memory? Can you try to increase memory or # of cores
(I know it sounds basic)

> On Jul 15, 2016, at 11:43 PM, Diwakar Dhanuskodi <>
> Hello, 
> I have 400K json messages pulled from Kafka into spark streaming using DirectStream approach.
Size of 400K messages is around 5G.  Kafka topic is single partitioned. I am using
inside foreachRDD to convert  rdd into dataframe. It takes almost 2.3 minutes to convert into
> I am running in Yarn client mode with executor memory as 15G and executor cores as 2.
> Caching rdd before converting into dataframe  doesn't change processing time. Whether
introducing hash partitions inside foreachRDD  will help? (or) Will partitioning topic and
have more than one DirectStream help?. How can I approach this situation to reduce time in
converting to dataframe.. 
> Regards, 
> Diwakar. 

To unsubscribe e-mail:

View raw message