You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Landon Kuhn <la...@formant.io> on 2019/06/04 19:02:03 UTC
Unable to build
Hello,
I am unable to build the project and am looking for help. "./gradlew
--console=plain installAll" results in the following output:
> Configure project :
Building project 'core' with Scala version 2.12.8
Building project 'streams-scala' with Scala version 2.12.8
> Task :generator:compileJava UP-TO-DATE
> Task :generator:processResources NO-SOURCE
> Task :generator:clas./gradlew --console=plain installAllses UP-TO-DATE
> Task :clients:proces./gradlew --console=plain installAllsMessages
UP-TO-DATE
> Task :clients:compileJava FAILED
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/network/DefaultAuthenticator.java:23:
warning: [deprecation] PrincipalBuilder in
org.apache.kafka.common.security.auth has been deprecated
import org.apache.kafka.common.security.auth.PrincipalBuilder;
^
error: warnings found and -Werror specified
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/security/plain/PlainSaslServer.java:104:
error: method configEntryOption in class JaasContext cannot be applied to
given types;
String expectedPassword =
jaasContext.configEntryOption(JAAS_USER_PREFIX + username,
^
required: List<AppConfigurationEntry>,String,String
found: String,String
reason: actual and formal argument lists differ in length
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/security/plain/PlainSaslServer.java:173:
error: cannot find symbol
return new PlainSaslServer(((SaslServerCallbackHandler)
cbh).jaasContext());
^
symbol: method jaasContext()
location: class SaslServerCallbackHandler
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/requests/InitPidRequest.java:68:
error: constructor AbstractRequest in class AbstractRequest cannot be
applied to given types;
super(version);
^
required: ApiKeys,short
found: short
reason: actual and formal argument lists differ in length
....
The output continues for dozens of similar errors. Here the output from
"gradle -v":
------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------
Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d
Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_212 (Oracle Corporation 25.212-b03)
OS: Linux 4.15.0-50-generic amd64
And "java -versoin":
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
I would appreciate any help or troubleshooting suggestions.
The reason I am trying to build Kafka is because I need to build a
development version of Confluent's S3 connector (
https://github.com/confluentinc/kafka-connect-storage-cloud) which
according to this document requires a local build of Kafka (
https://github.com/confluentinc/kafka-connect-storage-common/wiki/FAQ).
I've cross-posted similar information here:
https://github.com/confluentinc/kafka-connect-storage-cloud/issues/251.
Thank you,
L
Re: Unable to build
Posted by Martin Gainty <mg...@hotmail.com>.
in build.gradle assuming sourceSets is defined as
sourceSets {
main {
java {
srcDirs = ['src/java']
}
resources {
srcDirs = ['src/resources']
}
}
}
add missing source files:
org.apache.kafka.common.security.authenticator.SaslServerCallbackHandler
...
to src/java folder
?
________________________________
From: Landon Kuhn <la...@formant.io>
Sent: Tuesday, June 4, 2019 3:02 PM
To: users@kafka.apache.org
Subject: Unable to build
Hello,
I am unable to build the project and am looking for help. "./gradlew
--console=plain installAll" results in the following output:
> Configure project :
Building project 'core' with Scala version 2.12.8
Building project 'streams-scala' with Scala version 2.12.8
> Task :generator:compileJava UP-TO-DATE
> Task :generator:processResources NO-SOURCE
> Task :generator:clas./gradlew --console=plain installAllses UP-TO-DATE
> Task :clients:proces./gradlew --console=plain installAllsMessages
UP-TO-DATE
> Task :clients:compileJava FAILED
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/network/DefaultAuthenticator.java:23:
warning: [deprecation] PrincipalBuilder in
org.apache.kafka.common.security.auth has been deprecated
import org.apache.kafka.common.security.auth.PrincipalBuilder;
^
error: warnings found and -Werror specified
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/security/plain/PlainSaslServer.java:104:
error: method configEntryOption in class JaasContext cannot be applied to
given types;
String expectedPassword =
jaasContext.configEntryOption(JAAS_USER_PREFIX + username,
^
required: List<AppConfigurationEntry>,String,String
found: String,String
reason: actual and formal argument lists differ in length
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/security/plain/PlainSaslServer.java:173:
error: cannot find symbol
return new PlainSaslServer(((SaslServerCallbackHandler)
cbh).jaasContext());
^
symbol: method jaasContext()
location: class SaslServerCallbackHandler
/home/landon/src/kafka/kafka/clients/src/main/java/org/apache/kafka/common/requests/InitPidRequest.java:68:
error: constructor AbstractRequest in class AbstractRequest cannot be
applied to given types;
super(version);
^
required: ApiKeys,short
found: short
reason: actual and formal argument lists differ in length
....
The output continues for dozens of similar errors. Here the output from
"gradle -v":
------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------
Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d
Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_212 (Oracle Corporation 25.212-b03)
OS: Linux 4.15.0-50-generic amd64
And "java -versoin":
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)
I would appreciate any help or troubleshooting suggestions.
The reason I am trying to build Kafka is because I need to build a
development version of Confluent's S3 connector (
https://github.com/confluentinc/kafka-connect-storage-cloud) which
according to this document requires a local build of Kafka (
https://github.com/confluentinc/kafka-connect-storage-common/wiki/FAQ).
I've cross-posted similar information here:
https://github.com/confluentinc/kafka-connect-storage-cloud/issues/251.
Thank you,
L