change:demo code with spark1.0.1