finish spark sql and mllib