Spark 版本 WordCount
一、环境准备
今天我们看下Spark 版本的 wordcount,IDEA 新建 Maven 项目引入依赖:使用 spark 3.0.0,对应scala 版本2.12
<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.12</artifactId> <version>3.0.0</version> </dependency>
在 resources 目录下创建 log4j.properties 配置文件,设置日志级别
log4j.rootCategory=ERROR, console log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.target=System.err log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n # Set the default spark-shell log level to ERROR. When running the spark-shell, the # log level for this class is used to overwrite the root logger's log level, so that # the user can have different defaults for the shell and regular Spark apps. log4j.logger.org.apache.spark.repl.Main=ERROR # Settings to quiet third party logs that are too verbose log4j.logger.org.spark_project.jetty=ERROR log4j.logger.org.spark_project.jetty.util.component.AbstractLifeCycle=ERROR log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=ERROR log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=ERROR log4j.logger.org.apache.parquet=ERROR log4j.logger.parquet=ERROR # SPARK-9183: Settings to avoid annoying messages when looking up nonexistent UDFs in SparkSQL with Hive support log4j.logger.org.apache.hadoop.hive.metastore.RetryingHMSHandler=FATAL log4j.logger.org.apache.hadoop.hive.ql.exec.FunctionRegistry=ERROR
二、编程
版本1
import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} object Spark01_WordCount { def main(args: Array[String]): Unit = { // 获取链接 val sparkConf = new SparkConf().setMaster("local").setAppName("WordCount") val sc = new SparkContext(sparkConf) //执行业务操作 //1、按行读取文件 hello world val lines: RDD[String] = sc.textFile("data") //2、按分隔分词 val words: RDD[String] = lines.flatMap(_.split(" ")) //3、聚合 val wordGroup: RDD[(String, Iterable[String])] = words.groupBy(word => word) val wordToCount: RDD[(String, Int)] = wordGroup.map { //模式匹配 case (word, list) => { (word, list.size) } } val arrays : Array[(String, Int)] = wordToCount.collect() arrays.foreach(println) //关闭链接 sc.stop() } }
版本二
import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} object Spark02_WordCount { def main(args: Array[String]): Unit = { // 获取链接 val sparkConf = new SparkConf().setMaster("local").setAppName("WordCount") val sc = new SparkContext(sparkConf) //执行业务操作 //1、按行读取文件 hello world val lines: RDD[String] = sc.textFile("data") //2、分词 val words: RDD[String] = lines.flatMap(_.split(" ")) val wordToOne: RDD[(String, Int)] = words.map( word => (word, 1) ) //3、聚合 val groupRDD: RDD[(String, Iterable[(String, Int)])] = wordToOne.groupBy(t => t._1) val wordToCount: RDD[(String, Int)] = groupRDD.map { case (word, list) => { list.reduce( (t1, t2) => { (t1._1, t2._2 + t2._2) } ) } } val arrays: Array[(String, Int)] = wordToCount.collect() arrays.foreach(println) //关闭链接 sc.stop() } }
版本三
import org.apache.spark.rdd.RDD import org.apache.spark.{SparkConf, SparkContext} object Spark03_WordCount { def main(args: Array[String]): Unit = { // 获取链接 val sparkConf = new SparkConf().setMaster("local").setAppName("WordCount") val sc = new SparkContext(sparkConf) //执行业务操作 //1、按行读取文件 hello world val lines: RDD[String] = sc.textFile("data") //2、分词 val words: RDD[String] = lines.flatMap(_.split(" ")) val wordToOne: RDD[(String, Int)] = words.map( word => (word, 1) ) //3、聚合reduceByKey 相同的 key 对 V 进行聚合 val wordToCount: RDD[(String, Int)] = wordToOne.reduceByKey(_ + _) val arrays: Array[(String, Int)] = wordToCount.collect() arrays.foreach(println) //关闭链接 sc.stop() } }
运行结果
E:\Tools\work_tools\jdk1.8\bin\java.exe "-javaagent:D:\tool\IntelliJ IDEA 2020.1\lib\idea_rt.jar=51722:D:\tool\IntelliJ IDEA 2020.1\bin" -Dfile.encoding=UTF-8 -classpath E:\Tools\work_tools\jdk1.8\jre\lib\charsets.jar;E:\Tools\work_tools\jdk1.8\jre\lib\deploy.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\access-bridge-64.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\cldrdata.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\dnsns.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\jaccess.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\jfxrt.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\localedata.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\nashorn.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\sunec.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\sunjce_provider.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\sunmscapi.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\sunpkcs11.jar;E:\Tools\work_tools\jdk1.8\jre\lib\ext\zipfs.jar;E:\Tools\work_tools\jdk1.8\jre\lib\javaws.jar;E:\Tools\work_tools\jdk1.8\jre\lib\jce.jar;E:\Tools\work_tools\jdk1.8\jre\lib\jfr.jar;E:\Tools\work_tools\jdk1.8\jre\lib\jfxswt.jar;E:\Tools\work_tools\jdk1.8\jre\lib\jsse.jar;E:\Tools\work_tools\jdk1.8\jre\lib\management-agent.jar;E:\Tools\work_tools\jdk1.8\jre\lib\plugin.jar;E:\Tools\work_tools\jdk1.8\jre\lib\resources.jar;E:\Tools\work_tools\jdk1.8\jre\lib\rt.jar;E:\workspace_idea\wdh01-clases\spark-core\target\classes;E:\Tools\work_tools\scala-2.12.12\lib\scala-library.jar;E:\Tools\work_tools\scala-2.12.12\lib\scala-parser-combinators_2.12-1.0.7.jar;E:\Tools\work_tools\scala-2.12.12\lib\scala-reflect.jar;E:\Tools\work_tools\scala-2.12.12\lib\scala-swing_2.12-2.0.3.jar;E:\Tools\work_tools\scala-2.12.12\lib\scala-xml_2.12-1.0.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-core_2.12\3.0.0\spark-core_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\thoughtworks\paranamer\paranamer\2.8\paranamer-2.8.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\avro\avro\1.8.2\avro-1.8.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\jackson\jackson-core-asl\1.9.13\jackson-core-asl-1.9.13.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\commons\commons-compress\1.8.1\commons-compress-1.8.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\tukaani\xz\1.5\xz-1.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\avro\avro-mapred\1.8.2\avro-mapred-1.8.2-hadoop2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\avro\avro-ipc\1.8.2\avro-ipc-1.8.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-codec\commons-codec\1.9\commons-codec-1.9.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\twitter\chill_2.12\0.9.5\chill_2.12-0.9.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\esotericsoftware\kryo-shaded\4.0.2\kryo-shaded-4.0.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\esotericsoftware\minlog\1.3.0\minlog-1.3.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\objenesis\objenesis\2.5.1\objenesis-2.5.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\twitter\chill-java\0.9.5\chill-java-0.9.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\xbean\xbean-asm7-shaded\4.15\xbean-asm7-shaded-4.15.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-client\2.7.4\hadoop-client-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-common\2.7.4\hadoop-common-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\xmlenc\xmlenc\0.52\xmlenc-0.52.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-httpclient\commons-httpclient\3.1\commons-httpclient-3.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\mortbay\jetty\jetty-sslengine\6.1.26\jetty-sslengine-6.1.26.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\javax\servlet\jsp\jsp-api\2.1\jsp-api-2.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-configuration\commons-configuration\1.6\commons-configuration-1.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-digester\commons-digester\1.8\commons-digester-1.8.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\google\code\gson\gson\2.2.4\gson-2.2.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-auth\2.7.4\hadoop-auth-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\httpcomponents\httpclient\4.2.5\httpclient-4.2.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\httpcomponents\httpcore\4.2.4\httpcore-4.2.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\directory\server\apacheds-kerberos-codec\2.0.0-M15\apacheds-kerberos-codec-2.0.0-M15.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\directory\server\apacheds-i18n\2.0.0-M15\apacheds-i18n-2.0.0-M15.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\directory\api\api-asn1-api\1.0.0-M20\api-asn1-api-1.0.0-M20.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\directory\api\api-util\1.0.0-M20\api-util-1.0.0-M20.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\curator\curator-client\2.7.1\curator-client-2.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\htrace\htrace-core\3.1.0-incubating\htrace-core-3.1.0-incubating.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-hdfs\2.7.4\hadoop-hdfs-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\mortbay\jetty\jetty-util\6.1.26\jetty-util-6.1.26.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\xml-apis\xml-apis\1.3.04\xml-apis-1.3.04.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-mapreduce-client-app\2.7.4\hadoop-mapreduce-client-app-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-mapreduce-client-common\2.7.4\hadoop-mapreduce-client-common-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-yarn-client\2.7.4\hadoop-yarn-client-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-yarn-server-common\2.7.4\hadoop-yarn-server-common-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-mapreduce-client-shuffle\2.7.4\hadoop-mapreduce-client-shuffle-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-yarn-api\2.7.4\hadoop-yarn-api-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-mapreduce-client-core\2.7.4\hadoop-mapreduce-client-core-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-yarn-common\2.7.4\hadoop-yarn-common-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\javax\xml\bind\jaxb-api\2.2.2\jaxb-api-2.2.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\jackson\jackson-jaxrs\1.9.13\jackson-jaxrs-1.9.13.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\jackson\jackson-xc\1.9.13\jackson-xc-1.9.13.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-mapreduce-client-jobclient\2.7.4\hadoop-mapreduce-client-jobclient-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hadoop\hadoop-annotations\2.7.4\hadoop-annotations-2.7.4.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-launcher_2.12\3.0.0\spark-launcher_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-kvstore_2.12\3.0.0\spark-kvstore_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\fusesource\leveldbjni\leveldbjni-all\1.8\leveldbjni-all-1.8.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\fasterxml\jackson\core\jackson-annotations\2.10.0\jackson-annotations-2.10.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-network-common_2.12\3.0.0\spark-network-common_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-network-shuffle_2.12\3.0.0\spark-network-shuffle_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-unsafe_2.12\3.0.0\spark-unsafe_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\javax\activation\activation\1.1.1\activation-1.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\curator\curator-recipes\2.7.1\curator-recipes-2.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\curator\curator-framework\2.7.1\curator-framework-2.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\google\guava\guava\16.0.1\guava-16.0.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\zookeeper\zookeeper\3.4.14\zookeeper-3.4.14.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\yetus\audience-annotations\0.5.0\audience-annotations-0.5.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\commons\commons-math3\3.4.1\commons-math3-3.4.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\commons\commons-text\1.6\commons-text-1.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\google\code\findbugs\jsr305\3.0.0\jsr305-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\slf4j\jcl-over-slf4j\1.7.30\jcl-over-slf4j-1.7.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\log4j\log4j\1.2.17\log4j-1.2.17.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\slf4j\slf4j-log4j12\1.7.30\slf4j-log4j12-1.7.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\ning\compress-lzf\1.0.3\compress-lzf-1.0.3.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\xerial\snappy\snappy-java\1.1.7.5\snappy-java-1.1.7.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\lz4\lz4-java\1.7.1\lz4-java-1.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\github\luben\zstd-jni\1.4.4-3\zstd-jni-1.4.4-3.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\roaringbitmap\RoaringBitmap\0.7.45\RoaringBitmap-0.7.45.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\roaringbitmap\shims\0.7.45\shims-0.7.45.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-net\commons-net\3.1\commons-net-3.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\scala-lang\modules\scala-xml_2.12\1.2.0\scala-xml_2.12-1.2.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\scala-lang\scala-library\2.12.10\scala-library-2.12.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\scala-lang\scala-reflect\2.12.10\scala-reflect-2.12.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\json4s\json4s-jackson_2.12\3.6.6\json4s-jackson_2.12-3.6.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\json4s\json4s-core_2.12\3.6.6\json4s-core_2.12-3.6.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\json4s\json4s-ast_2.12\3.6.6\json4s-ast_2.12-3.6.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\json4s\json4s-scalap_2.12\3.6.6\json4s-scalap_2.12-3.6.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\core\jersey-client\2.30\jersey-client-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\jakarta\ws\rs\jakarta.ws.rs-api\2.1.6\jakarta.ws.rs-api-2.1.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\external\jakarta.inject\2.6.1\jakarta.inject-2.6.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\core\jersey-common\2.30\jersey-common-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\osgi-resource-locator\1.0.3\osgi-resource-locator-1.0.3.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\core\jersey-server\2.30\jersey-server-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\media\jersey-media-jaxb\2.30\jersey-media-jaxb-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\containers\jersey-container-servlet\2.30\jersey-container-servlet-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\containers\jersey-container-servlet-core\2.30\jersey-container-servlet-core-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\jersey\inject\jersey-hk2\2.30\jersey-hk2-2.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\hk2-locator\2.6.1\hk2-locator-2.6.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\external\aopalliance-repackaged\2.6.1\aopalliance-repackaged-2.6.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\hk2-api\2.6.1\hk2-api-2.6.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\glassfish\hk2\hk2-utils\2.6.1\hk2-utils-2.6.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\javassist\javassist\3.25.0-GA\javassist-3.25.0-GA.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\netty\netty-all\4.1.47.Final\netty-all-4.1.47.Final.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\clearspring\analytics\stream\2.9.6\stream-2.9.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\dropwizard\metrics\metrics-core\4.1.1\metrics-core-4.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\dropwizard\metrics\metrics-jvm\4.1.1\metrics-jvm-4.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\dropwizard\metrics\metrics-json\4.1.1\metrics-json-4.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\dropwizard\metrics\metrics-graphite\4.1.1\metrics-graphite-4.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\dropwizard\metrics\metrics-jmx\4.1.1\metrics-jmx-4.1.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\fasterxml\jackson\core\jackson-databind\2.10.0\jackson-databind-2.10.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\fasterxml\jackson\module\jackson-module-scala_2.12\2.10.0\jackson-module-scala_2.12-2.10.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\fasterxml\jackson\module\jackson-module-paranamer\2.10.0\jackson-module-paranamer-2.10.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\ivy\ivy\2.4.0\ivy-2.4.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\oro\oro\2.0.8\oro-2.0.8.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\net\razorvine\pyrolite\4.30\pyrolite-4.30.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\net\sf\py4j\py4j\0.10.9\py4j-0.10.9.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-tags_2.12\3.0.0\spark-tags_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\commons\commons-crypto\1.0.0\commons-crypto-1.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\spark-project\spark\unused\1.0.0\unused-1.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-sql_2.12\3.0.0\spark-sql_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\univocity\univocity-parsers\2.8.3\univocity-parsers-2.8.3.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-sketch_2.12\3.0.0\spark-sketch_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-catalyst_2.12\3.0.0\spark-catalyst_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\scala-lang\modules\scala-parser-combinators_2.12\1.1.2\scala-parser-combinators_2.12-1.1.2.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\janino\janino\3.0.16\janino-3.0.16.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\codehaus\janino\commons-compiler\3.0.16\commons-compiler-3.0.16.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\antlr\antlr4-runtime\4.7.1\antlr4-runtime-4.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\arrow\arrow-vector\0.15.1\arrow-vector-0.15.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\arrow\arrow-format\0.15.1\arrow-format-0.15.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\arrow\arrow-memory\0.15.1\arrow-memory-0.15.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\google\flatbuffers\flatbuffers-java\1.9.0\flatbuffers-java-1.9.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\orc\orc-core\1.5.10\orc-core-1.5.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\orc\orc-shims\1.5.10\orc-shims-1.5.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\google\protobuf\protobuf-java\2.5.0\protobuf-java-2.5.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\io\airlift\aircompressor\0.10\aircompressor-0.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\threeten\threeten-extra\1.5.0\threeten-extra-1.5.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\orc\orc-mapreduce\1.5.10\orc-mapreduce-1.5.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\hive\hive-storage-api\2.7.1\hive-storage-api-2.7.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-column\1.10.1\parquet-column-1.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-common\1.10.1\parquet-common-1.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-encoding\1.10.1\parquet-encoding-1.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-hadoop\1.10.1\parquet-hadoop-1.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-format\2.4.0\parquet-format-2.4.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\parquet\parquet-jackson\1.10.1\parquet-jackson-1.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-streaming_2.12\3.0.0\spark-streaming_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-streaming-kafka-0-10_2.12\3.0.0\spark-streaming-kafka-0-10_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\spark\spark-token-provider-kafka-0-10_2.12\3.0.0\spark-token-provider-kafka-0-10_2.12-3.0.0.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\org\apache\kafka\kafka-clients\2.4.1\kafka-clients-2.4.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\fasterxml\jackson\core\jackson-core\2.10.1\jackson-core-2.10.1.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\com\alibaba\druid\1.1.10\druid-1.1.10.jar;E:\Tools\work_tools\apache-maven-3.3.9\repository\mysql\mysql-connector-java\5.1.28\mysql-connector-java-5.1.28.jar org.wdh01.bigdata.spark.core.wc.Spark03_WordCount (hive,2) (flink,2) (hello,6) (spark,2) Process finished with exit code 0