I've not had a chance to try 2.3.x yet. If suggested mvn dependency:tree as I think I had a conflict when trying to override the default spring boot dependency in the past.
I've also had to do stuff like https://docs.spring.io/spring-kafka/docs/2.2.10.RELEASE/reference/html/#deps-for-21x in the past to override default dependencies. On Thu, 24 Oct 2019, 22:26 Xiyuan Hu, <xiyuan.h...@gmail.com> wrote: > Yes, I'm using spring boot. Version 2.3.0 doesn't work for me since > the performance issue with cache. Thus I'd like to use the newer > version with the fix. > Are you able to import 2.3.1-rc2 in spring boot? > > Thanks! > > On Thu, Oct 24, 2019 at 4:21 PM Mark Anderson <manderso...@gmail.com> > wrote: > > > > Are you using Spring Boot? > > > > I know that the recent Spring Boot 2.2.0 release specifically updates > their > > Kafka dependency to 2.3.0. Previous version used Kafka 2.1.x though I've > > used 2.2.x with it. > > > > Maybe running mvn dependency:tree would help see if there are multiple > > Kafka versions that could conflict. > > > > On Thu, 24 Oct 2019 at 20:14, Matthias J. Sax <matth...@confluent.io> > wrote: > > > > > Hard to say, but maybe Spring does not support the new version yet, as > > > the error say > `org.springframework.beans.factory.BeanCreationException`. > > > > > > Can you reach out to the Spring community to see if they can help? > > > > > > > > > -Matthias > > > > > > On 10/24/19 10:59 AM, Xiyuan Hu wrote: > > > > Hi, > > > > > > > > I'm trying to build and import 2.3.1-rc2 but getting below > exceptions: > > > > > > > > Invocation of init method failed; nested exception is > > > > java.lang.NoClassDefFoundError: org/rocksdb/RocksDBException > > > > org.springframework.beans.factory.BeanCreationException: Error > > > > creating bean with name 'imaItemProcessor': Invocation of init method > > > > failed; nested exception is java.lang.NoClassDefFoundError: > > > > org/rocksdb/RocksDBException > > > > > > > > Caused by: java.lang.NoClassDefFoundError: > org/rocksdb/RocksDBException > > > > at > > > > org.apache.kafka.streams.state.internals.RocksDbWindowBytesStoreSupplier.get(RocksDbWindowBytesStoreSupplier.java:63) > > > > at > > > > org.apache.kafka.streams.state.internals.RocksDbWindowBytesStoreSupplier.get(RocksDbWindowBytesStoreSupplier.java:23) > > > > > > > > The way I imported 2.3.1-rc2 is as below: > > > > > > > > 1. Download kafka_2.11-2.3.1.tgz and unzip > > > > 2. Run: mvn install:install-file > > > > -Dfile=kafka_2.11-2.3.1/libs/kafka-streams-2.3.1.jar > > > > -DgroupId=org.apache.kafka -DartifactId=kafka-streams > > > > -Dversion=2.3.1-rc2 -Dpackaging=jar -DgeneratePom=true > > > > 3. In my maven pom.xml: > > > > <dependency> > > > > <groupId>org.apache.kafka</groupId> > > > > <artifactId>kafka-streams</artifactId> > > > > <version>2.3.1-rc2</version> > > > > </dependency> > > > > > > > > Do I miss anything here? > > > > > > > > Thanks a lot! > > > > > > > > > > >