kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vahid S Hashemian" <vahidhashem...@us.ibm.com>
Subject Re: Kafka build fails
Date Thu, 14 Jan 2016 00:11:19 GMT
Hi Ismael,

Thank you for your quick and helpful response. You were right.
I was following the build instructions at 
https://github.com/apache/kafka#apache-kafka and that piece of information 
seems to be missing there.

In any case, these set of commands worked for me to build Kafka:

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo add-apt-repository ppa:cwchien/gradle
$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer
$ sudo ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java
$ sudo apt-get install gradle
$ git clone https://github.com/apache/kafka.git
$ cd kafka/
$ gradle

Regards,
--Vahid




From:   Ismael Juma <ismael@juma.me.uk>
To:     dev@kafka.apache.org
Date:   01/13/2016 03:49 PM
Subject:        Re: Kafka build fails
Sent by:        ismaelj@gmail.com



Hi Vahid,

It looks like the Gradle version you installed is 1.5. Kafka requires at
least 2.0.

Ismael

On Wed, Jan 13, 2016 at 11:45 PM, Vahid S Hashemian <
vahidhashemian@us.ibm.com> wrote:

> Hi,
>
> I am trying to build Kafka on a fresh Ubuntu VM using the following
> commands and gradle is failing with the error message below. Is there 
any
> step I am missing?
> Thanks.
>
>
>
> $ sudo add-apt-repository ppa:webupd8team/java
> $ sudo apt-get update
> $ sudo apt-get install oracle-java7-installer
> $ git clone https://github.com/apache/kafka.git
> $ cd kafka/
> $ sudo apt-get install gradle
> $ sudo ln -s /usr/lib/jvm/java-7-oracle /usr/lib/jvm/default-java
> $ gradle
>
> Note: in order to honour the org.gradle.jvmargs and/or
> org.gradle.java.home values specified for this build, it is necessary to
> fork a new JVM.
> To avoid the slowdown associated with this extra process, you might want
> to consider running Gradle with the daemon enabled.
> Please see the user guide chapter on the daemon at
> http://gradle.org/docs/1.5/userguide/gradle_daemon.html.
> Download
> http://repo1.maven.org/maven2/org/ajoberstar/grgit/0.2.3/grgit-0.2.3.pom
> Download
>
> 
http://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit/3.3.0.201403021825-r/org.eclipse.jgit-3.3.0.201403021825-r.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit-parent/3.3.0.201403021825-r/org.eclipse.jgit-parent-3.3.0.201403021825-r.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.ui/3.3.0.201403021825-r/org.eclipse.jgit.ui-3.3.0.201403021825-r.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.jsch/0.0.7/jsch.agentproxy.jsch-0.0.7.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy/0.0.7/jsch.agentproxy-0.0.7.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/6/oss-parent-6.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.pageant/0.0.7/jsch.agentproxy.pageant-0.0.7.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.sshagent/0.0.7/jsch.agentproxy.sshagent-0.0.7.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-jna/0.0.7/jsch.agentproxy.usocket-jna-0.0.7.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-nc/0.0.7/jsch.agentproxy.usocket-nc-0.0.7.pom

> Download
> 
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.7.6/slf4j-parent-1.7.6.pom

> Download
> http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.46/jsch-0.1.46.pom
> Download
>
> 
http://repo1.maven.org/maven2/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/5/oss-parent-5.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1.3/httpcomponents-client-4.1.3.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/project/5/project-5.pom

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.core/0.0.7/jsch.agentproxy.core-0.0.7.pom

> Download
> http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.4.0/jna-3.4.0.pom
> Download
>
> 
http://repo1.maven.org/maven2/net/java/dev/jna/platform/3.4.0/platform-3.4.0.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.1.4/httpcore-4.1.4.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.1.4/httpcomponents-core-4.1.4.pom

> Download
>
> 
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom

> Download http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
> Download
>
> 
http://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/commons/commons-parent/11/commons-parent-11.pom

> Download
> http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.49/jsch-0.1.49.pom
> Download
> http://repo1.maven.org/maven2/org/ajoberstar/grgit/0.2.3/grgit-0.2.3.jar
> Download
>
> 
http://repo1.maven.org/maven2/com/googlecode/javaewah/JavaEWAH/0.7.9/JavaEWAH-0.7.9.jar

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.1.4/httpcore-4.1.4.jar

> Download
>
> 
http://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar

> Download
>
> 
http://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.jar

> Download
>
> 
http://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.3/httpclient-4.1.3.jar

> Download
> http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.49/jsch-0.1.49.jar
> Download
>
> 
http://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit/3.3.0.201403021825-r/org.eclipse.jgit-3.3.0.201403021825-r.jar

