Two and a half years ago, we have shown in this blog post how JHipster a.k.a. Java Hipster can be used to auto-generate Angular 4 and Spring Boot code. Now, we will revisit the Hello World with newer versions Angular 8 and Spring 2.11 and the usage of Apache Cassandra v3.11 database running in a Docker container.

Private note: instead of running Docker within a VirtualBox machine, I was running the docker commands on a Docker host on a Cloud machine.

References

Step 1: Run JHipster Docker Container

(container)# docker run -it -p 18080:8080 -p 3001:3001 -p 9000:9000 -p 9060:9060 -v $(pwd):/localdir jhipster/jhipster:v6.6.0 bash
(container)# cd /localdir/
(container)# mkdir blog; cd blog

Step 2: Generate Code

Last time we had invoked a yeoman command. However, this time, we got a warning like follows:

(container)# yo jhipster

# output:
...
WARNING! Deprecated: JHipster seems to be invoked using Yeoman command. Please use the JHipster CLI. Run jhipster <command> instead of yo jhipster:<command>
...

So, I have switched to the new command:

(container)# jhipster

And I have chosen following options:

? May JHipster anonymously report usage statistics to improve the tool over time? 
Yes

? Which *type* of application would you like to create? 
Monolithic application (recommended for simple projects)

? What is the base name of your application? 
blog

? What is your default Java package name? 
com.mycompany.myapp

? Do you want to use the JHipster Registry to configure, monitor and scale your application? 
No

? Which *type* of authentication would you like to use? 
JWT authentication (stateless, with a token)

? Which *type* of database would you like to use? 
Cassandra

? Do you want to use the Spring cache abstraction? 
Yes, with the Ehcache implementation (local cache, for a single node)

? Would you like to use Maven or Gradle for building the backend? 
Maven

? Which other technologies would you like to use? (Press <space> to select, <a> to toggle all, <i> to invert selection)

? Which *Framework* would you like to use for the client? 
Angular

? Would you like to use a Bootswatch theme (https://bootswatch.com/)? 
Default JHipster

? Would you like to enable internationalization support? 
Yes

? Please choose the native language of the application 
English

? Please choose additional languages to install (Press <space> to select, <a> to toggle all, <i> to invert selection)
English, German

? Besides JUnit and Jest, which testing frameworks would you like to use? 
Cucumber, Protractor

? Would you like to install other generators from the JHipster Marketplace? 
No

In the end, we can see:

If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/

Server application generated successfully.

Run your Spring Boot application:
./mvnw

Client application generated successfully.

Start your Webpack development server with:
 npm start


> blog@0.0.1-SNAPSHOT cleanup /localdir/blog
> rimraf target/classes/static/ target/classes/aot

INFO! Congratulations, JHipster execution is complete!

Step 3: (Try to) Start the Application

Then we start the backend:

(container)# ./mvnw

After many downloads, we reach following error:

org.springframework.context.ApplicationContextException: Unable to start web server;
...
Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar'
...
nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /172.17.0.1:9042 (com.datastax.driver.core.exceptions.TransportException: [/172.17.0.1:9042] Cannot connect))
...

Step 4: Install docker-compose

After some research, I have found that the Cassandra DB should be started and initialized correctly by starting it from a docker-compose yaml. For that I had to install docker-compose following https://github.com/NaturalHistoryMuseum/scratchpads2/wiki/Install-Docker-and-Docker-Compose-(Centos-7):

# Run on docker host as a user that has sudo privileges:

(host)$ sudo yum install -y epel-release
(host)$ sudo yum install -y python-pip
(host)$ sudo pip install docker-compose

# ignoring following output:
...
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-aKnzpp/subprocess32/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-PuT18K-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-aKnzpp/subprocess32/
You are using pip version 8.1.2, however version 20.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

and

(host)$ sudo yum upgrade -y python*

Checking the version:

(host)$ docker-compose version

# output:
docker-compose version 1.22.0, build f46880fe
docker-py version: 3.4.1
CPython version: 3.6.6
OpenSSL version: OpenSSL 1.1.0f  25 May 2017

Step 5: Start the Cassandra Docker Container

Now, on the docker host, we start the cassandra.yaml composition jhipster had generated for us:

cat src/main/docker/cassandra.yml

# output:
version: '2'
services:
  blog-cassandra:
    image: cassandra:3.11.5
    # volumes:
    #     - ~/volumes/jhipster/blog/cassandra/:/var/lib/cassandra/data
    ports:
      - 7000:7000
      - 7001:7001
      - 7199:7199
      - 9042:9042
      - 9160:9160
  blog-cassandra-migration:
    extends:
      file: cassandra-migration.yml
      service: blog-cassandra-migration
    environment:
      - CREATE_KEYSPACE_SCRIPT=create-keyspace.cql

Try to start Cassandra:

(host)$ docker-compose -f src/main/docker/cassandra.yml up

# output:
Creating network "docker_default" with the default driver
Pulling blog-cassandra (cassandra:3.11.5)...
3.11.5: Pulling from library/cassandra
804555ee0376: Pull complete
f62a86f474e7: Pull complete
b08b2c5fa0f7: Pull complete
462a01774618: Pull complete
4a4246974523: Pull complete
bb514a91a0e3: Pull complete
f8a11c726003: Pull complete
98440d0d3ef0: Pull complete
7419891d3b45: Pull complete
c2bdf673f50c: Pull complete
Digest: sha256:0169fcc29fc49c0373bfb887d5e4c772ccf54da6ec36b1037b98ddd28b4cf6ce
Status: Downloaded newer image for cassandra:3.11.5
Building blog-cassandra-migration
Step 1/6 : FROM cassandra:3.11.5
 ---> 68144c842c79
Step 2/6 : ADD cassandra/scripts/autoMigrate.sh /usr/local/bin/autoMigrate
 ---> 5be8b2c197d9
Step 3/6 : RUN chmod 755 /usr/local/bin/autoMigrate
 ---> Running in 89d03b0be67c
Removing intermediate container 89d03b0be67c
 ---> 423fadc1e036
