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

cassandra-unit-shaded throws error while configuring embedded server #10

Open
hemabs opened this issue Jul 23, 2015 · 2 comments
Open

Comments

@hemabs
Copy link

hemabs commented Jul 23, 2015

The test always throws below error:
2015-07-22 18:58:35 DEBUG DatabaseDescriptor:322 - Syncing log with a period of 10000
2015-07-22 18:58:35 INFO DatabaseDescriptor:334 - Windows environment detected. DiskAccessMode set to standard, indexAccessMode standard
2015-07-22 18:58:35 ERROR DatabaseDescriptor:141 - Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Invalid partitioner class org.apache.cassandra.dht.Murmur3Partitioner
at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:388)
at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:136)
at org.cassandraunit.utils.EmbeddedCassandraServerHelper.mkdirs(EmbeddedCassandraServerHelper.java:333)
at org.cassandraunit.utils.EmbeddedCassandraServerHelper.cleanupAndLeaveDirs(EmbeddedCassandraServerHelper.java:305)
at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:116)
at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:85)
at org.cassandraunit.utils.EmbeddedCassandraServerHelper.startEmbeddedCassandra(EmbeddedCassandraServerHelper.java:64)
...........................
Invalid partitioner class org.apache.cassandra.dht.Murmur3Partitioner
Fatal configuration error; unable to start. See log for stacktrace.

pom.xml looks as below:

sonatype-oss-snapshot https://oss.sonatype.org/content/repositories/snapshots/ true daily
 <dependency>
  <groupId>org.springframework</groupId>
  <artifactId>spring-test</artifactId>
  <version>4.0.5.RELEASE</version>
  <scope>test</scope>
</dependency>

<dependency>
  <groupId>commons-collections</groupId>
  <artifactId>commons-collections</artifactId>
  <version>3.2.1</version>
</dependency>

<dependency>
  <groupId>org.springframework.data</groupId>
  <artifactId>spring-data-cassandra</artifactId>
  <version>1.1.1.RELEASE</version>
</dependency>

<!-- start here for emb server -->
        <dependency>
        <groupId>org.cassandraunit</groupId>
        <artifactId>cassandra-unit-spring</artifactId>
        <version>2.1.3.2-SNAPSHOT</version>
        <scope>test</scope>
        <exclusions>
            <exclusion>
                <groupId>org.cassandraunit</groupId>
                <artifactId>cassandra-unit</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.cassandraunit</groupId>
        <artifactId>cassandra-unit-shaded</artifactId>
        <version>2.1.3.2-SNAPSHOT</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.hectorclient</groupId>
        <artifactId>hector-core</artifactId>
        <version>2.0-0</version>
    </dependency>
    <dependency>
        <groupId>com.datastax.cassandra</groupId>
        <artifactId>cassandra-driver-core</artifactId>
        <version>2.1.5</version>
        <optional>true</optional>
    </dependency>

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>1.7.12</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.12</version>
    </dependency>
    <dependency>
        <groupId>commons-logging</groupId>
        <artifactId>commons-logging</artifactId>
        <version>1.2</version>
    </dependency>

I know there was a fix that went in few days ago. Still the problem seems to show up. Thanks

@hemabs hemabs changed the title cassandra-unit-shaded seems to not work with cassandra-unit while running embedded server cassandra-unit-shaded seems to not work with embedded server Jul 23, 2015
@hemabs hemabs changed the title cassandra-unit-shaded seems to not work with embedded server cassandra-unit-shaded throws error while configuring embedded server Jul 23, 2015
@hxgong
Copy link

hxgong commented Jan 11, 2016

Do we have a solution for this issue?

Thanks

@majidkhorsandi
Copy link

I am stuck with this. Any solution?

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

3 participants