测试代码: 1import org.apache.spark.{SparkConf, SparkContext}2import org.apache.spark.sql.hive.HiveContext34/**5* Created by Administrator on 2017/1/7.6*/7objectTestMain {8def main(args: Array[String]): Unit ={9val conf =newSparkConf().setAppName("Hangzhou_Test")10//.setMaster("loca...