Issue Type: Improvement Improvement
Affects Versions: 1.2.1-1
Assignee: Stephen Connolly
Created: 14/Oct/13 7:15 PM
Description:

Currently it seems to be impossible to use this plugin with C* 2.0.x versions. I tried with the following maven config:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cassandra-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>pre-delete-cassandra</id>
            <phase>pre-integration-test</phase>
            <goals>
                <goal>delete</goal>
            </goals>
        </execution>
        <execution>
            <id>start-cassandra</id>
            <phase>integration-test</phase>
            <goals>
                <goal>start</goal>
            </goals>
            <configuration>
                <listenAddress>${cassandra.listenAddress}</listenAddress>
                <jmxPort>${cassandra.jmxPort}</jmxPort>
                <rpcPort>${cassandra.rpcPort}</rpcPort>
                <stopPort>${cassandra.stopPort}</stopPort>
                <storagePort>${cassandra.storagePort}</storagePort>
            </configuration>
        </execution>
        <execution>
            <id>stop-cassandra</id>
            <phase>post-integration-test</phase>
            <goals>
                <goal>stop</goal>
            </goals>
            <configuration>
                <listenAddress>${cassandra.listenAddress}</listenAddress>
                <stopPort>${cassandra.stopPort}</stopPort>
            </configuration>
        </execution>
    </executions>
    <dependencies>
        <dependency>
            <groupId>org.apache.cassandra</groupId>
            <artifactId>cassandra-all</artifactId>
            <version>2.0.1</version>
        </dependency>
    </dependencies>
</plugin>

the output is:

[INFO] 06:02:06.965 [main][] INFO  YamlConfigurationLoader:76 - Loading settings from file:/PROJECT/target/cassandra/conf/cassandra.yaml
[INFO] 06:02:07.434 [main][] ERROR DatabaseDescriptor:109 - Fatal configuration error
[INFO] Invalid yaml. Please remove properties [row_cache_provider, reduce_cache_sizes_at, reduce_cache_capacity_to, flush_largest_memtables_at] from your cassandra.yaml
[INFO] org.apache.cassandra.exceptions.ConfigurationException: Invalid yaml. Please remove properties [row_cache_provider, reduce_cache_sizes_at, reduce_cache_capacity_to, flush_largest_memtables_at] from your cassandra.yaml
[INFO] Fatal configuration error; unable to start. See log for stacktrace.
[INFO] 	at org.apache.cassandra.config.YamlConfigurationLoader$MissingPropertiesChecker.check(YamlConfigurationLoader.java:131) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:94) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:128) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:104) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:204) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:442) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:485) ~[cassandra-all-2.0.1.jar:2.0.1]
[INFO] 	at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148) ~[cassandra-maven-plugin-1.2.1-1.jar:na]
[INFO] Cassandra not running!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:59.012s
[INFO] Finished at: Tue Oct 15 06:08:06 YEKT 2013
[INFO] Final Memory: 25M/335M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:1.2.1-1:start (start-cassandra) on project PROJECT: Cassandra failed to start within 360s -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:1.2.1-1:start (start-cassandra) on project PROJECT: Cassandra failed to start within 360s
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.apache.maven.plugin.MojoFailureException: Cassandra failed to start within 360s
	at org.codehaus.mojo.cassandra.StartCassandraMojo.execute(StartCassandraMojo.java:91)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 25 more
Project: Mojo's Cassandra Maven Plugin
Priority: Major Major
Reporter: Mikhail Mazursky
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to