![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小错误
企鹅席地而坐
这个作者很懒,什么都没留下…
展开
-
websocket连接失败!!
连接socket的时一定要把url对上: 我的127.0.0.1就是localhost 如果tomcat配置的是 那这里也要改成原创 2020-04-03 18:03:46 · 5866 阅读 · 2 评论 -
Command line is too long. Shorten command line for OOP or also for Application default configuration
idea运行代码时出现 解决: 在.idea文件夹里的workspace.xml中的 标签下添加: <property name="dynamic.classpath" value="true" />原创 2019-12-14 16:39:34 · 416 阅读 · 0 评论 -
解决rdd无法调用toDF及 value toDF is not a member of org.apache.spark.rdd.RDD[names]
编译代码 object homework01 { def main(args: Array[String]): Unit = { val conf = new SparkConf().setAppName("ch2homework01").setMaster("local[4]") val sc = new SparkContext(conf) val sp...原创 2019-12-10 13:58:41 · 1573 阅读 · 0 评论 -
读取文件时,读取hdfs集群的文件和本机文件的scala代码写法
读取hdfs集群的文件 val file=sc.textFile("/data/wordcount.txt") 不能写成:val file=sc.textFile(“hdfs:IP地址///data/wordcount.txt”) 读取本机文件 val file=sc.textFile(“file:///data/wordcount.txt”) ...原创 2019-12-06 10:02:31 · 696 阅读 · 0 评论