> Download
>
> 
http://repo1.maven.org/maven2/org/eclipse/jgit/org.eclipse.jgit.ui/3.3.0.201403021825-r/org.eclipse.jgit.ui-3.3.0.201403021825-r.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.core/0.0.7/jsch.agentproxy.core-0.0.7.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.jsch/0.0.7/jsch.agentproxy.jsch-0.0.7.jar

> Download
> http://repo1.maven.org/maven2/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar
> Download
>
> 
http://repo1.maven.org/maven2/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.pageant/0.0.7/jsch.agentproxy.pageant-0.0.7.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.sshagent/0.0.7/jsch.agentproxy.sshagent-0.0.7.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-jna/0.0.7/jsch.agentproxy.usocket-jna-0.0.7.jar

> Download
>
> 
http://repo1.maven.org/maven2/com/jcraft/jsch.agentproxy.usocket-nc/0.0.7/jsch.agentproxy.usocket-nc-0.0.7.jar

> Download
> 
http://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.jar

>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/home/kafka/kafka/build.gradle' line: 183
>
> * What went wrong:
> A problem occurred evaluating root project 'kafka'.
> > Could not find property 'ScalaPlugin' on project ':clients'.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 27.107 secs
>
>
>
> The output when running gradle with --stacktrace:
>
> Note: in order to honour the org.gradle.jvmargs and/or
> org.gradle.java.home values specified for this build, it is necessary to
> fork a new JVM.
> To avoid the slowdown associated with this extra process, you might want
> to consider running Gradle with the daemon enabled.
> Please see the user guide chapter on the daemon at
> http://gradle.org/docs/1.5/userguide/gradle_daemon.html.
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/home/kafka/kafka/build.gradle' line: 183
>
> * What went wrong:
> A problem occurred evaluating root project 'kafka'.
> > Could not find property 'ScalaPlugin' on project ':clients'.
>
> * Try:
> Run with --info or --debug option to get more log output.
>
> * Exception is:
> org.gradle.api.GradleScriptException: A problem occurred evaluating root
> project 'kafka'.
>         at
>
> 
org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:54)
>         at
>
> 
org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:127)
>         at
>
> 
org.gradle.configuration.BuildScriptProcessor.evaluate(BuildScriptProcessor.java:38)
>         at
>
> 
org.gradle.configuration.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:44)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:464)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:77)
>         at
>
> 
org.gradle.configuration.DefaultBuildConfigurer$ConfigureProject.execute(DefaultBuildConfigurer.java:38)
>         at
>
> 
org.gradle.configuration.DefaultBuildConfigurer$ConfigureProject.execute(DefaultBuildConfigurer.java:36)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:440)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.allprojects(AbstractProject.java:435)
>         at
>
> 
org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:32)
>         at
>
> 
org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:142)
>         at
>
> 
org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
>         at
>
> 
org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
>         at
> 
org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
>         at
>
> 
org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:42)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:70)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:68)
>         at org.gradle.util.Swapper.swap(Swapper.java:38)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:68)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:59)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:45)
>         at
>
> 
org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordinator.java:186)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOrRespondWithBusy.java:49)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndForwardDaemonFailure.java:32)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:125)
>         at
>
> 
org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(DefaultDaemonCommandExecuter.java:48)
>         at
>
> 
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.handleCommand(DefaultIncomingConnectionHandler.java:155)
>         at
>
> 
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.receiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128)
>         at
>
> 
org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run(DefaultIncomingConnectionHandler.java:116)
>         at
>
> 
org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
> Caused by: groovy.lang.MissingPropertyException: Could not find property
> 'ScalaPlugin' on project ':clients'.
>         at
>
> 
org.gradle.api.internal.AbstractDynamicObject.propertyMissingException(AbstractDynamicObject.java:43)
>         at
>
> 
org.gradle.api.internal.AbstractDynamicObject.getProperty(AbstractDynamicObject.java:35)
>         at
>
> 
org.gradle.api.internal.CompositeDynamicObject.getProperty(CompositeDynamicObject.java:94)
>         at
>
> 
org.gradle.api.internal.project.DefaultProject_Decorated.getProperty(Unknown
> Source)
>         at
>
> 
build_5hnnal6fj962snj10uh6lel063$_run_closure4.doCall(/home/kafka/kafka/build.gradle:183)
>         at
>
> 
org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:58)
>         at 
org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:133)
>         at 
org.gradle.util.ConfigureUtil.configure(ConfigureUtil.java:94)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:866)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.configure(AbstractProject.java:871)
>         at
>
> 
org.gradle.api.internal.project.AbstractProject.subprojects(AbstractProject.java:854)
>         at
>
> 
org.gradle.api.internal.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:216)
>         at
>
> 
org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:122)
>         at
>
> 
org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:147)
>         at
> org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:83)
>         at
> build_5hnnal6fj962snj10uh6lel063.run(/home/kafka/kafka/build.gradle:77)
>         at
>
> 
org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:52)
>         ... 51 more
>
>
> BUILD FAILED
>
>
> --Vahid
>
>





Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message