Step 4/6 : ADD cassandra/scripts/execute-cql.sh  /usr/local/bin/execute-cql
 ---> fee09aefd7a8
Step 5/6 : RUN chmod 755 /usr/local/bin/execute-cql
 ---> Running in f02777c3013b
Removing intermediate container f02777c3013b
 ---> f0abb590d910
Step 6/6 : ENTRYPOINT ["autoMigrate"]
 ---> Running in 4b3ba3906cb9
Removing intermediate container 4b3ba3906cb9
 ---> a5573b8b47c1
Successfully built a5573b8b47c1
Successfully tagged docker_blog-cassandra-migration:latest
WARNING: Image for service blog-cassandra-migration was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Creating docker_blog-cassandra_1           ... done
Creating docker_blog-cassandra-migration_1 ... done
Attaching to docker_blog-cassandra-migration_1, docker_blog-cassandra_1
blog-cassandra-migration_1  | [Tue Jan 21 22:02:29 UTC 2020]: Start Cassandra migration tool
blog-cassandra-migration_1  | [Tue Jan 21 22:02:29 UTC 2020]: Waiting for Cassandra connection...
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.deserializeLargeSubset (Lorg/apache/cassandra/io/util/DataInputPlus;Lorg/apache/cassandra/db/Columns;I)Lorg/apache/cassandra/db/Columns;
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom (Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents ()Z
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop ()V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stopInPartition ()V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.doFlush (I)V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeExcessSlow ()V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeSlow (JI)V
blog-cassandra_1            | CompilerOracle: dontinline org/apache/cassandra/io/util/RebufferingInputStream.readPrimitiveSlowly (I)J
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/db/rows/UnfilteredSerializer.serializeRowBody (Lorg/apache/cassandra/db/rows/Row;ILorg/apache/cassandra/db/SerializationHeader;Lorg/apache/cassandra/io/util/DataOutputPlus;)V
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/io/util/Memory.checkBounds (JJ)V
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/io/util/SafeMemory.checkBounds (JJ)V
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.selectBoundary (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;II)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.strictnessOfLessThan (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.indexes (Lorg/apache/cassandra/utils/IFilter/FilterKey;)[J
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.setIndexes (JJIJ[J)V
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare (Ljava/nio/ByteBuffer;[B)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare ([BLjava/nio/ByteBuffer;)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/lang/Object;JI)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
blog-cassandra_1            | CompilerOracle: inline org/apache/cassandra/utils/vint/VIntCoding.encodeVInt (JI)[B
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,153 YamlConfigurationLoader.java:89 - Configuration location: file:/etc/cassandra/cassandra.yaml
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,493 Config.java:516 - Node configuration:[allocate_tokens_for_keyspace=null; authenticator=AllowAllAuthenticator; authorizer=AllowAllAuthorizer; auto_bootstrap=true; auto_snapshot=true; back_pressure_enabled=false; back_pressure_strategy=org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9, factor=5, flow=FAST}; batch_size_fail_threshold_in_kb=50; batch_size_warn_threshold_in_kb=5; batchlog_replay_throttle_in_kb=1024; broadcast_address=172.19.0.3; broadcast_rpc_address=172.19.0.3; 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=0; client_encryption_options=<REDACTED>; 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=/var/lib/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=NaN; 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;@475e586c; 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_materialized_views=true; enable_sasi_indexes=true; 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_round_up=null; file_cache_size_in_mb=null; gc_log_threshold_in_ms=200; gc_warn_threshold_in_ms=1000; 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=dc; internode_recv_buff_size_in_bytes=0; internode_send_buff_size_in_bytes=0; key_cache_keys_to_save=2147483647; key_cache_save_period=14400; key_cache_size_in_mb=null; listen_address=172.19.0.3; 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=0; memtable_heap_space_in_mb=null; memtable_offheap_space_in_mb=null; min_free_space_per_drive_in_mb=50; native_transport_flush_in_batches_legacy=true; native_transport_max_concurrent_connections=-1; native_transport_max_concurrent_connections_per_ip=-1; native_transport_max_concurrent_requests_in_bytes=-1; native_transport_max_concurrent_requests_in_bytes_per_ip=-1; native_transport_max_frame_size_in_mb=256; native_transport_max_negotiable_protocol_version=-2147483648; native_transport_max_threads=128; native_transport_port=9042; native_transport_port_ssl=null; num_tokens=256; otc_backlog_expiration_interval_ms=200; otc_coalescing_enough_coalesced_messages=8; otc_coalescing_strategy=DISABLED; 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=5000; repair_session_max_tree_depth=18; request_scheduler=org.apache.cassandra.scheduler.NoScheduler; request_scheduler_id=null; request_scheduler_options=null; request_timeout_in_ms=10000; role_manager=CassandraRoleManager; 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=0.0.0.0; 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=9160; rpc_recv_buff_size_in_bytes=null; rpc_send_buff_size_in_bytes=null; rpc_server_type=sync; saved_caches_directory=/var/lib/cassandra/saved_caches; seed_provider=org.apache.cassandra.locator.SimpleSeedProvider{seeds=172.19.0.3}; server_encryption_options=<REDACTED>; slow_query_log_timeout_in_ms=500; snapshot_before_compaction=false; ssl_storage_port=7001; sstable_preemptive_open_interval_in_mb=50; start_native_transport=true; start_rpc=false; storage_port=7000; stream_throughput_outbound_megabits_per_sec=200; streaming_keep_alive_period_in_secs=300; 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@657c8ad9; 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=1; write_request_timeout_in_ms=2000]
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,494 DatabaseDescriptor.java:381 - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,495 DatabaseDescriptor.java:439 - Global memtable on-heap threshold is enabled at 251MB
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,495 DatabaseDescriptor.java:443 - Global memtable off-heap threshold is enabled at 251MB
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:32,628 DatabaseDescriptor.java:579 - Only 7.550GiB free across all data volumes. Consider adding more capacity to your cluster or removing obsolete snapshots
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,657 RateBasedBackPressure.java:123 - Initialized back-pressure with high ratio: 0.9, factor: 5, flow: FAST, window size: 2000.
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,657 DatabaseDescriptor.java:773 - Back-pressure is disabled with strategy org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9, factor=5, flow=FAST}.
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,934 JMXServerUtils.java:246 - Configured JMX server at: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:7199/jmxrmi
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,946 CassandraDaemon.java:476 - Hostname: d569a25ced73
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,946 CassandraDaemon.java:483 - JVM vendor/version: OpenJDK 64-Bit Server VM/1.8.0_232
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,947 CassandraDaemon.java:484 - Heap size: 1004.000MiB/1004.000MiB
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,947 CassandraDaemon.java:489 - Code Cache Non-heap memory: init = 2555904(2496K) used = 4200640(4102K) committed = 4259840(4160K) max = 251658240(245760K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,947 CassandraDaemon.java:489 - Metaspace Non-heap memory: init = 0(0K) used = 18003616(17581K) committed = 18612224(18176K) max = -1(-1K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,948 CassandraDaemon.java:489 - Compressed Class Space Non-heap memory: init = 0(0K) used = 2188800(2137K) committed = 2359296(2304K) max = 1073741824(1048576K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,948 CassandraDaemon.java:489 - Par Eden Space Heap memory: init = 167772160(163840K) used = 97402960(95120K) committed = 167772160(163840K) max = 167772160(163840K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,948 CassandraDaemon.java:489 - Par Survivor Space Heap memory: init = 20971520(20480K) used = 0(0K) committed = 20971520(20480K) max = 20971520(20480K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,948 CassandraDaemon.java:489 - CMS Old Gen Heap memory: init = 864026624(843776K) used = 0(0K) committed = 864026624(843776K) max = 864026624(843776K)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,948 CassandraDaemon.java:491 - Classpath: /etc/cassandra:/usr/share/cassandra/lib/HdrHistogram-2.1.9.jar:/usr/share/cassandra/lib/ST4-4.0.8.jar:/usr/share/cassandra/lib/airline-0.6.jar:/usr/share/cassandra/lib/antlr-runtime-3.5.2.jar:/usr/share/cassandra/lib/asm-5.0.4.jar:/usr/share/cassandra/lib/caffeine-2.2.6.jar:/usr/share/cassandra/lib/cassandra-driver-core-3.0.1-shaded.jar:/usr/share/cassandra/lib/commons-cli-1.1.jar:/usr/share/cassandra/lib/commons-codec-1.9.jar:/usr/share/cassandra/lib/commons-lang3-3.1.jar:/usr/share/cassandra/lib/commons-math3-3.2.jar:/usr/share/cassandra/lib/compress-lzf-0.8.4.jar:/usr/share/cassandra/lib/concurrent-trees-2.4.0.jar:/usr/share/cassandra/lib/concurrentlinkedhashmap-lru-1.4.jar:/usr/share/cassandra/lib/disruptor-3.0.1.jar:/usr/share/cassandra/lib/ecj-4.4.2.jar:/usr/share/cassandra/lib/guava-18.0.jar:/usr/share/cassandra/lib/high-scale-lib-1.0.6.jar:/usr/share/cassandra/lib/hppc-0.5.4.jar:/usr/share/cassandra/lib/jackson-core-asl-1.9.13.jar:/usr/share/cassandra/lib/jackson-mapper-asl-1.9.13.jar:/usr/share/cassandra/lib/jamm-0.3.0.jar:/usr/share/cassandra/lib/javax.inject.jar:/usr/share/cassandra/lib/jbcrypt-0.3m.jar:/usr/share/cassandra/lib/jcl-over-slf4j-1.7.7.jar:/usr/share/cassandra/lib/jctools-core-1.2.1.jar:/usr/share/cassandra/lib/jflex-1.6.0.jar:/usr/share/cassandra/lib/jna-4.2.2.jar:/usr/share/cassandra/lib/joda-time-2.4.jar:/usr/share/cassandra/lib/json-simple-1.1.jar:/usr/share/cassandra/lib/jstackjunit-0.0.1.jar:/usr/share/cassandra/lib/libthrift-0.9.2.jar:/usr/share/cassandra/lib/log4j-over-slf4j-1.7.7.jar:/usr/share/cassandra/lib/logback-classic-1.1.3.jar:/usr/share/cassandra/lib/logback-core-1.1.3.jar:/usr/share/cassandra/lib/lz4-1.3.0.jar:/usr/share/cassandra/lib/metrics-core-3.1.5.jar:/usr/share/cassandra/lib/metrics-jvm-3.1.5.jar:/usr/share/cassandra/lib/metrics-logback-3.1.5.jar:/usr/share/cassandra/lib/netty-all-4.0.44.Final.jar:/usr/share/cassandra/lib/ohc-core-0.4.4.jar:/usr/share/cassandra/lib/ohc-core-j8-0.4.4.jar:/usr/share/cassandra/lib/reporter-config-base-3.0.3.jar:/usr/share/cassandra/lib/reporter-config3-3.0.3.jar:/usr/share/cassandra/lib/sigar-1.6.4.jar:/usr/share/cassandra/lib/slf4j-api-1.7.7.jar:/usr/share/cassandra/lib/snakeyaml-1.11.jar:/usr/share/cassandra/lib/snappy-java-1.1.1.7.jar:/usr/share/cassandra/lib/snowball-stemmer-1.3.0.581.1.jar:/usr/share/cassandra/lib/stream-2.5.2.jar:/usr/share/cassandra/lib/thrift-server-0.3.7.jar:/usr/share/cassandra/apache-cassandra-3.11.5.jar:/usr/share/cassandra/apache-cassandra-thrift-3.11.5.jar:/usr/share/cassandra/apache-cassandra.jar:/usr/share/cassandra/stress.jar::/usr/share/cassandra/lib/jamm-0.3.0.jar
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:32,949 CassandraDaemon.java:493 - JVM Arguments: [-Xloggc:/var/log/cassandra/gc.log, -ea, -XX:+UseThreadPriorities, -XX:ThreadPriorityPolicy=42, -XX:+HeapDumpOnOutOfMemoryError, -Xss256k, -XX:StringTableSize=1000003, -XX:+AlwaysPreTouch, -XX:-UseBiasedLocking, -XX:+UseTLAB, -XX:+ResizeTLAB, -XX:+UseNUMA, -XX:+PerfDisableSharedMem, -Djava.net.preferIPv4Stack=true, -XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:+CMSParallelRemarkEnabled, -XX:SurvivorRatio=8, -XX:MaxTenuringThreshold=1, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:CMSWaitDuration=10000, -XX:+CMSParallelInitialMarkEnabled, -XX:+CMSEdenChunksRecordAlways, -XX:+CMSClassUnloadingEnabled, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintHeapAtGC, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -XX:+PrintPromotionFailure, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=10, -XX:GCLogFileSize=10M, -Xms1024M, -Xmx1024M, -Xmn200M, -XX:+UseCondCardMark, -XX:CompileCommandFile=/etc/cassandra/hotspot_compiler, -javaagent:/usr/share/cassandra/lib/jamm-0.3.0.jar, -Dcassandra.jmx.local.port=7199, -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management.jmxremote.password.file=/etc/cassandra/jmxremote.password, -Djava.library.path=/usr/share/cassandra/lib/sigar-bin, -Dcassandra.libjemalloc=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1, -XX:OnOutOfMemoryError=kill -9 %p, -Dlogback.configurationFile=logback.xml, -Dcassandra.logdir=/var/log/cassandra, -Dcassandra.storagedir=/var/lib/cassandra, -Dcassandra-foreground=yes]
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,029 NativeLibrary.java:189 - Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out, especially with mmapped I/O enabled. Increase RLIMIT_MEMLOCK or run Cassandra as root.
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:33,030 StartupChecks.java:140 - jemalloc seems to be preloaded from /usr/lib/x86_64-linux-gnu/libjemalloc.so.1
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,030 StartupChecks.java:169 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:33,043 SigarLibrary.java:44 - Initializing SIGAR library
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:33,108 SigarLibrary.java:180 - Checked OS settings and found them configured for optimal performance.
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,112 StartupChecks.java:311 - Maximum number of memory map areas per process (vm.max_map_count) 65530 is too low, recommended value: 1048575, you can change it with sysctl.
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,130 StartupChecks.java:332 - Directory /var/lib/cassandra/data doesn't exist
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,138 StartupChecks.java:332 - Directory /var/lib/cassandra/commitlog doesn't exist
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,145 StartupChecks.java:332 - Directory /var/lib/cassandra/saved_caches doesn't exist
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:33,147 StartupChecks.java:332 - Directory /var/lib/cassandra/hints doesn't exist
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:33,237 QueryProcessor.java:116 - Initialized prepared statement caches with 10 MB (native) and 10 MB (Thrift)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:33,892 ColumnFamilyStore.java:426 - Initializing system.IndexInfo
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,941 ColumnFamilyStore.java:426 - Initializing system.batches
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,948 ColumnFamilyStore.java:426 - Initializing system.paxos
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,960 ColumnFamilyStore.java:426 - Initializing system.local
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,967 ColumnFamilyStore.java:426 - Initializing system.peers
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,974 ColumnFamilyStore.java:426 - Initializing system.peer_events
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,981 ColumnFamilyStore.java:426 - Initializing system.range_xfers
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,987 ColumnFamilyStore.java:426 - Initializing system.compaction_history
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:35,994 ColumnFamilyStore.java:426 - Initializing system.sstable_activity
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,007 ColumnFamilyStore.java:426 - Initializing system.size_estimates
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,016 ColumnFamilyStore.java:426 - Initializing system.available_ranges
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,039 ColumnFamilyStore.java:426 - Initializing system.transferred_ranges
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,052 ColumnFamilyStore.java:426 - Initializing system.views_builds_in_progress
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,059 ColumnFamilyStore.java:426 - Initializing system.built_views
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,066 ColumnFamilyStore.java:426 - Initializing system.hints
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,082 ColumnFamilyStore.java:426 - Initializing system.batchlog
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,092 ColumnFamilyStore.java:426 - Initializing system.prepared_statements
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,102 ColumnFamilyStore.java:426 - Initializing system.schema_keyspaces
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,115 ColumnFamilyStore.java:426 - Initializing system.schema_columnfamilies
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,128 ColumnFamilyStore.java:426 - Initializing system.schema_columns
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,136 ColumnFamilyStore.java:426 - Initializing system.schema_triggers
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,144 ColumnFamilyStore.java:426 - Initializing system.schema_usertypes
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,151 ColumnFamilyStore.java:426 - Initializing system.schema_functions
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,163 ColumnFamilyStore.java:426 - Initializing system.schema_aggregates
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,167 ViewManager.java:137 - Not submitting build tasks for views in keyspace system as storage service is not initialized
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,281 ApproximateTime.java:44 - Scheduling approximate time-check task with a precision of 10 milliseconds
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,739 ColumnFamilyStore.java:426 - Initializing system_schema.keyspaces
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,747 ColumnFamilyStore.java:426 - Initializing system_schema.tables
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,756 ColumnFamilyStore.java:426 - Initializing system_schema.columns
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,769 ColumnFamilyStore.java:426 - Initializing system_schema.triggers
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,775 ColumnFamilyStore.java:426 - Initializing system_schema.dropped_columns
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,780 ColumnFamilyStore.java:426 - Initializing system_schema.views
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,786 ColumnFamilyStore.java:426 - Initializing system_schema.types
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,796 ColumnFamilyStore.java:426 - Initializing system_schema.functions
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,805 ColumnFamilyStore.java:426 - Initializing system_schema.aggregates
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,814 ColumnFamilyStore.java:426 - Initializing system_schema.indexes
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:36,817 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_schema as storage service is not initialized
blog-cassandra_1            | INFO  [MemtableFlushWriter:1] 2020-01-21 22:02:40,068 CacheService.java:100 - Initializing key cache with capacity of 50 MBs.
blog-cassandra_1            | INFO  [MemtableFlushWriter:1] 2020-01-21 22:02:40,082 CacheService.java:122 - Initializing row cache with capacity of 0 MBs
blog-cassandra_1            | INFO  [MemtableFlushWriter:1] 2020-01-21 22:02:40,085 CacheService.java:151 - Initializing counter cache with capacity of 25 MBs
blog-cassandra_1            | INFO  [MemtableFlushWriter:1] 2020-01-21 22:02:40,086 CacheService.java:162 - Scheduling counter cache save to every 7200 seconds (going to save all keys).
blog-cassandra_1            | INFO  [CompactionExecutor:2] 2020-01-21 22:02:42,095 BufferPool.java:234 - Global buffer pool is enabled, when pool is exhausted (max is 251.000MiB) it will allocate on heap
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:42,234 StorageService.java:638 - Populating token metadata from system tables
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,580 StorageService.java:645 - Token metadata:
blog-cassandra_1            | INFO  [pool-3-thread-1] 2020-01-21 22:02:43,614 AutoSavingCache.java:174 - Completed loading (2 ms; 7 keys) KeyCache cache
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,639 CommitLog.java:142 - No commitlog files found; skipping replay
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,640 StorageService.java:638 - Populating token metadata from system tables
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,684 StorageService.java:645 - Token metadata:
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,844 QueryProcessor.java:163 - Preloaded 0 prepared statements
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,844 StorageService.java:656 - Cassandra version: 3.11.5
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,845 StorageService.java:657 - Thrift API version: 20.1.0
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,845 StorageService.java:658 - CQL supported versions: 3.4.4 (default: 3.4.4)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,845 StorageService.java:660 - Native protocol supported versions: 3/v3, 4/v4, 5/v5-beta (default: 4/v4)
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,904 IndexSummaryManager.java:87 - Initializing index summary manager with a memory pool size of 50 MB and a resize interval of 60 minutes
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,917 MessagingService.java:750 - Starting Messaging Service on /172.19.0.3:7000 (eth0)
blog-cassandra_1            | WARN  [main] 2020-01-21 22:02:43,937 SystemKeyspace.java:1130 - No host ID found, created 3fff6900-6847-4944-94ae-3e45f892c8d4 (Note: This should happen exactly once per node).
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:43,981 StorageService.java:588 - Unable to gossip with any peers but continuing anyway since node is in its own seed list
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,004 StorageService.java:742 - Loading persisted ring state
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,005 StorageService.java:870 - Starting up server gossip
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,079 StorageService.java:932 - This node will not auto bootstrap because it is configured to be a seed node.
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,097 BootStrapper.java:228 - Generated random tokens. tokens are [-4740243148339904011, 762156953253688547, -2341635695493795966, -3724612998653529851, -8413062467833530135, -7640930127646454919, -1020621212923742525, -3164080836162686271, -877749648156840580, -3495548701279926606, -4437220718075769297, -3647128108939297425, -4072101894547972672, -7639240136494242769, 818674566539968529, -2523618942293473011, 5994523674053956912, -8234220775840050779, -5667739231469440769, -9126181264316327526, -7945280204685126429, 1954309508756817288, 1308772583548659085, 4865487118361257538, 8939794331670512119, -8548343925243297509, 1029038529853090172, 8861843523897655421, 7693465314986112129, -2868215163389556918, -6394350382395654491, 7039689338299976622, -2422656923656503639, -1414160519057238367, -3630325027478338371, -2931191301030679215, -8864976939435104216, -619695937251938376, -2567659615443598722, 5562265682334102934, -636269316720026500, -5455234520388209978, -3488499494473338571, 2885215036030500008, 4934527332554211595, 7350812973729097827, -8455459888491871442, -3366178470077007406, -7744957869087747691, -5777757718578937449, 8149848184627104974, 7255533430383604247, -1875021238797157724, -2133299101705691400, -3845270361473037023, 3523411171150785858, 8728424222359626855, -5688932452849946678, -7343342006255495208, 1023963176157183667, 8825986009963526640, -6878419063892467504, 4803123640290977403, 3860800528436211876, 5649347616884453441, -3807740125833406068, 5473539859254826544, 2603426212545120095, 7775031907919872971, -8116434429817001947, 8068065332649873146, -213058050230101956, -1590890631349135398, 2344999278205251516, 2185331445192551577, 8446721953003623430, -6174610216252123749, 7710249952904069261, -1625670335756009991, -6144303483714885534, 6295608317033126467, -3104299066210853439, -6681500117522381151, -6554119670828378240, -5802770262236902188, -3124433339640613344, -7275850021647564829, 4435060425590187127, -433047270611746639, -554285510662846855, -6788982067107683780, -6039899453997511545, 7039508723722914391, 5703248853852579571, 7837705740595501539, 3240433013187447273, -8656228016164095327, -1341353873521104696, -7649068635097993758, -7939458824294371761, 6544065941047703473, -6732160696124743840, 3806217515519661766, -7319827580455471375, 2947119946653975808, -4007279347335793057, -1128299861107089058, -6924901531842968972, 7672161618206133343, -5167294798295540300, 8343037425516589258, -4297008145024376900, -5624318518377219721, 5403985287453730294, -48706845367582876, -6218164668385282698, 8096782268817524911, 2640357618543790660, -7189872028075608645, 6052215077777042860, 7365599343200323614, 5694178459755846076, 2536376329491709204, -1443548535589131419, -651900279885941825, 6014234869249016215, -2934383678329980997, -3595902130660044290, -6730895598922906505, 2648526458355882374, -8947397951756188246, 4353511476917709755, 7032926229931116837, -8031994276809148777, -2041347053144978163, 2430064889084810399, 8761787875749996617, -903734283827234510, 6819525463665400181, -6590127891420067968, 2042538907855131015, -161551625894519077, -6202024120773319694, 6764044002150460332, 7127172695521627472, 722557783382772574, 738247197471154556, -1251698524717231307, 8210245363709097173, -7132869748804599873, 756285370453173373, -6605032398316312289, -4665093519124657446, 5917387975721828644, -4552345475937891890, -21052502066093837, 4518543000291291102, -6262578053078222773, -8513134775785765970, -4388679809244076081, 825197015524185631, 8422798081794035648, 6853651065430645771, -188302560547920457, -6896420136109610417, -3778649731944917400, -6024164870344145299, 4864573188617627718, 5757281050405291832, -8633079669990388697, -8004694659351631660, -8878090115104256297, -3145675080317433134, -7307985955003450155, -4483838783104452580, -3992540870668295566, 8848427524664475161, -5152628324644163821, -8241344642395526104, 5528654441403592123, -6642528697467780403, -2876219349470776244, 6570535816938031974, -2575015261658293822, -4232551086667810716, 3979529726303677460, 6931548134697325877, 7482046874628667478, 6468381484495317259, -1682662246018737828, -4851555891906368841, -8344388776398647077, -3365187733016151373, 8825268130630720073, -4535742094689615916, 837933749880280710, -2157338606011794413, -8351076991813455071, 8593254917228913879, -5213464905569373707, 4066183193712369424, -2301544263542169962, 879548378579124951, 9146893352734618197, 7791573990882080064, 5945816758120988826, -5021584453931803758, -504250784101888024, -7338255128135302611, 8433996209225346455, 1412182783532504731, -5471996653814463772, 1014796640440818980, -5156087265174751617, 2638919412602505990, -8265151978276876093, 5504567287241271619, 1105093888165663841, -1316636445160079924, -8366513171162783496, 6418064239856976799, 6507317310774302742, 2778522024416281561, -969113548601805826, -3633037901650061326, -6930202900514666957, 4086946539675156500, -3599749141054810084, -5272896787512569765, -6647740872590441221, -5213643533901019925, 2765300098824917421, -2888872713287009151, -3496332262930857032, -7880913278845478253, 6580642058300897943, -1170393418095347838, -6070016885986134534, 2641662570693214196, 4147484558505329739, 3305000100702767891, 529553295126639866, -9186709694896207290, -1880357402356972200, 3666119426302860740, -5436872611915066496, -9130760416864683268, -4207921492554610099, 8226903702051925172, 1051727038389699751, 456317610283939439, 4878884543523635005, 9173640931386481452, 7679687256214581622, -2409289212877406703, 4681775159361720497]
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,105 MigrationManager.java:337 - Create new Keyspace: KeyspaceMetadata{name=system_traces, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=2}}, tables=[org.apache.cassandra.config.CFMetaData@2d9f3ddb[cfId=c5e99f16-8677-3914-b17e-960613512345,ksName=system_traces,cfName=sessions,flags=[COMPOUND],params=TableParams{comment=tracing sessions, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=0, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [client command coordinator duration request started_at parameters]],partitionKeyColumns=[session_id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UUIDType,columnMetadata=[client, command, session_id, coordinator, request, started_at, duration, parameters],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@18f4759f[cfId=8826e8e9-e16a-3728-8753-3bc1fc713c25,ksName=system_traces,cfName=events,flags=[COMPOUND],params=TableParams{comment=tracing events, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=0, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.TimeUUIDType),partitionColumns=[[] | [activity source source_elapsed thread]],partitionKeyColumns=[session_id],clusteringColumns=[event_id],keyValidator=org.apache.cassandra.db.marshal.UUIDType,columnMetadata=[activity, event_id, session_id, source, thread, source_elapsed],droppedColumns={},triggers=[],indexes=[]]], views=[], functions=[], types=[]}
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,553 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_traces as storage service is not initialized
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,558 ColumnFamilyStore.java:426 - Initializing system_traces.events
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,565 ColumnFamilyStore.java:426 - Initializing system_traces.sessions
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,592 MigrationManager.java:337 - Create new Keyspace: KeyspaceMetadata{name=system_distributed, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=3}}, tables=[org.apache.cassandra.config.CFMetaData@7d9bda6[cfId=759fffad-624b-3181-80ee-fa9a52d1f627,ksName=system_distributed,cfName=repair_history,flags=[COMPOUND],params=TableParams{comment=Repair history, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.TimeUUIDType),partitionColumns=[[] | [coordinator exception_message exception_stacktrace finished_at parent_id range_begin range_end started_at status participants]],partitionKeyColumns=[keyspace_name, columnfamily_name],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type),columnMetadata=[status, id, coordinator, finished_at, participants, exception_stacktrace, parent_id, range_end, range_begin, exception_message, keyspace_name, started_at, columnfamily_name],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@489fcda[cfId=deabd734-b99d-3b9c-92e5-fd92eb5abf14,ksName=system_distributed,cfName=parent_repair_history,flags=[COMPOUND],params=TableParams{comment=Repair history, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [exception_message exception_stacktrace finished_at keyspace_name started_at columnfamily_names options requested_ranges successful_ranges]],partitionKeyColumns=[parent_id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.TimeUUIDType,columnMetadata=[requested_ranges, exception_message, keyspace_name, successful_ranges, started_at, finished_at, options, exception_stacktrace, parent_id, columnfamily_names],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@630925[cfId=5582b59f-8e4e-35e1-b913-3acada51eb04,ksName=system_distributed,cfName=view_build_status,flags=[COMPOUND],params=TableParams{comment=Materialized View build status, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UUIDType),partitionColumns=[[] | [status]],partitionKeyColumns=[keyspace_name, view_name],clusteringColumns=[host_id],keyValidator=org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.UTF8Type,org.apache.cassandra.db.marshal.UTF8Type),columnMetadata=[view_name, status, keyspace_name, host_id],droppedColumns={},triggers=[],indexes=[]]], views=[], functions=[], types=[]}
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,743 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_distributed as storage service is not initialized
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,754 ColumnFamilyStore.java:426 - Initializing system_distributed.parent_repair_history
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,766 ColumnFamilyStore.java:426 - Initializing system_distributed.repair_history
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:44,777 ColumnFamilyStore.java:426 - Initializing system_distributed.view_build_status
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:44,812 StorageService.java:1521 - JOINING: Finish joining ring
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:46,926 MigrationManager.java:337 - Create new Keyspace: KeyspaceMetadata{name=system_auth, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=1}}, tables=[org.apache.cassandra.config.CFMetaData@e6b9fd9[cfId=5bc52802-de25-35ed-aeab-188eecebb090,ksName=system_auth,cfName=roles,flags=[COMPOUND],params=TableParams{comment=role definitions, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [can_login is_superuser salted_hash member_of]],partitionKeyColumns=[role],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[salted_hash, member_of, role, can_login, is_superuser],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@1d4cb293[cfId=0ecdaa87-f8fb-3e60-88d1-74fb36fe5c0d,ksName=system_auth,cfName=role_members,flags=[COMPOUND],params=TableParams{comment=role memberships lookup table, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[role],clusteringColumns=[member],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[role, member],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@b62a3f5[cfId=3afbe79f-2194-31a7-add7-f5ab90d8ec9c,ksName=system_auth,cfName=role_permissions,flags=[COMPOUND],params=TableParams{comment=permissions granted to db roles, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | [permissions]],partitionKeyColumns=[role],clusteringColumns=[resource],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[role, resource, permissions],droppedColumns={},triggers=[],indexes=[]], org.apache.cassandra.config.CFMetaData@6d399c1a[cfId=5f2fbdad-91f1-3946-bd25-d5da3a5c35ec,ksName=system_auth,cfName=resource_role_permissons_index,flags=[COMPOUND],params=TableParams{comment=index of db roles with permissions granted on a resource, read_repair_chance=0.0, dclocal_read_repair_chance=0.0, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=7776000, default_time_to_live=0, memtable_flush_period_in_ms=3600000, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[resource],clusteringColumns=[role],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[resource, role],droppedColumns={},triggers=[],indexes=[]]], views=[], functions=[], types=[]}
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:47,088 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_auth as storage service is not initialized
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:47,092 ColumnFamilyStore.java:426 - Initializing system_auth.resource_role_permissons_index
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:47,103 ColumnFamilyStore.java:426 - Initializing system_auth.role_members
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:47,120 ColumnFamilyStore.java:426 - Initializing system_auth.role_permissions
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:02:47,179 ColumnFamilyStore.java:426 - Initializing system_auth.roles
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:47,207 Gossiper.java:1780 - Waiting for gossip to settle...
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:55,210 Gossiper.java:1811 - No gossip backlog; proceeding
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:55,516 NativeTransportService.java:68 - Netty using native Epoll event loop
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:55,600 Server.java:158 - Using Netty Version: [netty-buffer=netty-buffer-4.0.44.Final.452812a, netty-codec=netty-codec-4.0.44.Final.452812a, netty-codec-haproxy=netty-codec-haproxy-4.0.44.Final.452812a, netty-codec-http=netty-codec-http-4.0.44.Final.452812a, netty-codec-socks=netty-codec-socks-4.0.44.Final.452812a, netty-common=netty-common-4.0.44.Final.452812a, netty-handler=netty-handler-4.0.44.Final.452812a, netty-tcnative=netty-tcnative-1.1.33.Fork26.142ecbb, netty-transport=netty-transport-4.0.44.Final.452812a, netty-transport-native-epoll=netty-transport-native-epoll-4.0.44.Final.452812a, netty-transport-rxtx=netty-transport-rxtx-4.0.44.Final.452812a, netty-transport-sctp=netty-transport-sctp-4.0.44.Final.452812a, netty-transport-udt=netty-transport-udt-4.0.44.Final.452812a]
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:55,601 Server.java:159 - Starting listening for CQL clients on /0.0.0.0:9042 (unencrypted)...
blog-cassandra_1            | INFO  [ReadStage-1] 2020-01-21 22:02:59,889 MonitoringTask.java:93 - Scheduling monitoring task with report interval of 5000 ms, max operations 50
blog-cassandra_1            | INFO  [main] 2020-01-21 22:02:59,905 CassandraDaemon.java:556 - Not starting RPC server as requested. Use JMX (StorageService->startRPCServer()) or nodetool (enablethrift) to start it
blog-cassandra_1            | INFO  [OptionalTasks:1] 2020-01-21 22:03:00,092 CassandraRoleManager.java:372 - Created default superuser role 'cassandra'
blog-cassandra-migration_1  | [Tue Jan 21 22:03:00 UTC 2020]: Connected to Cassandra cluster
blog-cassandra-migration_1  | [Tue Jan 21 22:03:00 UTC 2020]: Use /cql/create-keyspace.cql script to create the keyspace if necessary
blog-cassandra_1            | INFO  [Native-Transport-Requests-1] 2020-01-21 22:03:01,246 MigrationManager.java:337 - Create new Keyspace: KeyspaceMetadata{name=blog, params=KeyspaceParams{durable_writes=true, replication=ReplicationParams{class=org.apache.cassandra.locator.SimpleStrategy, replication_factor=1}}, tables=[], views=[], functions=[], types=[]}
blog-cassandra_1            | INFO  [Native-Transport-Requests-1] 2020-01-21 22:03:01,463 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@26b4c679[cfId=ca94be70-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=schema_version,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [checksum executed_by executed_on execution_time status]],partitionKeyColumns=[script_name],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[script_name, checksum, execution_time, status, executed_by, executed_on],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:01,813 ColumnFamilyStore.java:426 - Initializing blog.schema_version
blog-cassandra-migration_1  | [Tue Jan 21 22:03:02 UTC 2020]: Execute all non already executed scripts from /cql/changelog/
blog-cassandra-migration_1  | [Tue Jan 21 22:03:02 UTC 2020]: execute: /cql/changelog/00000000000000_create-tables.cql
blog-cassandra_1            | INFO  [Native-Transport-Requests-1] 2020-01-21 22:03:03,244 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@a059d91[cfId=cba480c0-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=user,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [activated activation_key email firstname lang_key lastname login password reset_date reset_key authorities]],partitionKeyColumns=[id],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[reset_date, activated, activation_key, authorities, id, firstname, lang_key, password, email, login, reset_key, lastname],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:03,401 ColumnFamilyStore.java:426 - Initializing blog.user
blog-cassandra_1            | INFO  [Native-Transport-Requests-5] 2020-01-21 22:03:03,516 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@6ee2874b[cfId=cbce01c0-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=user_by_login,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[login],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[login, id],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:03,669 ColumnFamilyStore.java:426 - Initializing blog.user_by_login
blog-cassandra_1            | INFO  [Native-Transport-Requests-2] 2020-01-21 22:03:03,728 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@9371a88[cfId=cbee5b00-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=user_by_email,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[email],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[email, id],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:03,978 ColumnFamilyStore.java:426 - Initializing blog.user_by_email
blog-cassandra_1            | INFO  [Native-Transport-Requests-4] 2020-01-21 22:03:04,040 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@745dbbb3[cfId=cc1df680-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=user_by_activation_key,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[activation_key],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[activation_key, id],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:04,182 ColumnFamilyStore.java:426 - Initializing blog.user_by_activation_key
blog-cassandra_1            | INFO  [Native-Transport-Requests-4] 2020-01-21 22:03:04,255 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@7ea5d0c3[cfId=cc3ec4f0-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=user_by_reset_key,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[reset_key],clusteringColumns=[id],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[reset_key, id],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:04,396 ColumnFamilyStore.java:426 - Initializing blog.user_by_reset_key
blog-cassandra_1            | INFO  [Native-Transport-Requests-2] 2020-01-21 22:03:04,496 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@58eaff14[cfId=cc638b00-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=activation_key_by_creation_date,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[creation_date],clusteringColumns=[activation_key],keyValidator=org.apache.cassandra.db.marshal.TimeUUIDType,columnMetadata=[creation_date, activation_key],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:04,722 ColumnFamilyStore.java:426 - Initializing blog.activation_key_by_creation_date
blog-cassandra_1            | INFO  [Native-Transport-Requests-2] 2020-01-21 22:03:04,803 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@74ef0297[cfId=cc923c20-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=persistent_token,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(),partitionColumns=[[] | [ip_address login token_date token_value user_agent user_id]],partitionKeyColumns=[series],clusteringColumns=[],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[user_agent, user_id, ip_address, token_date, login, token_value, series],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [ScheduledTasks:1] 2020-01-21 22:03:04,896 NoSpamLogger.java:91 - Some operations were slow, details available at debug level (debug.log)
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:04,941 ColumnFamilyStore.java:426 - Initializing blog.persistent_token
blog-cassandra_1            | INFO  [Native-Transport-Requests-5] 2020-01-21 22:03:05,119 MigrationManager.java:382 - Create new table: org.apache.cassandra.config.CFMetaData@5bba6d6b[cfId=ccc29af0-3c99-11ea-8fb8-537733e6a124,ksName=blog,cfName=persistent_token_by_user,flags=[COMPOUND],params=TableParams{comment=, read_repair_chance=0.0, dclocal_read_repair_chance=0.1, bloom_filter_fp_chance=0.01, crc_check_chance=1.0, gc_grace_seconds=864000, default_time_to_live=0, memtable_flush_period_in_ms=0, min_index_interval=128, max_index_interval=2048, speculative_retry=99PERCENTILE, caching={'keys' : 'ALL', 'rows_per_partition' : 'NONE'}, compaction=CompactionParams{class=org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy, options={min_threshold=4, max_threshold=32}}, compression=org.apache.cassandra.schema.CompressionParams@88445053, extensions={}, cdc=false},comparator=comparator(org.apache.cassandra.db.marshal.UTF8Type),partitionColumns=[[] | []],partitionKeyColumns=[user_id],clusteringColumns=[persistent_token_series],keyValidator=org.apache.cassandra.db.marshal.UTF8Type,columnMetadata=[persistent_token_series, user_id],droppedColumns={},triggers=[],indexes=[]]
blog-cassandra_1            | INFO  [MigrationStage:1] 2020-01-21 22:03:05,277 ColumnFamilyStore.java:426 - Initializing blog.persistent_token_by_user
blog-cassandra-migration_1  | [Tue Jan 21 22:03:05 UTC 2020]: /cql/changelog/00000000000000_create-tables.cql executed with success in 3 seconds
blog-cassandra-migration_1  | [Tue Jan 21 22:03:06 UTC 2020]: execute: /cql/changelog/00000000000001_insert_default_users.cql
blog-cassandra-migration_1  | [Tue Jan 21 22:03:07 UTC 2020]: /cql/changelog/00000000000001_insert_default_users.cql executed with success in 1 seconds
blog-cassandra-migration_1  | [Tue Jan 21 22:03:07 UTC 2020]: Migration done
docker_blog-cassandra-migration_1 exited with code 0

Then we need to specify the correct IP Address of the Cassandra node in the docker container:

(container)# vi src/main/resources/config/application-dev.yml
...
  data:
    cassandra:
      contactPoints: localhost    #<------------ replace this by the IP address, where the Cassandra node is running (i.e. the docker host 172.17.0.1 in our case)
      protocolVersion: V4
      compression: LZ4
      keyspaceName: blog
...

Step 6: Start the Application

Now can start the application successfully:

(container)$ ./mvnw
...
----------------------------------------------------------
        Application 'blog' is running! Access URLs:
        Local:          http://localhost:8080/
        External:       http://172.17.0.12:8080/
        Profile(s):     [dev, swagger]
----------------------------------------------------------

Step 7: Access the Application

Since we had mapped the port 8080 to the host port 18080, we need to access the latter port on the host:

Java Hipster Welcome Page

We now can log in as admin as instructed in the welcome page above:

jhipster login page

From there, we have access to the User Management Page:

User Management Page

Before starting to manipulate the code, I have created a public GitHub Repo from it; see https://github.com/oveits/jhipster-with-cassandra.

 

Comments

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.