Parallel Algorithm Based on Hadoop,Spark.