import org.apache.spark.sql.SparkSession
val
spark = SparkSession.
builder
().master(
"spark://192.168.0.0:7077"
).enableHiveSupport().getOrCreate()
val sc = spark.sparkContext
val sqlContext = spark. sqlContext
//定义UDF函数
def stringLength(phone: String
val sc = spark.sparkContext
val sqlContext = spark. sqlContext
//定义UDF函数
def stringLength(phone: String