spark 讀取hive 數據

1.啓動spark-shell 須要加上mysql jar位置 spark-shell --master local[2] --jars /Users/walle/app/mysql-connector-java-8.0.11.jar 2. 簡單sql spark.sql("show databases").show spark.sql("show tables").show spark.sql(
相關文章
相關標籤/搜索