通过spark-shell调用SparkSQL. 在启动spark shell时添加mysql-jdbc-driver.jar的依赖,然后import HiveContext,就可以正常使用SparkSQL了. 运行spark shell
確定! 回上一頁