上一页 1 2 3 4 5 6 7 8 ··· 48 下一页
摘要: package dataframe import org.apache.spark.sql.{DataFrame, Dataset, SparkSession} //// Explore interoperability between DataFrame and Dataset. Note tha 阅读全文
posted @ 2018-01-23 09:19 Alamps 阅读(4127) 评论(0) 推荐(0) 编辑
摘要: Hadoop、Storm系统和组件接口对比表: package storm; import org.apache.storm.Config;import org.apache.storm.StormSubmitter;import org.apache.storm.generated.StormTo 阅读全文
posted @ 2018-01-18 18:52 Alamps 阅读(532) 评论(0) 推荐(0) 编辑
摘要: [root@alamps TestDir]# hadoop fs -chown hadoop:hadoop hdfs://alamps:9000/library/SparkStreaming/data/[root@alamps TestDir]# hadoop fs -chown hadoop:ha 阅读全文
posted @ 2018-01-13 15:57 Alamps 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 1: Exception in thread "main" org.apache.spark.SparkException: org.apache.spark.streaming.dstream.MappedDStream@5a69b104 has not been initialized 原因: StreamingContext.checkpoint(...)指定的checkpoint目录下... 阅读全文
posted @ 2018-01-13 15:53 Alamps 阅读(214) 评论(0) 推荐(0) 编辑
摘要: package stream.scala import java.io.PrintWriter import java.net.ServerSocket class LoggerSimulation { } object LoggerSimulation{ /** * 生成一个字母 * @param 字母的下标 * @return 生成的字母 ... 阅读全文
posted @ 2018-01-12 11:01 Alamps 阅读(316) 评论(0) 推荐(0) 编辑
摘要: package sql import org.apache.spark.sql.SparkSession import org.apache.spark.SparkContext object Parquet extends App { val spark = SparkSession .builder() .appName("Spark SQL basic exampl... 阅读全文
posted @ 2018-01-11 13:14 Alamps 阅读(600) 评论(0) 推荐(0) 编辑
摘要: import java.util.concurrent.CountDownLatch; import java.util.concurrent.CyclicBarrier; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; public class CountdownLatch... 阅读全文
posted @ 2018-01-04 22:50 Alamps 阅读(189) 评论(3) 推荐(0) 编辑
摘要: package sql; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.sql.DataFrame; import org.apache.spark.sql.SQLContext; /** * */ public... 阅读全文
posted @ 2017-12-29 14:22 Alamps 阅读(267) 评论(1) 推荐(0) 编辑
摘要: package core.java; import java.util.Arrays; import java.util.List; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaSparkContext;... 阅读全文
posted @ 2017-12-27 20:29 Alamps 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #移动数据 UPDATE dcs_organize_user AS a, dcs_organize_user AS b SET a.SHORTTELNO=b.USERTELNO WHERE a.id=b.id; #字段加前缀 UPDATE dcs_organize_user SET USERTELNO=CONCAT('0038089819',USERTELNO); 阅读全文
posted @ 2017-12-21 16:13 Alamps 阅读(252) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 48 下一页