Red de conocimiento informático - Material del sitio web - Cómo importar SparkJava usando Maven

Cómo importar SparkJava usando Maven

Configuración pom

ltpropertiesgt

ltspark.version gt2.1.1lt;/spark.versiongt;

ltscala.version gt2.11lt;/Scala .version gt;

lt/properties gt;

ltdependenciesgt

ltdependenciesgt

ltgroupId gtorg . >

ltartifactId gtspark-core _ $ {Scala . version } lt;/artifact id gt;

ltversion gt$ { spark.version } lt/ version gt;

lt /dependency gt;

ltdependency gt

ltgroupId gtorg . Apache ./groupId gt;

ltartifactId gtspark-streaming _ $ { versión Scala . lt;/artifact id gt;

ltversion gt$ { spark.version } lt/version gt

lt/ dependencia gt

ltdependency gt; p>

ltgroupId gtorg . Apache . spark lt;/groupId gt;

ltartifactId gtspark-SQL _ $ { Scala version } lt;/artifact id gt;

lt. versión gt$ { spark.version } lt/version gt;

lt/dependency gt;

lt dependencia Propiedades gt

ltgroupId gtorg. ;/groupId gt;

ltartifactId gtspark-hive_${Scala.version} lt;/artifact id gt;

lt versión gt $ { spark.version } lt/version gt;

lt/dependency gt;

lt dependencia gt

ltgroupId gtorg. Apache .spark lt;/groupId gt;

ltartifactId gtspark -ml lib _ $ {Scala .version } lt;/artifact id gt;

ltversiongt$ { spark.version } lt/version gt;

lt/dependency gt;

lt/dependencias gt;