Re: Need help with String Concat Operation

2017-10-18 Thread
Hi Debu, First, Instead of using ‘+’, you can use ‘concat’ to concatenate string columns. And you should enclose “0” with "lit()" to make it a column. Second, 1440 become null because you didn’t tell spark what to do if the when clause is failed. So it simply set the value to null. To fix this,

Re: java.io.NotSerializableException about SparkStreaming

2017-10-17 Thread
Hi Shengshan, In first code, ‘newAPIJobConfiguration’ is sharing across all rdds. So, it should be serializable. In second code, each rdd creates a new ‘mytest_config’ object and an individual ‘newAPIJobConfiguration’ instead of sharing the same object. So it can be non-serializable. If it’s