Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10: Expecting URI in variable #335

Open
JukkaOravasaari opened this issue Feb 23, 2022 · 0 comments
Open

Windows 10: Expecting URI in variable #335

JukkaOravasaari opened this issue Feb 23, 2022 · 0 comments

Comments

@JukkaOravasaari
Copy link

cassandra-unit: 4.3.1.0 (https://mvnrepository.com/artifact/org.cassandraunit/cassandra-unit/4.3.1.0)
OS: Windows 10
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (Temurin)(build 25.322-b06, mixed mode)

Embedded Cassandra startup in Scala:

    EmbeddedCassandraServerHelper.startEmbeddedCassandra(
      "/cassandra.yaml",
      60000L
    )

Error:

[info]   org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config]. Found[file:/C:\examples\target\embeddedCassandra\cassandra.yaml]. Please prefix the file with [file:\\\] for local files and [file:\\<server>\] for remote files. If you are executing this from an external tool, it needs to set Config.setClientMode(true) to avoid loading configuration.
[info]   at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:84)
[info]   at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:104)
[info]   at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:301)
[info]   at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:177)
[info]   at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:162)
[info]   at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:145)
[info]   at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:108)
[info]   at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:88)

There is no such issue when running cassandra-unit in Linux.

@JukkaOravasaari JukkaOravasaari changed the title Windows: Windows 10: Expecting URI in variable Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant