Why are you using rawSocketStream to read the data? I believe
rawSocketStream waits for a big chunk of data before it can start
processing it. I think what you are writing is a String and you should use
socketTextStream which reads the data on a per line basis.
On Sun, Sep 20, 2015 at 9:56 AM,
Thanks a lot. Now it's working fine. I wasn't aware of "socketTextStream",
not sure if it was documented in the spark programming guide.
On Mon, Sep 21, 2015 at 12:46 PM, Hemant Bhanawat
wrote:
> Why are you using rawSocketStream to read the data? I believe
>
Hi,
I am trying to build a data generator that feeds a streaming application.
This data generator just reads a file and send its lines through a socket.
I get no errors on the logs, and the benchmark bellow always prints
"Received 0 records". Am I doing something wrong?
object MyDataGenerator {