├── README.md └── code ├── 第10章 ├── monitorAlarmCount │ ├── pom.xml │ ├── run.sh │ └── src │ │ ├── com │ │ └── hp │ │ │ └── log │ │ │ ├── debug.log │ │ │ ├── error.log │ │ │ ├── info.log │ │ │ ├── info.log_2018-12-09.log │ │ │ ├── info.log_2018-12-10.log │ │ │ ├── warn.log │ │ │ └── warn.log_2018-12-09.log │ │ └── main │ │ ├── java │ │ └── sparkstreaming_action │ │ │ └── count │ │ │ ├── dao │ │ │ ├── MonitorGamesDao.java │ │ │ └── RulesDao.java │ │ │ ├── entity │ │ │ ├── Alarm.java │ │ │ ├── MonitorGames.java │ │ │ ├── Record.java │ │ │ └── Rule.java │ │ │ ├── main │ │ │ └── ConsumerMain.java │ │ │ ├── service │ │ │ ├── AlarmLayer.java │ │ │ ├── CountLayer.java │ │ │ └── FilterLayer.java │ │ │ └── util │ │ │ ├── CommonUtils.java │ │ │ ├── ConfigUtils.java │ │ │ ├── KafkaUtils.java │ │ │ ├── MysqlUtils.java │ │ │ ├── TimeUtils.java │ │ │ └── TrashFilterUtils.java │ │ └── resources │ │ ├── config.properties │ │ ├── log4j.properties │ │ ├── patterns_appstore.txt │ │ └── patterns_forum.txt ├── monitorAlarmCrawler │ ├── consume.sh │ ├── crawl_reviews.sh │ ├── pom.xml │ └── src │ │ └── main │ │ ├── resources │ │ └── log4j.properties │ │ └── scala │ │ └── sparkstreaming_action │ │ └── crawler │ │ ├── dao │ │ └── MysqlPool.scala │ │ ├── main │ │ ├── ConsumerTest.scala │ │ ├── Crawler.scala │ │ └── Producer.scala │ │ └── util │ │ └── Conf.scala ├── monitorAlarmStatistic │ ├── pom.xml │ ├── run.sh │ └── src │ │ └── main │ │ ├── resources │ │ └── log4j.properties │ │ └── scala │ │ └── sparkstreaming_action │ │ └── alarm │ │ ├── dao │ │ ├── KafkaSink.scala │ │ └── MysqlPool.scala │ │ ├── entity │ │ ├── MonitorGame.scala │ │ └── Record.scala │ │ ├── main │ │ └── MonitorAlarmStatistic.scala │ │ ├── service │ │ ├── JsonParse.scala │ │ ├── MysqlService.scala │ │ └── SegmentService.scala │ │ └── util │ │ ├── BroadcastWrapper.scala │ │ └── Conf.scala └── monitor_alarm.sql ├── 第2章 └── wordFreqFileSpark │ ├── .cache-main │ ├── .classpath │ ├── .project │ ├── .settings │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.scala-ide.sdt.core.prefs │ ├── input.txt │ ├── pom.xml │ ├── run.sh │ └── src │ └── main │ └── scala │ └── sparkstreaming_action │ └── wordfreq │ └── main │ └── WordFreq.scala ├── 第3章 └── rddOperation │ ├── name_addr.txt │ ├── name_phone.txt │ ├── pom.xml │ ├── run.sh │ └── src │ └── main │ └── scala │ └── sparkstreaming_action │ └── rdd │ └── operation │ └── RDDOperation.scala ├── 第4章 └── wordFreqSocket │ ├── .cache-main │ ├── .classpath │ ├── .project │ ├── .settings │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs │ ├── pom.xml │ ├── run.sh │ └── src │ └── main │ └── scala │ └── sparkstreaming_action │ └── socket │ └── main │ └── Socket.scala ├── 第5章 ├── kafkaGenerator │ ├── generate.sh │ ├── pom.xml │ └── src │ │ └── main │ │ └── scala │ │ └── sparkstreaming_action │ │ └── kafka │ │ └── generator │ │ └── Producer.scala └── kafkaSparkStreaming │ ├── pom.xml │ ├── run.sh │ └── src │ └── main │ └── scala │ └── sparkstreaming_action │ └── kafka │ └── operation │ └── KafkaOperation.scala ├── 第6章 ├── logAnalysis │ ├── 20180101.log │ ├── 20180102.log │ ├── log_analysis.sql │ ├── pom.xml │ ├── run.sh │ └── src │ │ └── main │ │ └── scala │ │ └── sparkstreaming_action │ │ └── log │ │ └── analysis │ │ └── LogAnalysis.scala └── save2File │ ├── .cache-main │ ├── .classpath │ ├── .project │ ├── .settings │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs │ ├── input │ ├── news1 │ └── news2 │ ├── news1 │ ├── news2 │ ├── pom.xml │ ├── run.sh │ └── src │ └── main │ └── scala │ └── sparkstreaming_action │ └── save2file │ └── main │ └── Save2File.scala ├── 第8章 ├── simpleSeg │ └── segmentor.py ├── wordFreqGenerator │ ├── .cache-main │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.jdt.core.prefs │ │ └── org.eclipse.m2e.core.prefs │ ├── consume.sh │ ├── generate.sh │ ├── hanzi.txt │ ├── pom.xml │ └── src │ │ └── main │ │ ├── resources │ │ └── log4j.properties │ │ └── scala │ │ └── sparkstreaming_action │ │ └── producer │ │ └── main │ │ ├── ConsumerTest.scala │ │ └── Producer.scala ├── wordFreqKafkaMysql │ ├── .cache-main │ ├── .classpath │ ├── .project │ ├── .settings │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── org.eclipse.m2e.core.prefs │ │ └── org.scala-ide.sdt.core.prefs │ ├── README │ ├── pom.xml │ ├── run.sh │ └── src │ │ ├── main │ │ ├── resources │ │ │ └── log4j.properties │ │ └── scala │ │ │ └── sparkstreaming_action │ │ │ └── wordfreq │ │ │ ├── dao │ │ │ ├── KafkaCluster.scala │ │ │ ├── KafkaManager.scala │ │ │ └── MysqlPool.scala │ │ │ ├── main │ │ │ └── ConsumerMain.scala │ │ │ ├── service │ │ │ ├── MysqlService.scala │ │ │ └── SegmentService.scala │ │ │ └── util │ │ │ ├── BroadcastWrapper.scala │ │ │ ├── Conf.scala │ │ │ └── TimeParse.scala │ │ └── test │ │ └── scala │ │ └── bee │ │ └── test │ │ └── Test.scala └── word_freq.sql └── 第9章 ├── userBehaviorGenerator ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── consume.sh ├── generate.sh ├── pom.xml └── src │ └── main │ ├── resources │ └── log4j.properties │ └── scala │ └── sparkstreaming_action │ └── producer │ └── main │ ├── ConsumerTest.scala │ └── Producer.scala └── userBehaviorStatistic ├── .classpath ├── .idea ├── hydra.xml ├── libraries │ └── target.xml ├── misc.xml ├── modules.xml └── workspace.xml ├── .project ├── .settings ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── pom.xml ├── run.sh └── src └── main ├── main.iml ├── resources └── log4j.properties └── scala └── sparkstreaming_action └── userbehavior ├── dao └── RedisDao.scala ├── main ├── FrequencyStrategy.scala ├── RealFeatureStatistic.scala └── RealStrategy.scala └── util ├── Conf.scala ├── RedisUtil.scala └── Tool.scala /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/README.md -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/pom.xml -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/run.sh: -------------------------------------------------------------------------------- 1 | nohup mvn exec:java & -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/debug.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/debug.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/error.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/info.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/info.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/info.log_2018-12-09.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/info.log_2018-12-09.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/info.log_2018-12-10.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/info.log_2018-12-10.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/warn.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/warn.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/com/hp/log/warn.log_2018-12-09.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/com/hp/log/warn.log_2018-12-09.log -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/dao/MonitorGamesDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/dao/MonitorGamesDao.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/dao/RulesDao.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/dao/RulesDao.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Alarm.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Alarm.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/MonitorGames.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/MonitorGames.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Record.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Record.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Rule.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/entity/Rule.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/main/ConsumerMain.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/main/ConsumerMain.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/AlarmLayer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/AlarmLayer.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/CountLayer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/CountLayer.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/FilterLayer.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/service/FilterLayer.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/CommonUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/CommonUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/ConfigUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/ConfigUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/KafkaUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/KafkaUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/MysqlUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/MysqlUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/TimeUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/TimeUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/TrashFilterUtils.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/java/sparkstreaming_action/count/util/TrashFilterUtils.java -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/resources/config.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/resources/config.properties -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/resources/patterns_appstore.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/resources/patterns_appstore.txt -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCount/src/main/resources/patterns_forum.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCount/src/main/resources/patterns_forum.txt -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/consume.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/consume.sh -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/crawl_reviews.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/crawl_reviews.sh -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/pom.xml -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/dao/MysqlPool.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/dao/MysqlPool.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/ConsumerTest.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/ConsumerTest.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/Crawler.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/Crawler.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/Producer.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/main/Producer.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/util/Conf.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmCrawler/src/main/scala/sparkstreaming_action/crawler/util/Conf.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/pom.xml -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/run.sh -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/dao/KafkaSink.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/dao/KafkaSink.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/dao/MysqlPool.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/dao/MysqlPool.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/entity/MonitorGame.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/entity/MonitorGame.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/entity/Record.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/entity/Record.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/main/MonitorAlarmStatistic.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/main/MonitorAlarmStatistic.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/JsonParse.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/JsonParse.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/MysqlService.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/MysqlService.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/SegmentService.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/service/SegmentService.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/util/BroadcastWrapper.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/util/BroadcastWrapper.scala -------------------------------------------------------------------------------- /code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/util/Conf.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitorAlarmStatistic/src/main/scala/sparkstreaming_action/alarm/util/Conf.scala -------------------------------------------------------------------------------- /code/第10章/monitor_alarm.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第10章/monitor_alarm.sql -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.cache-main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.cache-main -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.classpath -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.project -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/.settings/org.scala-ide.sdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/.settings/org.scala-ide.sdt.core.prefs -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/input.txt -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/pom.xml -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/run.sh -------------------------------------------------------------------------------- /code/第2章/wordFreqFileSpark/src/main/scala/sparkstreaming_action/wordfreq/main/WordFreq.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第2章/wordFreqFileSpark/src/main/scala/sparkstreaming_action/wordfreq/main/WordFreq.scala -------------------------------------------------------------------------------- /code/第3章/rddOperation/name_addr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第3章/rddOperation/name_addr.txt -------------------------------------------------------------------------------- /code/第3章/rddOperation/name_phone.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第3章/rddOperation/name_phone.txt -------------------------------------------------------------------------------- /code/第3章/rddOperation/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第3章/rddOperation/pom.xml -------------------------------------------------------------------------------- /code/第3章/rddOperation/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第3章/rddOperation/run.sh -------------------------------------------------------------------------------- /code/第3章/rddOperation/src/main/scala/sparkstreaming_action/rdd/operation/RDDOperation.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第3章/rddOperation/src/main/scala/sparkstreaming_action/rdd/operation/RDDOperation.scala -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/.cache-main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/.cache-main -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/.classpath -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/.project -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/pom.xml -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/run.sh -------------------------------------------------------------------------------- /code/第4章/wordFreqSocket/src/main/scala/sparkstreaming_action/socket/main/Socket.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第4章/wordFreqSocket/src/main/scala/sparkstreaming_action/socket/main/Socket.scala -------------------------------------------------------------------------------- /code/第5章/kafkaGenerator/generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaGenerator/generate.sh -------------------------------------------------------------------------------- /code/第5章/kafkaGenerator/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaGenerator/pom.xml -------------------------------------------------------------------------------- /code/第5章/kafkaGenerator/src/main/scala/sparkstreaming_action/kafka/generator/Producer.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaGenerator/src/main/scala/sparkstreaming_action/kafka/generator/Producer.scala -------------------------------------------------------------------------------- /code/第5章/kafkaSparkStreaming/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaSparkStreaming/pom.xml -------------------------------------------------------------------------------- /code/第5章/kafkaSparkStreaming/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaSparkStreaming/run.sh -------------------------------------------------------------------------------- /code/第5章/kafkaSparkStreaming/src/main/scala/sparkstreaming_action/kafka/operation/KafkaOperation.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第5章/kafkaSparkStreaming/src/main/scala/sparkstreaming_action/kafka/operation/KafkaOperation.scala -------------------------------------------------------------------------------- /code/第6章/logAnalysis/20180101.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/20180101.log -------------------------------------------------------------------------------- /code/第6章/logAnalysis/20180102.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/20180102.log -------------------------------------------------------------------------------- /code/第6章/logAnalysis/log_analysis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/log_analysis.sql -------------------------------------------------------------------------------- /code/第6章/logAnalysis/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/pom.xml -------------------------------------------------------------------------------- /code/第6章/logAnalysis/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/run.sh -------------------------------------------------------------------------------- /code/第6章/logAnalysis/src/main/scala/sparkstreaming_action/log/analysis/LogAnalysis.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/logAnalysis/src/main/scala/sparkstreaming_action/log/analysis/LogAnalysis.scala -------------------------------------------------------------------------------- /code/第6章/save2File/.cache-main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/.cache-main -------------------------------------------------------------------------------- /code/第6章/save2File/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/.classpath -------------------------------------------------------------------------------- /code/第6章/save2File/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/.project -------------------------------------------------------------------------------- /code/第6章/save2File/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第6章/save2File/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第6章/save2File/input/news1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/input/news1 -------------------------------------------------------------------------------- /code/第6章/save2File/input/news2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/input/news2 -------------------------------------------------------------------------------- /code/第6章/save2File/news1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/news1 -------------------------------------------------------------------------------- /code/第6章/save2File/news2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/news2 -------------------------------------------------------------------------------- /code/第6章/save2File/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/pom.xml -------------------------------------------------------------------------------- /code/第6章/save2File/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/run.sh -------------------------------------------------------------------------------- /code/第6章/save2File/src/main/scala/sparkstreaming_action/save2file/main/Save2File.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第6章/save2File/src/main/scala/sparkstreaming_action/save2file/main/Save2File.scala -------------------------------------------------------------------------------- /code/第8章/simpleSeg/segmentor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/simpleSeg/segmentor.py -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/.cache-main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/.cache-main -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/.classpath -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/.project -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/consume.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/consume.sh -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/generate.sh -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/hanzi.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/hanzi.txt -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/pom.xml -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/src/main/scala/sparkstreaming_action/producer/main/ConsumerTest.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/src/main/scala/sparkstreaming_action/producer/main/ConsumerTest.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqGenerator/src/main/scala/sparkstreaming_action/producer/main/Producer.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqGenerator/src/main/scala/sparkstreaming_action/producer/main/Producer.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.cache-main: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.cache-main -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.classpath -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.project -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/.settings/org.scala-ide.sdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/.settings/org.scala-ide.sdt.core.prefs -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/README -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/pom.xml -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/run.sh -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/KafkaCluster.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/KafkaCluster.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/KafkaManager.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/KafkaManager.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/MysqlPool.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/dao/MysqlPool.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/main/ConsumerMain.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/main/ConsumerMain.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/service/MysqlService.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/service/MysqlService.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/service/SegmentService.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/service/SegmentService.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/BroadcastWrapper.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/BroadcastWrapper.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/Conf.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/Conf.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/TimeParse.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/main/scala/sparkstreaming_action/wordfreq/util/TimeParse.scala -------------------------------------------------------------------------------- /code/第8章/wordFreqKafkaMysql/src/test/scala/bee/test/Test.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/wordFreqKafkaMysql/src/test/scala/bee/test/Test.scala -------------------------------------------------------------------------------- /code/第8章/word_freq.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第8章/word_freq.sql -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/.classpath -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/.project -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/consume.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/consume.sh -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/generate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/generate.sh -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/pom.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/src/main/scala/sparkstreaming_action/producer/main/ConsumerTest.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/src/main/scala/sparkstreaming_action/producer/main/ConsumerTest.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorGenerator/src/main/scala/sparkstreaming_action/producer/main/Producer.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorGenerator/src/main/scala/sparkstreaming_action/producer/main/Producer.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.classpath -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.idea/hydra.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.idea/hydra.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.idea/libraries/target.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.idea/libraries/target.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.idea/misc.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.idea/misc.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.idea/modules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.idea/modules.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.idea/workspace.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.idea/workspace.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.project -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/pom.xml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/run.sh -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/main.iml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/main.iml -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/resources/log4j.properties -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/dao/RedisDao.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/dao/RedisDao.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/FrequencyStrategy.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/FrequencyStrategy.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/RealFeatureStatistic.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/RealFeatureStatistic.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/RealStrategy.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/main/RealStrategy.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/Conf.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/Conf.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/RedisUtil.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/RedisUtil.scala -------------------------------------------------------------------------------- /code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/Tool.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xlturing/spark-streaming-action/HEAD/code/第9章/userBehaviorStatistic/src/main/scala/sparkstreaming_action/userbehavior/util/Tool.scala --------------------------------------------------------------------------------