It may be good to use "-e" when running maven command to see the full stack
trace of the errors and pinpoint the root cause of the build failure.

In my case, I've successfully built Zeppelin from master after resolving a
couple of issues by looking at the full stack trace of the errors.  I used
Maven 3.6.0.  I run the following commands:

export JAVA_HOME=/home/guoyihua/tools/jdk1.8.0_202
./dev/change_scala_version.sh 2.11
mvn clean package -DskipTests -Pspark-2.0 -Phadoop-2.4 -Pscala-2.11 -e

I used Oracle JDK 1.8.0_202 instead of OpenJDK as OpenJDK throws build
errors for me.  I also fixed the Beam version to 2.3.0 for scala 2.11
("<beam.beam.version>2.3.0</beam.beam.version>" in beam/pom.xml).

Hope this helps to some extent...

On Tue, May 7, 2019 at 4:49 PM Jongyoul Lee <jongy...@gmail.com> wrote:

> You might set -Pspark-2.2
>
> On Wed, May 8, 2019 at 3:19 AM Eric Pugh <ep...@opensourceconnections.com>
> wrote:
>
> > Hi,
> >
> > I wanted to see about improving the error message on the Shell
> > interpreter, so working through getting Zeppelin to compile locally.
> >
> > With Java 1.8 and Maven 3.6.0 when I run “mvn install -DskipTests” I am
> > getting a build error:
> >
> > [INFO] Zeppelin: Plugin StandardLauncher .................. SKIPPED
> > [INFO] Zeppelin: Plugin Kubernetes StandardLauncher ....... SKIPPED
> > [INFO] Zeppelin: Plugin SparkInterpreterLauncher .......... SKIPPED
> > [INFO] Zeppelin: Packaging distribution ................... SKIPPED
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time:  9.679 s
> > [INFO] Finished at: 2019-05-07T14:15:00-04:00
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project spark-interpreter: Could not
> > resolve dependencies for project
> > org.apache.zeppelin:spark-interpreter:jar:0.9.0-SNAPSHOT: The following
> > artifacts could not be resolved:
> > org.apache.zeppelin:zeppelin-display:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:spark-scala-2.10:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:spark-scala-2.11:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:zeppelin-interpreter-api:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:spark1-shims:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:spark-shims:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:spark2-shims:jar:0.9.0-SNAPSHOT,
> > org.apache.zeppelin:zeppelin-python:jar:0.9.0-SNAPSHOT,
> > org.apache.spark:spark-repl_2.10:jar:2.4.0,
> > org.apache.spark:spark-core_2.10:jar:2.4.0,
> > org.apache.spark:spark-hive_2.10:jar:2.4.0: Failure to find
> > org.apache.zeppelin:zeppelin-display:jar:0.9.0-SNAPSHOT in
> > http://repository.apache.org/snapshots was cached in the local
> > repository, resolution will not be reattempted until the update interval
> of
> > apache.snapshots has elapsed or updates are forced -> [Help 1]
> >
> > Is there a specific version of Maven?   I know the
> > https://zeppelin.apache.org/contribution/contributions.html <
> > https://zeppelin.apache.org/contribution/contributions.html> refers to
> > Oracle Java 7 as well…
> >
> > For fun I ran "mvn install -Phadoop-2.2 -Dhadoop.version=2.2.0
> -Pspark-1.3
> > -Dspark.version=1.3.0” which past the first Zeppelin project, but then
> > errors with the version of Spark and Hadoop passed in:
> >
> > [WARNING] The requested profile "hadoop-2.2" could not be activated
> > because it does not exist.
> > [WARNING] The requested profile "spark-1.3" could not be activated
> because
> > it does not exist.
> >
> > Any pointers?  Happy to update the contribution docs once I get through
> > the build process!
> >
> > Eric
> >
> > _______________________
> > Eric Pugh | Founder & CEO | OpenSource Connections, LLC | 434.466.1467 |
> > http://www.opensourceconnections.com <
> > http://www.opensourceconnections.com/> | My Free/Busy <
> > http://tinyurl.com/eric-cal>
> > Co-Author: Apache Solr Enterprise Search Server, 3rd Ed <
> >
> https://www.packtpub.com/big-data-and-business-intelligence/apache-solr-enterprise-search-server-third-edition-raw
> >
> >
> > This e-mail and all contents, including attachments, is considered to be
> > Company Confidential unless explicitly stated otherwise, regardless of
> > whether attachments are marked as such.
> >
> >
>
> --
> 이종열, Jongyoul Lee, 李宗烈
> http://madeng.net
>

Reply via email to