Comments (6)
That seems to have done the trick, thanks :)
from embedded-cassandra.
Hello,
new CassandraBuilder()
.workingDirectoryInitializer(new DefaultWorkingDirectoryInitializer(new CassandraDirectoryProvider() {
@Override
public Path getDirectory(Version version) throws IOException {
//here it means '.' directory must contain all necessary Apache Cassandra files
return Paths.get(".");
}
}));
WebCassandraDirectoryProvider
is being used for downloading Apache Cassandra and extracts an archive into user.home
directory and later uses this directory for Working Directory initializing (/tmp/<...>) by default.
from embedded-cassandra.
But actually, I tried your example:
private final CassandraBuilder builder = new CassandraBuilder().workingDirectoryInitializer(
new DefaultWorkingDirectoryInitializer(new WebCassandraDirectoryProvider(Paths.get("."))));
and got the same exception.
from embedded-cassandra.
also by default in WebCassandraDirectory we have the following:
Path downloadDirectory = this.downloadDirectory.resolve(".embedded-cassandra").resolve("cassandra")
.resolve(version.toString());
from embedded-cassandra.
So, just to clarify, do you want to be able to set the download directory is .
? right?
from embedded-cassandra.
You can try this option for now:
new DefaultWorkingDirectoryInitializer(new WebCassandraDirectoryProvider(Paths.get(System.getProperty("user.dir")))));
from embedded-cassandra.
Related Issues (20)
- Check that if Embedded Cassandra is already running that don't start a new instance HOT 1
- How to configure classpath? HOT 3
- Cassandra 4.x doesn't work on Windows HOT 2
- Multiple test case run throwing error HOT 1
- fallback to cassandra.bat wont work HOT 12
- Configuration file is not generated properly on windows HOT 3
- some issues with stopping HOT 2
- Apple Silicon m1 support HOT 2
- Java 16 support. HOT 7
- Loading Schemas using forEachStatement takes a long time HOT 1
- Does not working on Windows 10 HOT 2
- How do I set up authentication? HOT 1
- Error during Cassandra start with openjdk-11 HOT 7
- Unable to start embedded cassandra using JDK11 HOT 2
- Embedded Cassandra 3.1.0 would not start with JDK 11 HOT 3
- Unable to start Embedded Cassandra HOT 1
- Snakeyaml update HOT 3
- cassandra 5.0 HOT 4
- Would not start due to SecurityManager deprecation with jdk 21 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedded-cassandra.