摘要: https://www.cnblogs.com/ohbigshit/p/14549238.html 02.Spark架构与运行流程https://www.cnblogs.com/ohbigshit/p/14854320.html 06.Spark SQL 及其DataFrame的基本操作https: 阅读全文
posted @ 2021-06-06 20:23 ohbigshit 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.Spark SQL出现的 原因是什么? Spark SQL是Spark用来处理结构化数据的一个模块,它提供了一个叫作Data Frame的编程抽象结构数据模型(即带有Schema信息的RDD),Spark SQL作为分布式SQL查询引擎,让用户可以通过SQL、DataFrame API和Data 阅读全文
posted @ 2021-06-06 00:16 ohbigshit 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1.pandas df 与 spark df的相互转换 df_s=spark.createDataFrame(df_p) df_p=df_s.toPandas() 2. Spark与Pandas中DataFrame对比 http://www.lining0806.com/spark%E4%B8%8E 阅读全文
posted @ 2021-06-06 00:07 ohbigshit 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1.安装启动检查Mysql服务。netstat -tunlp (3306) 2.spark 连接mysql驱动程序。–cp /usr/local/hive/lib/mysql-connector-java-5.1.40-bin.jar /usr/local/spark/jars 3.启动 Mysql 阅读全文
posted @ 2021-06-06 00:05 ohbigshit 阅读(16) 评论(0) 推荐(0) 编辑