[SPARK-4295][External]Fix exception in SparkSinkSuite

Handle exception in SparkSinkSuite, please refer to [SPARK-4295]
Haha, that's nifty, but hugely non-intuitive. Rather, please use `scala.util.Random.nextString(10)`