赞
踩
目录
spark-shell
spark-shell --jars /path/myjar1.jar,/path/myjar2.jar
spark-shell --master yarn-client --driver-memory 16g --num-executors 60 --executor-memory 20g --executor-cores 2
spark.sparkContext.setLogLevel("ERROR")
- <properties>
-
- <maven.compiler.source>1.8</maven.compiler.source>
-
- <maven.compiler.target>1.8</maven.compiler.target>
-
- <encoding>UTF-8</encoding>
-
- <scala.version>2.11.8</scala.version>
-
- <spark.version>2.2.0</spark.version>
-
- <hadoop.version>2.7.1</hadoop.version>
-
- <scala.compat.version>2.11</scala.compat.version>
-
- </properties>
-
- <!--声明并引入公有的依赖-->
-
-
-
- <dependencies>
-
- <dependency>
-
- <groupId>org.scala-lang</groupId>
-
- <artifactId>scala-library</artifactId>
-
- <version>${scala.version}</version>
-
- </dependency>
-
- <dependency>
-
- <groupId>org.apache.spark</groupId>
-
- <artifactId>spark-core_2.11</artifactId>
-
- <version>${spark.version}</version>
-
- </dependency>
-
- <dependency>
-
- <groupId>org.apache.hadoop</groupId>
-
- <artifactId>hadoop-client</artifactId>
-
- <version>${hadoop.version}</version>
-
- </dependency>
-
- </dependencies>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。