From 83bf607b4629adbb9acf6800fa485d12670d6770 Mon Sep 17 00:00:00 2001 From: matthiasbertsch Date: Fri, 12 Jan 2018 18:47:16 +0100 Subject: [PATCH] added possibility to run spark shell directly out of the project directory --- README.md | 6 ++++++ pom.xml | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/README.md b/README.md index 2fc91338..5c2f71b8 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,12 @@ mvn clean package Building DESQ with `mvn clean package -Pprovided` builds the `desq---no-spark.jar` with the excluded Apache Spark dependency. +To start a Spark shell directly out of the project directory, use + +``` +mvn compile && mvn exec:exec -Dexec.executable="java" -Dexec.args="-cp \"%classpath\" -Dscala.usejavacp=true org.apache.spark.deploy.SparkSubmit --class org.apache.spark.repl.Main spark-shell" +``` + ## DESQ Examples DESQ supports a variety of pattern mining tasks, some of which are highlighted diff --git a/pom.xml b/pom.xml index d7cc54b2..3148b1da 100644 --- a/pom.xml +++ b/pom.xml @@ -254,6 +254,16 @@ maven-shade-plugin 3.1.0 + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + com.google.common @@ -297,6 +307,11 @@ spark-core_2.11 2.1.0 + + org.apache.spark + spark-repl_2.11 + 2.1.0 + full @@ -313,6 +328,12 @@ 2.1.0 provided + + org.apache.spark + spark-repl_2.11 + 2.1.0 + provided + no-spark