bitnami / containers

Bitnami container images
https://bitnami.com
Other
3.31k stars 4.79k forks source link

cannot change "user defined functions enabled" flag from docker-compose #67851

Closed mr-git closed 2 months ago

mr-git commented 3 months ago

Name and Version

bitnami/cassandra:4.1.5

What architecture are you using?

arm64

What steps will reproduce the bug?

  1. on macOS
  2. docker-cpmpose.yaml:
    services:
    cassandra:
    image: "bitnami/cassandra:4.1.5"
    ports: ["9042:9042"]
    environment:
      CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS: true
      CASSANDRA_USER: cassandra
      CASSANDRA_PASSWORD: cassandra
      CASSANDRA_CFG_ENV_user_defined_functions_enabled: true
      CASSANDRA_CFG_YAML_user_defined_functions_enabled: true

What is the expected behavior?

User defined functions are enabled

What do you see instead?

in Cassandra logs during startup: user_defined_functions_enabled=false;

Additional information

With docker-compose.yaml:

    image: "bitnami/cassandra:3.11.12"
    environment:
      CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS: true

The user defined functions were enabled

github-actions[bot] commented 3 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

mr-git commented 3 months ago

How to keep this from closing down?

migruiz4 commented 2 months ago

I'm sorry for the late reponse and thank you for reporting this issue @mr-git!

Apparently, Cassandra renamed enabled_user_defined_functions -> user_defined_functions_enabled in its version 4.x, so that is why the setting was not taking effect.

I have submitted a fix for this issue and a new version of the bitnami/cassandra image should be released soon fixing this issue.

mr-git commented 2 months ago

Is there any ETA for the soon part?

migruiz4 commented 2 months ago

It should be available now with tag bitnami/cassandra:4.1.5-debian-12-r4 (https://github.com/bitnami/containers/pull/69220)

migruiz4 commented 2 months ago

I'm sorry, that version didn't include the fix, let me trigger a new release including it

migruiz4 commented 2 months ago

The correct tag is bitnami/cassandra:4.1.5-debian-12-r5 (https://github.com/bitnami/containers/pull/69223)

mr-git commented 2 months ago

thank you!