docker-library/cassandra

Give executable permissions to `docker-entrypoint.sh`

fincardona opened this issue · 2 comments

Hello!

I tried to spin up the Cassandra container within a docker network, but I got the following error

"docker-entrypoint.sh": executable file not found in $PATH: unknown

that I solved by adding:

RUN chmod +x /usr/local/bin/docker-entrypoint.sh

at line 155 of Dockerfile.

I think it could be useful to add this command to the code.

Thanks.

Did you build your own image?
I can't reproduce

$ docker run -d --rm --name cassandra cassandra
d001e41d53a692a80099e7a27b98111325212e97cf6ae316af56e23d9875c790

$ docker exec -it cassandra bash
root@d001e41d53a6:/# ls -l /usr/local/bin
total 2352
-rwxrwxr-x 1 root root    2241 Nov 26 03:12 docker-entrypoint.sh
-rwxr-xr-x 1 root root 2404352 Apr 16  2020 gosu
docker logs
$ docker logs cassandra
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;
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
CompilerOracle: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom (Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
CompilerOracle: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents ()Z
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop ()V
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stopInPartition ()V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.doFlush (I)V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeExcessSlow ()V
CompilerOracle: dontinline org/apache/cassandra/io/util/BufferedDataOutputStreamPlus.writeSlow (JI)V
CompilerOracle: dontinline org/apache/cassandra/io/util/RebufferingInputStream.readPrimitiveSlowly (I)J
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
CompilerOracle: inline org/apache/cassandra/io/util/Memory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/io/util/SafeMemory.checkBounds (JJ)V
CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.selectBoundary (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;II)I
CompilerOracle: inline org/apache/cassandra/utils/AsymmetricOrdering.strictnessOfLessThan (Lorg/apache/cassandra/utils/AsymmetricOrdering/Op;)I
CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.indexes (Lorg/apache/cassandra/utils/IFilter/FilterKey;)[J
CompilerOracle: inline org/apache/cassandra/utils/BloomFilter.setIndexes (JJIJ[J)V
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare (Ljava/nio/ByteBuffer;[B)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compare ([BLjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/ByteBufferUtil.compareUnsigned (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/lang/Object;JI)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/lang/Object;JILjava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/FastByteOperations$UnsafeOperations.compareTo (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)I
CompilerOracle: inline org/apache/cassandra/utils/vint/VIntCoding.encodeVInt (JI)[B
INFO  [main] 2021-01-13 16:54:32,443 YamlConfigurationLoader.java:92 - Configuration location: file:/etc/cassandra/cassandra.yaml
INFO  [main] 2021-01-13 16:54:32,581 Config.java:536 - 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.17.0.2; broadcast_rpc_address=172.17.0.2; 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; check_for_duplicate_rows_during_compaction=true; check_for_duplicate_rows_during_reads=true; 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=null; 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;@a4102b8; 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.17.0.2; 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=null; seed_provider=org.apache.cassandra.locator.SimpleSeedProvider{seeds=172.17.0.2}; server_encryption_options=<REDACTED>; slow_query_log_timeout_in_ms=500; snapshot_before_compaction=false; snapshot_on_duplicate_row_detection=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@11dc3715; 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]
INFO  [main] 2021-01-13 16:54:32,582 DatabaseDescriptor.java:381 - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO  [main] 2021-01-13 16:54:32,582 DatabaseDescriptor.java:439 - Global memtable on-heap threshold is enabled at 492MB
INFO  [main] 2021-01-13 16:54:32,582 DatabaseDescriptor.java:443 - Global memtable off-heap threshold is enabled at 492MB
INFO  [main] 2021-01-13 16:54:32,664 RateBasedBackPressure.java:123 - Initialized back-pressure with high ratio: 0.9, factor: 5, flow: FAST, window size: 2000.
INFO  [main] 2021-01-13 16:54:32,665 DatabaseDescriptor.java:773 - Back-pressure is disabled with strategy org.apache.cassandra.net.RateBasedBackPressure{high_ratio=0.9, factor=5, flow=FAST}.
INFO  [main] 2021-01-13 16:54:32,712 JMXServerUtils.java:253 - Configured JMX server at: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:7199/jmxrmi
INFO  [main] 2021-01-13 16:54:32,715 CassandraDaemon.java:490 - Hostname: d001e41d53a6
INFO  [main] 2021-01-13 16:54:32,715 CassandraDaemon.java:497 - JVM vendor/version: OpenJDK 64-Bit Server VM/1.8.0_275
INFO  [main] 2021-01-13 16:54:32,715 CassandraDaemon.java:498 - Heap size: 1.922GiB/1.922GiB
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - Code Cache Non-heap memory: init = 2555904(2496K) used = 4518976(4413K) committed = 4587520(4480K) max = 251658240(245760K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - Metaspace Non-heap memory: init = 0(0K) used = 18637416(18200K) committed = 19267584(18816K) max = -1(-1K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - Compressed Class Space Non-heap memory: init = 0(0K) used = 2250176(2197K) committed = 2490368(2432K) max = 1073741824(1048576K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - Par Eden Space Heap memory: init = 335544320(327680K) used = 107394640(104877K) committed = 335544320(327680K) max = 335544320(327680K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - Par Survivor Space Heap memory: init = 41943040(40960K) used = 0(0K) committed = 41943040(40960K) max = 41943040(40960K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:503 - CMS Old Gen Heap memory: init = 1686110208(1646592K) used = 0(0K) committed = 1686110208(1646592K) max = 1686110208(1646592K)
INFO  [main] 2021-01-13 16:54:32,716 CassandraDaemon.java:505 - Classpath: /etc/cassandra:/opt/cassandra/build/classes/main:/opt/cassandra/build/classes/thrift:/opt/cassandra/lib/HdrHistogram-2.1.9.jar:/opt/cassandra/lib/ST4-4.0.8.jar:/opt/cassandra/lib/airline-0.6.jar:/opt/cassandra/lib/antlr-runtime-3.5.2.jar:/opt/cassandra/lib/apache-cassandra-3.11.9.jar:/opt/cassandra/lib/apache-cassandra-thrift-3.11.9.jar:/opt/cassandra/lib/asm-5.0.4.jar:/opt/cassandra/lib/caffeine-2.2.6.jar:/opt/cassandra/lib/cassandra-driver-core-3.0.1-shaded.jar:/opt/cassandra/lib/commons-cli-1.1.jar:/opt/cassandra/lib/commons-codec-1.9.jar:/opt/cassandra/lib/commons-lang3-3.1.jar:/opt/cassandra/lib/commons-math3-3.2.jar:/opt/cassandra/lib/compress-lzf-0.8.4.jar:/opt/cassandra/lib/concurrent-trees-2.4.0.jar:/opt/cassandra/lib/concurrentlinkedhashmap-lru-1.4.jar:/opt/cassandra/lib/disruptor-3.0.1.jar:/opt/cassandra/lib/ecj-4.4.2.jar:/opt/cassandra/lib/guava-18.0.jar:/opt/cassandra/lib/high-scale-lib-1.0.6.jar:/opt/cassandra/lib/hppc-0.5.4.jar:/opt/cassandra/lib/jackson-annotations-2.9.10.jar:/opt/cassandra/lib/jackson-core-2.9.10.jar:/opt/cassandra/lib/jackson-databind-2.9.10.4.jar:/opt/cassandra/lib/jamm-0.3.0.jar:/opt/cassandra/lib/javax.inject.jar:/opt/cassandra/lib/jbcrypt-0.3m.jar:/opt/cassandra/lib/jcl-over-slf4j-1.7.7.jar:/opt/cassandra/lib/jctools-core-1.2.1.jar:/opt/cassandra/lib/jflex-1.6.0.jar:/opt/cassandra/lib/jna-4.2.2.jar:/opt/cassandra/lib/joda-time-2.4.jar:/opt/cassandra/lib/json-simple-1.1.jar:/opt/cassandra/lib/jstackjunit-0.0.1.jar:/opt/cassandra/lib/libthrift-0.9.2.jar:/opt/cassandra/lib/log4j-over-slf4j-1.7.7.jar:/opt/cassandra/lib/logback-classic-1.1.3.jar:/opt/cassandra/lib/logback-core-1.1.3.jar:/opt/cassandra/lib/lz4-1.3.0.jar:/opt/cassandra/lib/metrics-core-3.1.5.jar:/opt/cassandra/lib/metrics-jvm-3.1.5.jar:/opt/cassandra/lib/metrics-logback-3.1.5.jar:/opt/cassandra/lib/netty-all-4.0.44.Final.jar:/opt/cassandra/lib/ohc-core-0.4.4.jar:/opt/cassandra/lib/ohc-core-j8-0.4.4.jar:/opt/cassandra/lib/reporter-config-base-3.0.3.jar:/opt/cassandra/lib/reporter-config3-3.0.3.jar:/opt/cassandra/lib/sigar-1.6.4.jar:/opt/cassandra/lib/slf4j-api-1.7.7.jar:/opt/cassandra/lib/snakeyaml-1.11.jar:/opt/cassandra/lib/snappy-java-1.1.1.7.jar:/opt/cassandra/lib/snowball-stemmer-1.3.0.581.1.jar:/opt/cassandra/lib/stream-2.5.2.jar:/opt/cassandra/lib/thrift-server-0.3.7.jar:/opt/cassandra/lib/jsr223/*/*.jar::/opt/cassandra/lib/jamm-0.3.0.jar
INFO  [main] 2021-01-13 16:54:32,717 CassandraDaemon.java:507 - JVM Arguments: [-Xloggc:/opt/cassandra/logs/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, -Xms2007M, -Xmx2007M, -Xmn400M, -XX:+UseCondCardMark, -XX:CompileCommandFile=/etc/cassandra/hotspot_compiler, -javaagent:/opt/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=/opt/cassandra/lib/sigar-bin, -Dcassandra.libjemalloc=/usr/local/lib/libjemalloc.so, -XX:OnOutOfMemoryError=kill -9 %p, -Dlogback.configurationFile=logback.xml, -Dcassandra.logdir=/opt/cassandra/logs, -Dcassandra.storagedir=/opt/cassandra/data, -Dcassandra-foreground=yes]
WARN  [main] 2021-01-13 16:54:32,748 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.
INFO  [main] 2021-01-13 16:54:32,748 StartupChecks.java:140 - jemalloc seems to be preloaded from /usr/local/lib/libjemalloc.so
WARN  [main] 2021-01-13 16:54:32,748 StartupChecks.java:169 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
INFO  [main] 2021-01-13 16:54:32,749 SigarLibrary.java:44 - Initializing SIGAR library
WARN  [main] 2021-01-13 16:54:32,755 SigarLibrary.java:174 - Cassandra server running in degraded mode. Is swap disabled? : false,  Address space adequate? : true,  nofile limit adequate? : true, nproc limit adequate? : true
WARN  [main] 2021-01-13 16:54:32,756 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.
WARN  [main] 2021-01-13 16:54:32,761 StartupChecks.java:332 - Directory /opt/cassandra/data/data doesn't exist
WARN  [main] 2021-01-13 16:54:32,766 StartupChecks.java:332 - Directory /opt/cassandra/data/commitlog doesn't exist
WARN  [main] 2021-01-13 16:54:32,766 StartupChecks.java:332 - Directory /opt/cassandra/data/saved_caches doesn't exist
WARN  [main] 2021-01-13 16:54:32,766 StartupChecks.java:332 - Directory /opt/cassandra/data/hints doesn't exist
INFO  [main] 2021-01-13 16:54:32,800 QueryProcessor.java:116 - Initialized prepared statement caches with 10 MB (native) and 10 MB (Thrift)
INFO  [main] 2021-01-13 16:54:33,094 ColumnFamilyStore.java:427 - Initializing system.IndexInfo
INFO  [main] 2021-01-13 16:54:33,560 ColumnFamilyStore.java:427 - Initializing system.batches
INFO  [main] 2021-01-13 16:54:33,564 ColumnFamilyStore.java:427 - Initializing system.paxos
INFO  [main] 2021-01-13 16:54:33,570 ColumnFamilyStore.java:427 - Initializing system.local
INFO  [main] 2021-01-13 16:54:33,574 ColumnFamilyStore.java:427 - Initializing system.peers
INFO  [main] 2021-01-13 16:54:33,577 ColumnFamilyStore.java:427 - Initializing system.peer_events
INFO  [main] 2021-01-13 16:54:33,580 ColumnFamilyStore.java:427 - Initializing system.range_xfers
INFO  [main] 2021-01-13 16:54:33,583 ColumnFamilyStore.java:427 - Initializing system.compaction_history
INFO  [main] 2021-01-13 16:54:33,586 ColumnFamilyStore.java:427 - Initializing system.sstable_activity
INFO  [main] 2021-01-13 16:54:33,591 ColumnFamilyStore.java:427 - Initializing system.size_estimates
INFO  [main] 2021-01-13 16:54:33,595 ColumnFamilyStore.java:427 - Initializing system.available_ranges
INFO  [main] 2021-01-13 16:54:33,600 ColumnFamilyStore.java:427 - Initializing system.transferred_ranges
INFO  [main] 2021-01-13 16:54:33,605 ColumnFamilyStore.java:427 - Initializing system.views_builds_in_progress
INFO  [main] 2021-01-13 16:54:33,610 ColumnFamilyStore.java:427 - Initializing system.built_views
INFO  [main] 2021-01-13 16:54:33,613 ColumnFamilyStore.java:427 - Initializing system.hints
INFO  [main] 2021-01-13 16:54:33,617 ColumnFamilyStore.java:427 - Initializing system.batchlog
INFO  [main] 2021-01-13 16:54:33,619 ColumnFamilyStore.java:427 - Initializing system.prepared_statements
INFO  [main] 2021-01-13 16:54:33,622 ColumnFamilyStore.java:427 - Initializing system.schema_keyspaces
INFO  [main] 2021-01-13 16:54:33,625 ColumnFamilyStore.java:427 - Initializing system.schema_columnfamilies
INFO  [main] 2021-01-13 16:54:33,628 ColumnFamilyStore.java:427 - Initializing system.schema_columns
INFO  [main] 2021-01-13 16:54:33,630 ColumnFamilyStore.java:427 - Initializing system.schema_triggers
INFO  [main] 2021-01-13 16:54:33,633 ColumnFamilyStore.java:427 - Initializing system.schema_usertypes
INFO  [main] 2021-01-13 16:54:33,636 ColumnFamilyStore.java:427 - Initializing system.schema_functions
INFO  [main] 2021-01-13 16:54:33,640 ColumnFamilyStore.java:427 - Initializing system.schema_aggregates
INFO  [main] 2021-01-13 16:54:33,641 ViewManager.java:137 - Not submitting build tasks for views in keyspace system as storage service is not initialized
INFO  [main] 2021-01-13 16:54:33,685 ApproximateTime.java:44 - Scheduling approximate time-check task with a precision of 10 milliseconds
INFO  [main] 2021-01-13 16:54:33,700 ColumnFamilyStore.java:427 - Initializing system_schema.keyspaces
INFO  [main] 2021-01-13 16:54:33,703 ColumnFamilyStore.java:427 - Initializing system_schema.tables
INFO  [main] 2021-01-13 16:54:33,705 ColumnFamilyStore.java:427 - Initializing system_schema.columns
INFO  [main] 2021-01-13 16:54:33,708 ColumnFamilyStore.java:427 - Initializing system_schema.triggers
INFO  [main] 2021-01-13 16:54:33,711 ColumnFamilyStore.java:427 - Initializing system_schema.dropped_columns
INFO  [main] 2021-01-13 16:54:33,713 ColumnFamilyStore.java:427 - Initializing system_schema.views
INFO  [main] 2021-01-13 16:54:33,716 ColumnFamilyStore.java:427 - Initializing system_schema.types
INFO  [main] 2021-01-13 16:54:33,719 ColumnFamilyStore.java:427 - Initializing system_schema.functions
INFO  [main] 2021-01-13 16:54:33,721 ColumnFamilyStore.java:427 - Initializing system_schema.aggregates
INFO  [main] 2021-01-13 16:54:33,724 ColumnFamilyStore.java:427 - Initializing system_schema.indexes
INFO  [main] 2021-01-13 16:54:33,725 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_schema as storage service is not initialized
INFO  [MemtableFlushWriter:1] 2021-01-13 16:54:34,005 CacheService.java:100 - Initializing key cache with capacity of 98 MBs.
INFO  [MemtableFlushWriter:1] 2021-01-13 16:54:34,009 CacheService.java:122 - Initializing row cache with capacity of 0 MBs
INFO  [MemtableFlushWriter:1] 2021-01-13 16:54:34,010 CacheService.java:151 - Initializing counter cache with capacity of 49 MBs
INFO  [MemtableFlushWriter:1] 2021-01-13 16:54:34,011 CacheService.java:162 - Scheduling counter cache save to every 7200 seconds (going to save all keys).
INFO  [CompactionExecutor:2] 2021-01-13 16:54:34,166 BufferPool.java:234 - Global buffer pool is enabled, when pool is exhausted (max is 492.000MiB) it will allocate on heap
INFO  [main] 2021-01-13 16:54:34,330 StorageService.java:653 - Populating token metadata from system tables
INFO  [main] 2021-01-13 16:54:34,348 StorageService.java:660 - Token metadata:
INFO  [pool-3-thread-1] 2021-01-13 16:54:34,360 AutoSavingCache.java:174 - Completed loading (0 ms; 5 keys) KeyCache cache
INFO  [main] 2021-01-13 16:54:34,370 CommitLog.java:142 - No commitlog files found; skipping replay
INFO  [main] 2021-01-13 16:54:34,371 StorageService.java:653 - Populating token metadata from system tables
INFO  [main] 2021-01-13 16:54:34,378 StorageService.java:660 - Token metadata:
INFO  [main] 2021-01-13 16:54:34,430 QueryProcessor.java:163 - Preloaded 0 prepared statements
INFO  [main] 2021-01-13 16:54:34,430 StorageService.java:671 - Cassandra version: 3.11.9
INFO  [main] 2021-01-13 16:54:34,431 StorageService.java:672 - Thrift API version: 20.1.0
INFO  [main] 2021-01-13 16:54:34,431 StorageService.java:673 - CQL supported versions: 3.4.4 (default: 3.4.4)
INFO  [main] 2021-01-13 16:54:34,431 StorageService.java:675 - Native protocol supported versions: 3/v3, 4/v4, 5/v5-beta (default: 4/v4)
INFO  [main] 2021-01-13 16:54:34,450 IndexSummaryManager.java:87 - Initializing index summary manager with a memory pool size of 98 MB and a resize interval of 60 minutes
INFO  [main] 2021-01-13 16:54:34,457 MessagingService.java:750 - Starting Messaging Service on /172.17.0.2:7000 (eth0)
WARN  [main] 2021-01-13 16:54:34,461 SystemKeyspace.java:1130 - No host ID found, created b4c81550-3785-48db-9c71-26122a014f33 (Note: This should happen exactly once per node).
INFO  [main] 2021-01-13 16:54:34,469 StorageService.java:603 - Unable to gossip with any peers but continuing anyway since node is in its own seed list
INFO  [main] 2021-01-13 16:54:34,477 StorageService.java:757 - Loading persisted ring state
INFO  [main] 2021-01-13 16:54:34,478 StorageService.java:885 - Starting up server gossip
INFO  [main] 2021-01-13 16:54:34,540 StorageService.java:947 - This node will not auto bootstrap because it is configured to be a seed node.
INFO  [main] 2021-01-13 16:54:34,546 BootStrapper.java:228 - Generated random tokens. tokens are [-919612569965940686, -3445641722236780548, 7266811864909947828, 6637282587342813492, -8166744758821581460, -969982447660434365, -310697915229661164, -4051790517832934283, -1970229632725609151, -5254097420302704973, -3520202071003493923, 6108273857881174950, -5444888712729626415, -7356127653794646520, 505540475539161444, -1046366752847331238, 1306123118063477548, 5955605665390864027, 8064797982722384266, 1598988130773592571, -115231595239001124, -6925634752203464984, 6050700888433331341, 3250893426970714705, 8636196807892342279, 5459907621680449107, 7485116300951284988, -2502189438942579821, -5928174075172270536, -46053674085412734, -6147673072067987621, -6386881856069407439, 5326080924890676446, -1045679992406368957, 3900292684673585663, -165447037436545703, -1207204509422024663, 5191798659015855865, -5148593955848271563, 8968997508282318634, -4135358493094204527, 8995291066732654836, 9075657976023219340, -1028591451095358428, -6123376501066231026, 3021572445238126139, -2636403277089500083, 6286560489807987261, -3706214921722705735, -1014770226866443585, 6504276387341864615, -5486280835823714881, 516623058043325388, -5046011186161523139, 3216036255444876194, -2799706310071897067, -2679436680684641928, -8098590460598422188, 7664187197244429479, -6637883262663353535, 7798523525654449231, -3002957615006141654, -5214439467107674746, -3603027789016640526, 6450396521953187593, -8448039825805865312, 3976341521175190390, -4027500589521888299, 1124689502408964498, 1951220070207258805, -5423926079074576093, -1122470357999217817, -1114911197127858932, -6464779493079383438, -6210362772659562555, -6375197925823610869, -2707370791941424815, -8681897677206663942, 6656304086686788184, -4868930509297158424, -7173678443898977474, 4925324693786922124, -1632575968700963866, -6572200869489023553, -8923951362299932065, -3394280811162930431, 6282500146035062448, -3225223664444118450, -2357078148116566581, 7344052294595186873, 5952640659261347234, -5717388484743018265, 2326928590395167624, 193288739783785105, 8442841344805677725, -594972688802216720, 2788087697943455254, 5628945382134840051, -3346118099005976537, 1421532452656041498, 4585703568154985337, -1086384579104114240, 1385967504538364865, 5964333000267088982, -7546238998562871729, -6126869172749916136, 8328351901852129472, -4213258628402304569, 5044340964058479915, 7267139168529183534, 3009099724863614302, 5066295279114931966, 7797443255744598889, -716487086466509009, 4554272874482918673, -7864290335210590583, -1514547733670820871, -5871501929082960233, 8163173474783431404, 2882519589739846719, 420091729895276898, 4033558876522653359, -1025352675223606305, 3293074266231121274, 8575434027530887189, 1825172055029010430, 6583162636657449798, -7507895344420253384, -3454282741159940024, 2968916903291886677, -2641477204124340282, 2479951190968265953, 8973223983306095323, -358702150929291279, 476341797591660740, 869986430449764177, -7097778856107274080, -8713523551822223907, -1409313357952560746, -2580201631813810252, -4393512446406971340, -1113294471897919197, -4262035984883477964, -4381901735721649119, -5910467565275844983, 4872649190147133429, -9195574100743220176, -5377129000370872685, -8244268390302287835, -8413515359797187402, 1445049845691988773, -6384364179665782656, 6108412656514278920, 674183437814653515, 5728561976529641050, -1940389045623697966, -3242655843882144517, 5961596152821089446, 789700768210981747, -1181147139461966676, -6950802534216606459, 3028162984600629864, 7155894066283386515, -5868304769117732573, -80120778529300065, 4208333688799085876, 7816917372153074181, -3696087649512305114, -8331382075978444241, 3780776951759707433, 4294425451235096764, -5946212793620435580, 4042647633626635707, 7205288140983584365, 2752730785450560108, 9181825138056712898, -7717925781013850315, 313645006416522312, -7211114266017085951, -5398612729351518919, 156089998945016912, 2962750536775440130, 2749526192759376587, -461999173147574062, -117064831164733055, 8679918412885209001, 4971361053924466799, -3040552100385680839, 3594965277889382196, -5022510343824679464, 4823064781933805969, 7148443617601624352, -762273633128713871, -8526615256616933793, 2386329466455237510, 371839015442905639, 5807748985437616218, 5318849536342123084, -886161813416543884, 5091745218265636848, -6598757323999244073, 8989231737382264225, -2907444537623177096, -1822462475722931930, -8050344774002916889, 6104165921271780547, 4280339703303772126, -3153149078649869051, -6906022347012644434, -3663970771240126033, 6678055922757613910, -1060362169963619114, -7931038247320657264, -2645934470905706300, -2463576785519693401, -2710452329087035386, 3988023629827464972, 607708551690442772, 7713071131254272093, -8983947405894913710, 6860006939112595962, -8797257440158809842, -5017918129569149212, 3579615546680500073, 2810524103484307666, -872887508920258397, -3141486888009173924, -6544920769536330395, 8386653750630765577, -5272204395323881376, -2215463870512109382, -7475626971953127923, -6407376931106774211, 4530913462212776896, -2918618312070072149, 905495704293692632, 5556981433579181068, 1907723401097652191, 6563916524422433288, -4821028804821213807, -2632722365492988165, 1213610795196035732, 5444926132046207447, -7091854881105357585, 3453658992231671746, -9183416981094655975, -5727277911571428185, -5800240239074579390, -295623304955665161, 4248416392560688567, 139243153080179779, 5706406307973614672, -1960661546924456628, -1421428194345938076, 6792744587796460316, 1446674078692739515]
INFO  [MigrationStage:1] 2021-01-13 16:54:34,954 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_traces as storage service is not initialized
INFO  [MigrationStage:1] 2021-01-13 16:54:34,956 ColumnFamilyStore.java:427 - Initializing system_traces.events
INFO  [MigrationStage:1] 2021-01-13 16:54:34,961 ColumnFamilyStore.java:427 - Initializing system_traces.sessions
INFO  [MigrationStage:1] 2021-01-13 16:54:34,963 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_distributed as storage service is not initialized
INFO  [MigrationStage:1] 2021-01-13 16:54:34,965 ColumnFamilyStore.java:427 - Initializing system_distributed.parent_repair_history
INFO  [MigrationStage:1] 2021-01-13 16:54:34,968 ColumnFamilyStore.java:427 - Initializing system_distributed.repair_history
INFO  [MigrationStage:1] 2021-01-13 16:54:34,971 ColumnFamilyStore.java:427 - Initializing system_distributed.view_build_status
INFO  [MigrationStage:1] 2021-01-13 16:54:34,973 ViewManager.java:137 - Not submitting build tasks for views in keyspace system_auth as storage service is not initialized
INFO  [MigrationStage:1] 2021-01-13 16:54:34,975 ColumnFamilyStore.java:427 - Initializing system_auth.resource_role_permissons_index
INFO  [MigrationStage:1] 2021-01-13 16:54:34,978 ColumnFamilyStore.java:427 - Initializing system_auth.role_members
INFO  [MigrationStage:1] 2021-01-13 16:54:34,981 ColumnFamilyStore.java:427 - Initializing system_auth.role_permissions
INFO  [MigrationStage:1] 2021-01-13 16:54:34,984 ColumnFamilyStore.java:427 - Initializing system_auth.roles
INFO  [main] 2021-01-13 16:54:34,996 StorageService.java:1492 - JOINING: Finish joining ring
INFO  [main] 2021-01-13 16:54:35,102 Gossiper.java:1796 - Waiting for gossip to settle...
INFO  [main] 2021-01-13 16:54:43,105 Gossiper.java:1827 - No gossip backlog; proceeding
INFO  [main] 2021-01-13 16:54:43,217 NativeTransportService.java:68 - Netty using native Epoll event loop
INFO  [main] 2021-01-13 16:54:43,246 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]
INFO  [main] 2021-01-13 16:54:43,246 Server.java:159 - Starting listening for CQL clients on /0.0.0.0:9042 (unencrypted)...
INFO  [main] 2021-01-13 16:54:43,266 CassandraDaemon.java:564 - Not starting RPC server as requested. Use JMX (StorageService->startRPCServer()) or nodetool (enablethrift) to start it
INFO  [main] 2021-01-13 16:54:43,266 CassandraDaemon.java:650 - Startup complete
INFO  [OptionalTasks:1] 2021-01-13 16:54:45,184 CassandraRoleManager.java:372 - Created default superuser role 'cassandra'

You are welcome to build your own images from the Dockerfile + context, but the images are provided on Docker Hub: http://hub.docker.com/_/cassandra.

Same basic issue as docker-library/postgres#386 (comment). TL;DR: The execute permissions are already tracked in git, there should be no need to apply it manually unless you didn't use git to download the files.