AnsweredAssumed Answered

MapR streams-example fails to build using maven

Question asked by anelson on Jan 9, 2017
Latest reply on Jan 24, 2017 by cmcdonald

I downloaded the MapR sandbox for VMware.

I cloned the mapr-streams-example: 

git clone https://github.com/mapr-demos/mapr-streams-sample-programs.git

 

I tried to compile it using "mvn package".

It always dies the same way:

 

[mapr@maprdemo mapr-streams-sample-programs]$ mvn package

[INFO] Scanning for projects...

[INFO]

[INFO] ------------------------------------------------------------------------

[INFO] Building mapr-streams-examples 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO]

[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mapr-streams-examples ---

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] Copying 2 resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ mapr-streams-examples ---

[INFO] Nothing to compile - all classes are up to date

[INFO]

[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mapr-streams-examples ---

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory /home/mapr/Downloads/mapr-streams-sample-programs/src/test/resources

[INFO]

[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ mapr-streams-examples ---

[INFO] No sources to compile

[INFO]

[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mapr-streams-examples ---

[INFO] No tests to run.

[INFO]

[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mapr-streams-examples ---

[INFO]

[INFO] --- maven-assembly-plugin:2.4:single (make-assembly) @ mapr-streams-examples ---

Killed

 

I was able to successfully build the kafak-sample-programs from: 

git clone https://github.com/mapr-demos/kafka-sample-programs.git

 

Java was already installed in the sandbox:

[mapr@maprdemo Downloads]$ java -version

java version "1.7.0_79"

OpenJDK Runtime Environment (rhel-2.5.5.4.el6-x86_64 u79-b14)

OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)

 

I installed git using yum install git

and maven using How To Install Apache Maven on CentOS/RHEL 7/6/5 

Outcomes