Hi guys. I keep getting this error while trying to...
# troubleshooting
a
Hi guys. I keep getting this error while trying to run maven:
The following artifacts could not be resolved: org.apache.flink:flink-statebackend-rocksdb:jar:1.18-SNAPSHOT (absent): Could not find artifact org.apache.flink:flink-statebackend-rocksdb:jar:1.18-SNAPSHOT
j
Is 1.18 released?
j
I think that in order to use unreleased versions you need to enable maven to do so
a
how?
I simply added that setting into my pom.xml and I would expect that maven could handle it!
a
x-SNAPSHOT
dependencies are published into separate maven repository. To get snapshot versions of Flink you need to specify repositories containing required artifacts in your pom.xml
Copy code
<repositories>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url><https://repository.apache.org/snapshots></url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>
j
You need to tell maven where to pull from and how. There should be like a settings.xml somewhere
a
@Aleksandr Pilipenko thanks but this time I get this error: Caused by:
java.lang.NoClassDefFoundError: org/rocksdb/FlinkCompactionFilter$TimeProvider
at org.apache.flink.contrib.streaming.state.RocksDBKeyedStateBackendBuilder.build(RocksDBKeyedStateBackendBuilder.java:290)
I have already added:
<dependency>
<groupId>org.rocksdb</groupId>
<artifactId>rocksdbjni</artifactId>
<version>8.1.1.1</version>
</dependency>
a
a
@*Aleksandr Pilipenko* πŸ‘ Thank you very much!