Code Monkey home page Code Monkey logo

Comments (6)

utkuaydn avatar utkuaydn commented on July 18, 2024 1

That seems to have done the trick, thanks :)

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

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.

nosan avatar nosan commented on July 18, 2024

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.

nosan avatar nosan commented on July 18, 2024

also by default in WebCassandraDirectory we have the following:

	Path downloadDirectory = this.downloadDirectory.resolve(".embedded-cassandra").resolve("cassandra")
				.resolve(version.toString());
				

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

So, just to clarify, do you want to be able to set the download directory is .? right?

from embedded-cassandra.

nosan avatar nosan commented on July 18, 2024

You can try this option for now:

  	new DefaultWorkingDirectoryInitializer(new WebCassandraDirectoryProvider(Paths.get(System.getProperty("user.dir")))));

from embedded-cassandra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.