java - Maven : Apache Spark error when trying to "mvn package" -


i have installed spark 1.3.1 on local downloading zip , extracting home repository have in here home/my-user-name/spark-1.3.1 .
next thing want work using java, , in order work have installed maven via command :

$ sudo apt-get install maven 

then checked version command:

mvn -version 

which gave me this:

maven home: /usr/share/maven java version: 1.7.0_80, vendor: oracle corporation java home: /usr/lib/jvm/java-7-oracle/jre default locale: en_us, platform encoding: utf-8 os name: "linux", version: "3.16.0-38-generic", arch: "amd64", family: "unix" 

then next thing wanted create java project using maven current depository documents/ :

mvn archetype:generate -dgroupid=projet -dartifactid=indexing -darchetypeartifactid=maven-archetype-quickstart -dinteractivemode=false 

which means pom.xml file in repository documents/projet/indexing/ here's got in pom.xml :

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>mif37.projet</groupid>   <artifactid>indexing</artifactid>   <packaging>jar</packaging>   <version>1.0-snapshot</version>   <name>indexingmapreduce</name>   <url>http://maven.apache.org</url>   <dependencies>     <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>3.8.1</version>       <scope>test</scope>     </dependency>   </dependencies> </project> 

after included in tag dependencies 1 more dependency spark god pom.xml:

<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">   <modelversion>4.0.0</modelversion>   <groupid>mif37.projet</groupid>   <artifactid>indexing</artifactid>   <packaging>jar</packaging>   <version>1.0-snapshot</version>   <name>indexingmapreduce</name>   <url>http://maven.apache.org</url>   <dependencies>     <dependency>       <groupid>org.apache.spark</groupid>       <artifactid>spark-core_2.10</artifactid>       <version>1.3.1</version>     </dependency>     <dependency>       <groupid>junit</groupid>       <artifactid>junit</artifactid>       <version>3.8.1</version>       <scope>test</scope>     </dependency>   </dependencies> </project> 

and run command-line repository pom.xml:

mvn package 

but in end here's got:

[info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 9:18.021s [info] finished at: sun may 31 20:49:52 cest 2015 [info] final memory: 12m/137m [info] ------------------------------------------------------------------------ [error] failed execute goal on project indexing: not resolve dependencies project projet:indexing:jar:1.0-snapshot: not transfer artifact org.apache.spark:spark-core_2.10:jar:1.3.1 from/to central (http://repo.maven.apache.org/maven2): request of: org/apache/spark/spark-core_2.10/1.3.1/spark-core_2.10-1.3.1.jar central failed: connection reset -> [help 1] [error]  [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error]  [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/dependencyresolutionexception 

anyone point on things wrong?? thanks.

your pom.xml , process fine. there firewall / connectivity issue - noted by:

.spark:spark-core_2.10:jar:1.3.1 from/to central (http://repo.maven.apache.org/maven2): request of: org/apache/spark/spark-core_2.10/1.3.1/spark-core_2.10-1.3.1.jar central failed: connection reset -> [help 1] [error]  

you can verify repeating steps in 'open' environment - e.g. @ home instead of work.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

node.js - Using Node without global install -

php - CakePHP HttpSockets send array of paramms -