dcos-cassandra-service icon indicating copy to clipboard operation
dcos-cassandra-service copied to clipboard

Missed configuration variables

Open ealonsodb opened this issue 9 years ago • 4 comments

Hi:

We are using dc/os and we have seen there are some non editable config variables. In scheduler.yml there are several hardcoded config variables.

For example, I want to config cassandra node to enable UDF and i havent found how to config it.

Is there any other reason to not allow this? Cheers

ealonsodb avatar Sep 26 '16 15:09 ealonsodb

@mohitsoni any news about this??

ealonsodb avatar Oct 05 '16 13:10 ealonsodb

@ealonsodb Currently, the framework doesn't have a provision to configure URLs to UDF JARs. Although, the framework itself doesn't limit it in any way.

One way to solve this can be introduce an env-var: UDF_JARS_URIS, which would contain a comma separated list of URLs which can serve the JARs containing UDF.

The Cassandra framework can then detect the presence of this env-var (best-effort), download these JARs into the lib directory, before starting up the Cassandra node.

How does that sound to you ?

mohitsoni avatar Oct 20 '16 23:10 mohitsoni

You may be able to do something like what verma7 suggested in #326: Build/upload a custom executor package containing the jars, then configure EXECUTOR_CASSANDRA_LOCATION to the URL of that package.

nickbp avatar Dec 07 '16 20:12 nickbp

Hi @mohitsoni and @nickbp.

Cassandra udfs in 'java' and 'javascript' are included by default in cassandra and there is no need to upload any jar.

The only limitation to use casssandra UDF (at least in java and javascript) is that user (guy launching a cassandra cluster in dcos web) cannot set 'enable_user_defined_functions' cassandra.yaml variable in json.

Cheers

ealonsodb avatar Dec 19 '16 08:12 ealonsodb