add nsplit to groupByKey to achieve higher parallelism and lower
resource requirement
fix the problem printing to stdout without correctly encode