This is the cassandra-maven-plugin.
- Make sure
gpg-agent
is running. - Execute
mvn -B release:prepare release:perform
For publishing the site do the following:
cd target/checkout
mvn verify site site:stage scm-publish:publish-scm
Home Page: https://www.mojohaus.org/cassandra-maven-plugin/
License: Apache License 2.0
This is the cassandra-maven-plugin.
gpg-agent
is running.mvn -B release:prepare release:perform
For publishing the site do the following:
cd target/checkout
mvn verify site site:stage scm-publish:publish-scm
Load script is very simple:
CREATE KEYSPACE mykeyspace WITH REPLICATION = {'class':'SimpleStrategy', 'replication_factor':1};
Error:
[ERROR] Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:2.1.7-1:run (default-cli) on project cassandra-test: API Exception calling Apache Cassandra: There was a problem calling Apache Cassandra's Thrift API. Details: The request was not properly formatted line 1:95 no viable alternative at character '}': InvalidRequestException -> [Help 1]
Seems some json parsing problem.
Plugin version: 2.1.7-1.
Same behavior if using :cql-exec and :load.
Currenlty only CQL versions from 1.2.1 to 2.0 are supported. Support for CQL3 should be added.
See:
http://www.datastax.com/dev/blog/whats-new-in-cql-3-0
and
http://www.datastax.com/dev/blog/thrift-to-cql3
I am using cassandra-maven-plugin version 2.0.0-1. It is specificly that version because we are still using Cassandra 2.0.x
When I ran this command:
mvn cassandra:start -DcassandraDir=/tmp/cassandra
I expected it to launch cassandra process and the process should be up and running in the background after the maven command finished. But in my case, it appeared to be running:
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Running /home/shintasmith/src/cassandra/cli/load.script...
[INFO] Connected to: "Test Cluster" on 127.0.0.1/9160
[INFO] Finished /home/shintasmith/src/cassandra/cli/load.script.
[INFO] Cassandra started in 4.0s
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
But no cassandra is running.
It's possible I'm missing something. What do I need to do to get cassandra to run in the background?
it not possible to create a table with static columns, this should be because it's valid cql.
example:
CREATE TABLE IF NOT EXISTS example (
col1 text,
col2 text static,
PRIMARY KEY (col1)
);
Is this project still alive?
I am working on Spring Boot REST API. I use cassandra-maven plugin to start the cassandra instance to run in local for integration testing purposes. The cassandra starts sometimes with out any issues and executes all the integration tests but most of the time it throws the following error mentioned below. I cannot figure how to resolve the issue. I have attached the pom.xml where I used the plugin. Thanks in advance.
[INFO] Cassandra not running!
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:18 min
[INFO] Finished at: 2018-05-09T17:57:11-05:00
[INFO] Final Memory: 95M/1452M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.5:start (start-cassandra) on project odr-parameter-cloud: Cassandra failed to start within 180s -> [Help 1]org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.5:start (start-cassandra) on project odr-parameter-cloud: Cassandra failed to start within 180s
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:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
Caused by: org.apache.maven.plugin.MojoFailureException: Cassandra failed to start within 180s
at org.codehaus.mojo.cassandra.StartCassandraMojo.execute(StartCassandraMojo.java:107)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 21 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException]
(Reproducing original bug filed by someone else, as it is still happening to us.)
http://mojo.10943.n7.nabble.com/jira-MCASSANDRA-23-start-cluster-fails-with-ConfigurationException-as-Cassandra-1-2-defaults-to-Murmr-td39664.html
Hi,
start-cluster
seems to fail to properly configure and start the Cassandra instances and throws (full stacktrace below):org.apache.cassandra.exceptions.ConfigurationException: For input string: "42535295865117307932921825928971026432"
Would it be possible to fix this in the next release?
More details and a workaround below. I have also attached a sample project to reproduce the issue easily.
Let me know if you need anything else.Cheers,
M.
Diagnosis:
- It seems that
cassandra-maven-plugin
fails to configure the tokens properly which then makesMurmur3Partitioner
(now the default in Cassandra 1.2.*) fail.- This doesn't happen when you start only one node using
start
instead ofstart-cluster
.Workaround:
Adding the below to the
cassandra-maven-plugin
configuration seems to make it work properly:<yaml>partitioner: org.apache.cassandra.dht.RandomPartitioner</yaml>
but isn't ideal, obviously.
Full stracktrace:
[INFO] --- cassandra-maven-plugin:1.2.1-1:start-cluster (default) @ perfandra-dao ---
[INFO] Starting for Cassandra Node 1...
[INFO] Starting for Cassandra Node 2...
[INFO] Starting for Cassandra Node 3...
[INFO] Starting for Cassandra Node 4...
[INFO] Waiting for Cassandra Node 1 to start...
[INFO] [ERROR] 22:43:35,096 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "42535295865117307932921825928971026432"
[INFO] at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:123)
[INFO] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] For input string: "42535295865117307932921825928971026432"
[INFO] Fatal configuration error; unable to start server. See log for stacktrace.
[INFO] [ERROR] 22:43:35,152 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "85070591730234615865843651857942052864"
[INFO] at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:123)
[INFO] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] For input string: "85070591730234615865843651857942052864"
[INFO] Fatal configuration error; unable to start server. See log for stacktrace.
[INFO] [ERROR] 22:43:35,235 Fatal configuration error
[INFO] org.apache.cassandra.exceptions.ConfigurationException: For input string: "127605887595351923798765477786913079296"
[INFO] at org.apache.cassandra.dht.Murmur3Partitioner$1.validate(Murmur3Partitioner.java:182)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.loadYaml(DatabaseDescriptor.java:443)
[INFO] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:123)
[INFO] For input string: "127605887595351923798765477786913079296"
[INFO] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:192)
[INFO] Fatal configuration error; unable to start server. See log for stacktrace.
[INFO] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:411)
[INFO] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:454)
[INFO] at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
[INFO] [WARN] 22:43:35,534 MemoryMeter uninitialized (jamm not specified as java agent); KeyCache size in JVM Heap will not be calculated accurately. Usually this means cassandra-env.sh disabled jamm because you are using a buggy JRE; upgrade to the Sun JRE instead
[INFO] [WARN] 22:43:36,491 No host ID found, created 33f1ae4b-cdd7-4043-b304-5ebfdd0310d9 (Note: This should happen exactly once per node).
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Waiting for Cassandra Node 2 to start...
Hi,
Can you please create a release that provides:
c304b3d
Hi,
I have followed the example suggesting to use the toolchain and the jvm option of failsafe plugin to change the jvm between test execution and server start. There is two thing that i found not optimal :
It seems to me that adding a jvm option as well in the cassandra-maven-plugin should do a better job.
There have been five commits (and several years) since the release of 3.6. Is it possible any longer to release from this codebase? Thanks for any info or insight into what is possible!
Hi,
are there any plans for a release of the plugin in near future which uses Cassandra 3?
Best regards
Lukas
Currently, this plugin overrides configuration from the log4j.configuration
system property. There's no need to do that-- it can be used if it is available and set if not.
Hi,
I want to contribute an example to the Integration tests documentation.
The solution to be shown is when users have a project using Cassandra Server v3.x and source/test code implemented using >JDK8.
Currently Cassandra Server 3.x only supports JDK8. The version supporting JDK11 is still beta.
There is a bit of complexity I have found when configuring Toolchains to make this work sweetly.
The complexity arises because the JDK used to hook in the pre-integration-test phase with cassandra:start goal is set for the MavenSession. Later used for the whole testing phase. Causing the tests to fail because the JDK8 compiler does not process JDK11 bytecode.
The proposed example provides the necessary documentation showing users how to get over this configuration problem.
I tried to use this plugin with cassandra 4.1.3
When running mvn clean install, cassandra refuses to start due to the error:
"10:14:39.349 [main] ERROR org.apache.cassandra.service.CassandraDaemon - Exception encountered during startup: Invalid yaml. Please remove properties [start_rpc, rpc_server_type, rpc_port, thrift_framed_transport_size_in_mb, request_scheduler] from your cassandra.yaml
"
I tried to use plugin configuration::yaml to pass null or empty value to those fields, but it didn't fix error.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cassandra-maven-plugin</artifactId> <version>3.7</version> <configuration> <yaml></yaml> </configuration> <executions> <execution> <goals> <goal>start</goal> <goal>stop</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>org.apache.cassandra</groupId> <artifactId>cassandra-all</artifactId> <version>4.1.3</version> </dependency> </dependencies> </plugin>
I am working on Spring Boot REST API. I use cassandra-maven plugin to start the cassandra instance to run in local for integration testing purposes. . I cannot figure how to resolve the issue. I have attached the pom.xml where I used the plugin. Thanks in advance
08:51:17 [INFO] --- cassandra-maven-plugin:3.5:delete (delete-cassandra) @ odr-parameter-cloud ---
08:51:18 [INFO] Deleting /jenkins/looperJobs/OnDemandReplenishment/ASM/ASM_API Version 1/ws/target/cassandra
08:51:18 [INFO]
08:51:18 [INFO] --- cassandra-maven-plugin:3.5:start (start-cassandra) @ odr-parameter-cloud ---
08:51:18 [INFO] Waiting for Cassandra to start...
08:51:18 [INFO] 15:51:18.622 [main] INFO o.a.c.config.YamlConfigurationLoader - Configuration location: file:/jenkins/looperJobs/OnDemandReplenishment/ASM/ASM_API%20Version%201/ws/target/cassandra/conf/cassandra.yaml
08:51:18 [INFO] 15:51:18.627 [main] DEBUG o.a.c.config.YamlConfigurationLoader - Loading settings from file:/jenkins/looperJobs/OnDemandReplenishment/ASM/ASM_API%20Version%201/ws/target/cassandra/conf/cassandra.yaml
08:51:18 [INFO] 15:51:18.948 [main] INFO org.apache.cassandra.config.Config - Node configuration:[allocate_tokens_for_keyspace=null; authenticator=AllowAllAuthenticator; authorizer=AllowAllAuthorizer; auto_bootstrap=true; auto_snapshot=true; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5; batchlog_replay_throttle_in_kb=1024; broadcast_address=null; broadcast_rpc_address=null; buffer_pool_use_heap_if_exhausted=true; cas_contention_timeout_in_ms=1000; cdc_enabled=false; cdc_free_space_check_interval_ms=250; cdc_raw_directory=null; cdc_total_space_in_mb=null; client_encryption_options=; cluster_name=Test Cluster; column_index_cache_size_in_kb=2; column_index_size_in_kb=64; commit_failure_policy=stop; commitlog_compression=null; commitlog_directory=/jenkins/looperJobs/OnDemandReplenishment/ASM/ASM_API Version 1/ws/target/cassandra/commitlog; commitlog_max_compression_buffers_in_pool=3; commitlog_periodic_queue_size=-1; commitlog_segment_size_in_mb=32; commitlog_sync=periodic; commitlog_sync_batch_window_in_ms=null; commitlog_sync_period_in_ms=10000; commitlog_total_space_in_mb=null; compaction_large_partition_warning_threshold_mb=100; compaction_throughput_mb_per_sec=16; concurrent_compactors=null; concurrent_counter_writes=32; concurrent_materialized_view_writes=32; concurrent_reads=32; concurrent_replicates=null; concurrent_writes=32; counter_cache_keys_to_save=2147483647; counter_cache_save_period=7200; counter_cache_size_in_mb=null; counter_write_request_timeout_in_ms=5000; credentials_cache_max_entries=1000; credentials_update_interval_in_ms=-1; credentials_validity_in_ms=2000; cross_node_timeout=false; data_file_directories=[Ljava.lang.String;@7fe8ea47; disk_access_mode=auto; disk_failure_policy=stop; disk_optimization_estimate_percentile=0.95; disk_optimization_page_cross_chance=0.1; disk_optimization_strategy=ssd; dynamic_snitch=true; dynamic_snitch_badness_threshold=0.1; dynamic_snitch_reset_interval_in_ms=600000; dynamic_snitch_update_interval_in_ms=100; enable_scripted_user_defined_functions=false; enable_user_defined_functions=false; enable_user_defined_functions_threads=true; encryption_options=null; endpoint_snitch=SimpleSnitch; file_cache_size_in_mb=null; gc_log_threshold_in_ms=200; gc_warn_threshold_in_ms=0; hinted_handoff_disabled_datacenters=[]; hinted_handoff_enabled=true; hinted_handoff_throttle_in_kb=1024; hints_compression=null; hints_directory=null; hints_flush_period_in_ms=10000; incremental_backups=false; index_interval=null; index_summary_capacity_in_mb=null; index_summary_resize_interval_in_minutes=60; initial_token=null; inter_dc_stream_throughput_outbound_megabits_per_sec=200; inter_dc_tcp_nodelay=false; internode_authenticator=null; internode_compression=all; internode_recv_buff_size_in_bytes=null; internode_send_buff_size_in_bytes=null; key_cache_keys_to_save=2147483647; key_cache_save_period=14400; key_cache_size_in_mb=null; listen_address=127.0.0.1; listen_interface=null; listen_interface_prefer_ipv6=false; listen_on_broadcast_address=false; max_hint_window_in_ms=10800000; max_hints_delivery_threads=2; max_hints_file_size_in_mb=128; max_mutation_size_in_kb=null; max_streaming_retries=3; max_value_size_in_mb=256; memtable_allocation_type=heap_buffers; memtable_cleanup_threshold=null; memtable_flush_writers=1; memtable_heap_space_in_mb=null; memtable_offheap_space_in_mb=null; min_free_space_per_drive_in_mb=50; native_transport_max_concurrent_connections=-1; native_transport_max_concurrent_connections_per_ip=-1; native_transport_max_frame_size_in_mb=256; native_transport_max_threads=128; native_transport_port=37384; native_transport_port_ssl=null; num_tokens=256; otc_coalescing_strategy=TIMEHORIZON; otc_coalescing_window_us=200; partitioner=org.apache.cassandra.dht.Murmur3Partitioner; permissions_cache_max_entries=1000; permissions_update_interval_in_ms=-1; permissions_validity_in_ms=2000; phi_convict_threshold=8.0; prepared_statements_cache_size_mb=null; range_request_timeout_in_ms=10000; read_request_timeout_in_ms=10000; request_scheduler=org.apache.cassandra.scheduler.NoScheduler; request_scheduler_id=null; request_scheduler_options=null; request_timeout_in_ms=10000; role_manager=null; roles_cache_max_entries=1000; roles_update_interval_in_ms=-1; roles_validity_in_ms=2000; row_cache_class_name=org.apache.cassandra.cache.OHCProvider; row_cache_keys_to_save=2147483647; row_cache_save_period=0; row_cache_size_in_mb=0; rpc_address=127.0.0.1; rpc_interface=null; rpc_interface_prefer_ipv6=false; rpc_keepalive=true; rpc_listen_backlog=50; rpc_max_threads=2147483647; rpc_min_threads=16; rpc_port=39073; rpc_recv_buff_size_in_bytes=null; rpc_send_buff_size_in_bytes=null; rpc_server_type=sync; saved_caches_directory=/jenkins/looperJobs/OnDemandReplenishment/ASM/ASM_API Version 1/ws/target/cassandra/saved_caches; seed_provider=org.apache.cassandra.locator.SimpleSeedProvider{seeds=127.0.0.1}; server_encryption_options=; snapshot_before_compaction=false; ssl_storage_port=7001; sstable_preemptive_open_interval_in_mb=50; start_native_transport=true; start_rpc=true; storage_port=38844; stream_throughput_outbound_megabits_per_sec=200; streaming_socket_timeout_in_ms=86400000; thrift_framed_transport_size_in_mb=15; thrift_max_message_length_in_mb=16; thrift_prepared_statements_cache_size_mb=null; tombstone_failure_threshold=100000; tombstone_warn_threshold=1000; tracetype_query_ttl=86400; tracetype_repair_ttl=604800; transparent_data_encryption_options=org.apache.cassandra.config.TransparentDataEncryptionOptions@226a82c4; trickle_fsync=false; trickle_fsync_interval_in_kb=10240; truncate_request_timeout_in_ms=60000; unlogged_batch_across_partitions_warn_threshold=10; user_defined_function_fail_timeout=1500; user_defined_function_warn_timeout=500; user_function_timeout_policy=die; windows_timer_interval=0; write_request_timeout_in_ms=10000]
08:51:18 [INFO] 15:51:18.948 [main] DEBUG o.a.c.config.DatabaseDescriptor - Syncing log with a period of 10000
08:51:18 [INFO] 15:51:18.948 [main] INFO o.a.c.config.DatabaseDescriptor - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
08:51:19 [INFO] 15:51:19.106 [main] INFO o.a.c.config.DatabaseDescriptor - Global memtable on-heap threshold is enabled at 113MB
08:51:19 [INFO] 15:51:19.107 [main] INFO o.a.c.config.DatabaseDescriptor - Global memtable off-heap threshold is enabled at 113MB
08:51:19 [INFO] Exception (java.lang.NullPointerException) encountered during startup: null
08:51:19 [INFO] java.lang.NullPointerException
08:51:19 [INFO] at java.nio.file.Files.provider(Files.java:97)
08:51:19 [INFO] at java.nio.file.Files.getFileStore(Files.java:1461)
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:823)
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:580)
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:125)
08:51:19 [INFO] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:576)
08:51:19 [INFO] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730)
08:51:19 [INFO] at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148)
08:51:19 [INFO] 15:51:19.120 [main] ERROR o.a.c.service.CassandraDaemon - Exception encountered during startup
08:51:19 [INFO] java.lang.NullPointerException: null
08:51:19 [INFO] at java.nio.file.Files.provider(Files.java:97) ~[na:1.8.0_151]
08:51:19 [INFO] at java.nio.file.Files.getFileStore(Files.java:1461) ~[na:1.8.0_151]
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:823) ~[cassandra-all-3.9.jar:3.9]
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:580) ~[cassandra-all-3.9.jar:3.9]
08:51:19 [INFO] at org.apache.cassandra.config.DatabaseDescriptor.(DatabaseDescriptor.java:125) ~[cassandra-all-3.9.jar:3.9]
08:51:19 [INFO] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:576) [cassandra-all-3.9.jar:3.9]
08:51:19 [INFO] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:730) [cassandra-all-3.9.jar:3.9]
08:51:19 [INFO] at org.codehaus.mojo.cassandra.CassandraMonitor.main(CassandraMonitor.java:148) [cassandra-maven-plugin-3.5.jar:na]
08:54:18 [INFO] Cassandra not running!
08:54:18 [INFO] ------------------------------------------------------------------------
08:54:18 [INFO] BUILD FAILURE
08:54:18 [INFO] ------------------------------------------------------------------------
08:54:18 [INFO] Total time: 03:21 min
08:54:18 [INFO] Finished at: 2018-05-11T15:54:18+00:00
08:54:18 [INFO] Final Memory: 86M/1115M
08:54:18 [INFO] ------------------------------------------------------------------------
08:54:18 [ERROR] Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.5:start (start-cassandra) on project odr-parameter-cloud: Cassandra failed to start within 180s -> [Help 1]
08:54:18 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.5:start (start-cassandra) on project odr-parameter-cloud: Cassandra failed to start within 180s
08:54:18 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
08:54:18 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
08:54:18 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
08:54:18 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
08:54:18 at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
08:54:18 at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
08:54:18 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
08:54:18 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
08:54:18 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
08:54:18 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
08:54:18 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
08:54:18 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
08:54:18 at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
08:54:18 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08:54:18 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
08:54:18 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
08:54:18 at java.lang.reflect.Method.invoke(Method.java:498)
08:54:18 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
08:54:18 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
08:54:18 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
08:54:18 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
08:54:18 Caused by: org.apache.maven.plugin.MojoFailureException: Cassandra failed to start within 180s
08:54:18 at org.codehaus.mojo.cassandra.StartCassandraMojo.execute(StartCassandraMojo.java:107)
08:54:18 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
08:54:18 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
08:54:18 ... 20 more
08:54:18 [ERROR]
08:54:18 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
08:54:18 [ERROR]
08:54:18 [ERROR] For more information about the errors and possible solutions, please read the following articles:
08:54:18 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
This is my pom.xml cassandra-maven configuration
<plugin>
<!-- See http://mojo.codehaus.org/cassandra-maven-plugin/plugin-info.html -->
<!-- See http://wiki.apache.org/cassandra/MavenPlugin -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>cassandra-maven-plugin</artifactId>
<version>3.5</version>
<configuration>
<skip>false</skip>
<!--<listenAddress>${cassandra.listenAddress}</listenAddress> -->
<startNativeTransport>true</startNativeTransport>
<cqlVersion>3.2.1</cqlVersion>
<logLevel>INFO</logLevel>
<!-- work-around, see note on cassandra.script property above -->
<!-- <script>${cassandra.script}</script> -->
<!-- <loadFailureIgnore>false</loadFailureIgnore> <startWaitSeconds>0</startWaitSeconds>
<loadAfterFirstStart>false</loadAfterFirstStart> -->
</configuration>
<executions>
<execution>
<id>delete-cassandra</id>
<phase>pre-integration-test</phase>
<goals>
<goal>delete</goal>
</goals>
</execution>
<execution>
<id>start-cassandra</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<rpcPort>${cassandra.rpcPort}</rpcPort>
</configuration>
</execution>
<execution>
<id>init-cassandra</id>
<phase>pre-integration-test</phase>
<goals>
<goal>cql-exec</goal>
</goals>
<configuration>
<skip>true</skip>
</configuration>
</execution>
<execution>
<id>stop-cassandra</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId>
<version>3.9</version>
</dependency>
</dependencies>
</plugin>
Cassandra-maven-plugin: version: 2.1.7-1
Stack trace:
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution create-cassandra-schema of goal org.codehaus.mojo:cassandra-maven-plugin:2.1.7-1:cql-exec failed.
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Caused by: java.lang.NullPointerException
at org.codehaus.mojo.cassandra.CqlExecCassandraMojo.printResults(CqlExecCassandraMojo.java:99)
at org.codehaus.mojo.cassandra.CqlExecCassandraMojo.execute(CqlExecCassandraMojo.java:87)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
Cql script:
CREATE KEYSPACE xxxx WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 } AND DURABLE_WRITES = true ;
CREATE TABLE xxxx.yyyy (
id uuid,
PRIMARY KEY (id)
);
Hi,
The "delete" goal doesn't work, it isn't run (no trace in log file, no directory removal). My pom.xml looks like this:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cassandra-maven-plugin</artifactId>
<version>2.0.0-1</version>
<executions>
<execution>
<goals>
<goal>delete</goal>
<goal>start</goal>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<cassandraDir>/tmp/cassandra</cassandraDir>
<startNativeTransport>true</startNativeTransport>
</configuration>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.5</version>
</dependency>
</dependencies>
</plugin>
But I have build failures at some point (multi-module project) because it finds and reuses the database instance. I've checked the source code and the possible reason for failure is that DeleteCassandraMojo.java does not extend AbstractCassandraMojo but AbstractMojo directly? No idea, not competent with the architecture, but this is what I've spot as a difference to other goals.
Tried to move order, no difference.
I've checked the latest version as well the buggy one (2.0.0-1 I use) and look similar.
Thank you and regards,
Corneliu
Hi,
I get this error nodetool.jar not found for flush
On Mac OSX, JDK 11, Maven CLI 3.6.1.
Can you please help me to fix the mistake in my POM setup or conflicting dependencies.
Have the POM section and the errors seen after that below.
Thank you in advance.
=== POM section
org.codehaus.mojo cassandra-maven-plugin ${cassandra-maven-plugin.version} true true 19160 17199 17000 18081 <script>${basedir}/src/main/deploy/init/cassandra-conf/AerFrameCluster.script</script> start-cassandra start flush cleanup pre-integration-test stop-cassandra stop post-integration-test=====
[DEBUG] First start of Cassandra instance in /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra as it does not exist.
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/bin as it does not exist.
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/conf as it does not exist.
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/data as it does not exist.
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/commitlog as it does not exist.
[DEBUG] Creating directory /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/saved_caches as it does not exist.
[DEBUG] Creating /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/conf/cassandra.yaml
[DEBUG] Creating /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/conf/log4j-server.xml
[DEBUG] Creating /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/conf/log4j-client.xml
[DEBUG] Creating /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/bin/cassandra.jar
[DEBUG] Adding plugin artifact: org.codehaus.mojo:cassandra-maven-plugin to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.mojo:cassandra-maven-plugin to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.cassandra:cassandra-all to the classpath
[DEBUG] Adding plugin dependency artifact: org.xerial.snappy:snappy-java to the classpath
[DEBUG] Adding plugin dependency artifact: net.jpountz.lz4:lz4 to the classpath
[DEBUG] Adding plugin dependency artifact: com.ning:compress-lzf to the classpath
[DEBUG] Adding plugin dependency artifact: com.google.guava:guava to the classpath
[DEBUG] Adding plugin dependency artifact: commons-cli:commons-cli to the classpath
[DEBUG] Adding plugin dependency artifact: commons-codec:commons-codec to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.commons:commons-lang3 to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.commons:commons-math3 to the classpath
[DEBUG] Adding plugin dependency artifact: com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru to the classpath
[DEBUG] Adding plugin dependency artifact: org.antlr:antlr to the classpath
[DEBUG] Adding plugin dependency artifact: org.antlr:ST4 to the classpath
[DEBUG] Adding plugin dependency artifact: org.antlr:antlr-runtime to the classpath
[DEBUG] Adding plugin dependency artifact: org.slf4j:slf4j-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.slf4j:log4j-over-slf4j to the classpath
[DEBUG] Adding plugin dependency artifact: org.slf4j:jcl-over-slf4j to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.jackson:jackson-core-asl to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.jackson:jackson-mapper-asl to the classpath
[DEBUG] Adding plugin dependency artifact: com.googlecode.json-simple:json-simple to the classpath
[DEBUG] Adding plugin dependency artifact: com.boundary:high-scale-lib to the classpath
[DEBUG] Adding plugin dependency artifact: org.yaml:snakeyaml to the classpath
[DEBUG] Adding plugin dependency artifact: org.mindrot:jbcrypt to the classpath
[DEBUG] Adding plugin dependency artifact: io.dropwizard.metrics:metrics-core to the classpath
[DEBUG] Adding plugin dependency artifact: com.addthis.metrics:reporter-config3 to the classpath
[DEBUG] Adding plugin dependency artifact: com.addthis.metrics:reporter-config-base to the classpath
[DEBUG] Adding plugin dependency artifact: org.hibernate:hibernate-validator to the classpath
[DEBUG] Adding plugin dependency artifact: javax.validation:validation-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.jboss.logging:jboss-logging to the classpath
[DEBUG] Adding plugin dependency artifact: com.thinkaurelius.thrift:thrift-server to the classpath
[DEBUG] Adding plugin dependency artifact: com.lmax:disruptor to the classpath
[DEBUG] Adding plugin dependency artifact: com.clearspring.analytics:stream to the classpath
[DEBUG] Adding plugin dependency artifact: it.unimi.dsi:fastutil to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.thrift:libthrift to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.httpcomponents:httpclient to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.httpcomponents:httpcore to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.cassandra:cassandra-thrift to the classpath
[DEBUG] Adding plugin dependency artifact: com.carrotsearch:hppc to the classpath
[DEBUG] Adding plugin dependency artifact: de.jflex:jflex to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.ant:ant to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.ant:ant-launcher to the classpath
[DEBUG] Adding plugin dependency artifact: net.mintern:primitive to the classpath
[DEBUG] Adding plugin dependency artifact: com.github.rholder:snowball-stemmer to the classpath
[DEBUG] Adding plugin dependency artifact: com.googlecode.concurrent-trees:concurrent-trees to the classpath
[DEBUG] Adding plugin dependency artifact: net.java.dev.jna:jna to the classpath
[DEBUG] Adding plugin dependency artifact: com.github.jbellis:jamm to the classpath
[DEBUG] Adding plugin dependency artifact: io.netty:netty-all to the classpath
[DEBUG] Adding plugin dependency artifact: joda-time:joda-time to the classpath
[DEBUG] Adding plugin dependency artifact: org.fusesource:sigar to the classpath
[DEBUG] Adding plugin dependency artifact: org.eclipse.jdt.core.compiler:ecj to the classpath
[DEBUG] Adding plugin dependency artifact: org.caffinitas.ohc:ohc-core to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-project to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-settings to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-profile to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-plugin-registry to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.plexus:plexus-interpolation to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven.shared:maven-filtering to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-monitor to the classpath
[DEBUG] Adding plugin dependency artifact: org.sonatype.plexus:plexus-build-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-model to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-artifact to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-artifact-manager to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-repository-metadata to the classpath
[DEBUG] Adding plugin dependency artifact: backport-util-concurrent:backport-util-concurrent to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-core to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-plugin-parameter-documenter to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven.reporting:maven-reporting-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven.doxia:doxia-sink-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven.doxia:doxia-logging-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-error-diagnostics to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-plugin-descriptor to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.plexus:plexus-interactivity-api to the classpath
[DEBUG] Adding plugin dependency artifact: classworlds:classworlds to the classpath
[DEBUG] Adding plugin dependency artifact: org.sonatype.plexus:plexus-sec-dispatcher to the classpath
[DEBUG] Adding plugin dependency artifact: org.sonatype.plexus:plexus-cipher to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-plugin-api to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.plexus:plexus-utils to the classpath
[DEBUG] Adding plugin dependency artifact: org.codehaus.plexus:plexus-container-default to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.commons:commons-exec to the classpath
[DEBUG] Adding plugin dependency artifact: org.apache.maven:maven-toolchain to the classpath
[DEBUG] Adding plugin dependency artifact: org.cassandraunit:cassandra-unit to the classpath
[DEBUG] Adding plugin dependency artifact: org.hamcrest:hamcrest-all to the classpath
[DEBUG] Adding plugin dependency artifact: com.sun.xml.bind:jaxb-impl to the classpath
[DEBUG] Adding plugin dependency artifact: javax.xml.bind:jaxb-api to the classpath
[DEBUG] Adding plugin dependency artifact: javax.xml.stream:stax-api to the classpath
[DEBUG] Adding plugin dependency artifact: javax.activation:activation to the classpath
[DEBUG] Adding plugin dependency artifact: me.prettyprint:hector-core to the classpath
[DEBUG] Adding plugin dependency artifact: commons-pool:commons-pool to the classpath
[DEBUG] Adding plugin dependency artifact: com.github.stephenc.eaio-uuid:uuid to the classpath
[DEBUG] Adding plugin dependency artifact: com.ecyrd.speed4j:speed4j to the classpath
[DEBUG] Adding plugin dependency artifact: commons-lang:commons-lang to the classpath
[DEBUG] Adding: /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/test-classes to the classpath
[DEBUG] Adding: /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/classes to the classpath
[DEBUG] Executing command line: java -Xmx512m -Dcassandra.storagedir=/Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra -DSTOP.KEY=cassandra-maven-plugin -DSTOP.PORT=18081 -DSTOP.HOST=127.0.0.1 -Dlog4j.configurationFile=file:/Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/conf/log4j-server.xml -Dcom.sun.management.jmxremote=true -DcassandraLogLevel=ERROR -Dcom.sun.management.jmxremote.port=17199 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/bin/cassandra.jar
[INFO] Waiting for Cassandra to start...
[INFO] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[INFO] SLF4J: Defaulting to no-operation (NOP) logger implementation
[INFO] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] WARNING: An illegal reflective access operation has occurred
[INFO] WARNING: Illegal reflective access by org.github.jamm.MemoryMeter (file:/Users/raj.srinivasan/.m2/repository/com/github/jbellis/jamm/0.3.0/jamm-0.3.0.jar) to field java.util.concurrent.ConcurrentSkipListMap.comparator
[INFO] WARNING: Please consider reporting this to the maintainers of org.github.jamm.MemoryMeter
[INFO] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[INFO] WARNING: All illegal access operations will be denied in a future release
[INFO] Cassandra cluster "Test Cluster" started.
[INFO] Running /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/src/main/deploy/init/cassandra-conf/AerFrameCluster.script...
[INFO] setting cqlversion: 3.4.0
[INFO] Finished /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/src/main/deploy/init/cassandra-conf/AerFrameCluster.script.
[INFO] Cassandra started in 7.8s
[INFO]
[INFO] --- cassandra-maven-plugin:3.6:flush (start-cassandra) @ aerframe-core ---
[DEBUG] Configuring mojo org.codehaus.mojo:cassandra-maven-plugin:3.6:flush from plugin realm ClassRealm[plugin>org.codehaus.mojo:cassandra-maven-plugin:3.6, parent: jdk.internal.loader.ClassLoaders$AppClassLoader@799f7e29]
[DEBUG] Configuring mojo 'org.codehaus.mojo:cassandra-maven-plugin:3.6:flush' with basic configurator -->
[DEBUG] (f) addMainClasspath = true
[DEBUG] (f) addTestClasspath = true
[DEBUG] (f) cassandraDir = /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra
[DEBUG] (f) classesDirectory = /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/classes
[DEBUG] (f) jmxPort = 17199
[DEBUG] (f) listenAddress = 127.0.0.1
[DEBUG] (f) logLevel = ERROR
[DEBUG] (f) maxMemory = 512
[DEBUG] (f) nativeTransportPort = 9042
[DEBUG] (f) pluginArtifact = org.codehaus.mojo:cassandra-maven-plugin:maven-plugin:3.6
[DEBUG] (f) pluginDependencies = [org.codehaus.mojo:cassandra-maven-plugin:maven-plugin:3.6:, org.apache.cassandra:cassandra-all:jar:3.5:compile, org.xerial.snappy:snappy-java:jar:1.1.1.7:compile, net.jpountz.lz4:lz4:jar:1.3.0:compile, com.ning:compress-lzf:jar:0.8.4:compile, com.google.guava:guava:jar:18.0:compile, commons-cli:commons-cli:jar:1.1:compile, commons-codec:commons-codec:jar:1.2:compile, org.apache.commons:commons-lang3:jar:3.1:compile, org.apache.commons:commons-math3:jar:3.2:compile, com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4:compile, org.antlr:antlr:jar:3.5.2:compile, org.antlr:ST4:jar:4.0.8:compile, org.antlr:antlr-runtime:jar:3.5.2:compile, org.slf4j:slf4j-api:jar:1.7.7:compile, org.slf4j:log4j-over-slf4j:jar:1.7.7:compile, org.slf4j:jcl-over-slf4j:jar:1.7.7:compile, org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile, org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:compile, com.googlecode.json-simple:json-simple:jar:1.1:compile, com.boundary:high-scale-lib:jar:1.0.6:compile, org.yaml:snakeyaml:jar:1.11:compile, org.mindrot:jbcrypt:jar:0.3m:compile, io.dropwizard.metrics:metrics-core:jar:3.1.0:compile, com.addthis.metrics:reporter-config3:jar:3.0.0:compile, com.addthis.metrics:reporter-config-base:jar:3.0.0:compile, org.hibernate:hibernate-validator:jar:4.3.0.Final:compile, javax.validation:validation-api:jar:1.0.0.GA:compile, org.jboss.logging:jboss-logging:jar:3.1.0.CR2:compile, com.thinkaurelius.thrift:thrift-server:jar:0.3.7:compile, com.lmax:disruptor:jar:3.0.1:compile, com.clearspring.analytics:stream:jar:2.5.2:compile, it.unimi.dsi:fastutil:jar:6.5.7:compile, org.apache.thrift:libthrift:jar:0.9.2:compile, org.apache.httpcomponents:httpclient:jar:4.2.5:compile, org.apache.httpcomponents:httpcore:jar:4.2.4:compile, org.apache.cassandra:cassandra-thrift:jar:3.5:compile, com.carrotsearch:hppc:jar:0.5.4:compile, de.jflex:jflex:jar:1.6.0:compile, org.apache.ant:ant:jar:1.7.0:compile, org.apache.ant:ant-launcher:jar:1.7.0:compile, net.mintern:primitive:jar:1.0:compile, com.github.rholder:snowball-stemmer:jar:1.3.0.581.1:compile, com.googlecode.concurrent-trees:concurrent-trees:jar:2.4.0:compile, net.java.dev.jna:jna:jar:4.0.0:compile, com.github.jbellis:jamm:jar:0.3.0:compile, io.netty:netty-all:jar:4.0.23.Final:compile, joda-time:joda-time:jar:2.4:compile, org.fusesource:sigar:jar:1.6.4:compile, org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:compile, org.caffinitas.ohc:ohc-core:jar:0.4.3:compile, org.apache.maven:maven-project:jar:2.2.1:compile, org.apache.maven:maven-settings:jar:2.2.1:compile, org.apache.maven:maven-profile:jar:2.2.1:compile, org.apache.maven:maven-plugin-registry:jar:2.2.1:compile, org.codehaus.plexus:plexus-interpolation:jar:1.11:compile, org.apache.maven.shared:maven-filtering:jar:1.0-beta-4:compile, org.apache.maven:maven-monitor:jar:2.0.6:compile, org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile, org.apache.maven:maven-model:jar:2.2.1:compile, org.apache.maven:maven-artifact:jar:2.2.1:compile, org.apache.maven:maven-artifact-manager:jar:2.2.1:compile, org.apache.maven:maven-repository-metadata:jar:2.2.1:compile, backport-util-concurrent:backport-util-concurrent:jar:3.1:compile, org.apache.maven:maven-core:jar:2.2.1:compile, org.apache.maven:maven-plugin-parameter-documenter:jar:2.2.1:compile, org.apache.maven.reporting:maven-reporting-api:jar:2.2.1:compile, org.apache.maven.doxia:doxia-sink-api:jar:1.1:compile, org.apache.maven.doxia:doxia-logging-api:jar:1.1:compile, org.apache.maven:maven-error-diagnostics:jar:2.2.1:compile, org.apache.maven:maven-plugin-descriptor:jar:2.2.1:compile, org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile, classworlds:classworlds:jar:1.1:compile, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile, org.sonatype.plexus:plexus-cipher:jar:1.4:compile, org.apache.maven:maven-plugin-api:jar:2.2.1:compile, org.codehaus.plexus:plexus-utils:jar:2.0.5:compile, org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile, org.apache.commons:commons-exec:jar:1.1:compile, org.apache.maven:maven-toolchain:jar:2.0.9:compile, org.cassandraunit:cassandra-unit:jar:1.0.3.1:compile, org.hamcrest:hamcrest-all:jar:1.1:compile, com.sun.xml.bind:jaxb-impl:jar:2.2.4-1:compile, javax.xml.bind:jaxb-api:jar:2.2.3:compile, javax.xml.stream:stax-api:jar:1.0-2:compile, javax.activation:activation:jar:1.1:compile, me.prettyprint:hector-core:jar:1.0-3:compile, commons-pool:commons-pool:jar:1.5.3:compile, com.github.stephenc.eaio-uuid:uuid:jar:3.2.0:compile, com.ecyrd.speed4j:speed4j:jar:0.9:compile, commons-lang:commons-lang:jar:2.6:compile]
[DEBUG] (f) project = MavenProject: com.aeris.aerframe:aerframe-core:1.0.0 @ /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/pom.xml
[DEBUG] (f) rpcAddress = 127.0.0.1
[DEBUG] (f) rpcPort = 19160
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@733ec58b
[DEBUG] (f) skip = false
[DEBUG] (f) startNativeTransport = false
[DEBUG] (f) stopKey = cassandra-maven-plugin
[DEBUG] (f) stopPort = 18081
[DEBUG] (f) storagePort = 17000
[DEBUG] (f) testClassesDirectory = /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/test-classes
[DEBUG] -- end configuration --
[DEBUG] Executing command line: java -jar /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/bin/nodetool.jar --host 127.0.0.1 --port 17199 flush
[INFO] Error: Unable to access jarfile /Users/raj.srinivasan/workspace-j11/aerframe/aerframe-core/target/cassandra/bin/nodetool.jar
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.6:flush (start-cassandra) on project aerframe-core: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:cassandra-maven-plugin:3.6:flush (start-cassandra) on project aerframe-core: Command execution failed.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
at org.codehaus.mojo.cassandra.FlushCassandraMojo.execute (FlushCassandraMojo.java:72)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:377)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:160)
at org.codehaus.mojo.cassandra.FlushCassandraMojo.execute (FlushCassandraMojo.java:67)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Hi,
I'd like to propose adding the ability to set the Java runtime to start the Cassandra process.
This probably requires adding in tandem with the cassandra-unit library.
The reason I ask for this is to continue running Cassandra with JDK8. Which might not be the default Java on the platform. The problem occurred in this project issue.
Cassandra Maven Plugin version 3.6 is not working with Spring Boot 2.0.0.RC1. Spring Boot is dependent on 3.4.0 version of Datastax's Cassandra driver. Here is the exception I am getting,
Error creating bean with name 'session' defined in class path resource [com/basaki/service/config/CassandraConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.datastax.driver.core.Session]: Factory method 'testSession' threw exception; nested exception is java.lang.IllegalStateException: Can't use this cluster instance because it was previously closed
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:729)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:192)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.