Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all Cassandra Parameters in options file #420

Open
fksimon opened this issue Mar 21, 2017 · 2 comments
Open

Not all Cassandra Parameters in options file #420

fksimon opened this issue Mar 21, 2017 · 2 comments

Comments

@fksimon
Copy link

fksimon commented Mar 21, 2017

I am trying to deploy cassandra with a options file where I set specific properties.

dcos package install --options myoptions.json cassandra

I receive the error below

Unexpected properties: ['endpoint_snitch', 'gc_warn_threshold_in_ms', 'key_cache_size_in_mb',
'memtable_cleanup_threshold', 'memtable_flush_writers', 'permissions_validity_in_ms',
'phi_convict_threshold', 'roles_update_interval_in_ms', 'roles_validity_in_ms']

myoptions file is
{ "service": { "name": "cassandra-c1", "data_center": "Cassandra", "principal": "cassandra_principal", "cpus": 0.1, "mem": 512, "heap": 256 }, "nodes": { "cpus": 2.0, "mem": 4096, "disk": 10240, "disk_type": "ROOT", "heap": { "size": 1024, "new": 100 }, "count": 1, "seeds": 1 }, "cassandra": { "authenticator": "PasswordAuthenticator", "authorizer": "CassandraAuthorizer", "concurrent_reads": 96, "concurrent_writes": 128, "compaction_throughput_mb_per_sec": 128, "endpoint_snitch": "GossipingPropertyFileSnitch", "gc_warn_threshold_in_ms": 500, "key_cache_size_in_mb": 256, "memtable_allocation_type": "heap_buffers", "memtable_cleanup_threshold": 0.6, "memtable_flush_writers": 8, "num_tokens": 64, "permissions_validity_in_ms": 60000, "phi_convict_threshold": 12, "roles_validity_in_ms": 60000, "roles_update_interval_in_ms": 5000 } }

It appears in issue #283 they were added to the application configuration. I also see them in the schedule.yml as environment replacements.

It appears they were never added to the universe config file so are being rejected at that point when used in the options file. They do not appear when you run

dcos package install cassandra --config

@fksimon fksimon changed the title Cassandra Parameters no all in options file Not all Cassandra Parameters in options file Mar 21, 2017
@fksimon
Copy link
Author

fksimon commented Mar 21, 2017

Environment was DCOS 1.8.7 and 1.9-rc3.

dcos package describe cassandra
{
"description": "Apache Cassandra running on DC/OS",
"framework": true,
"maintainer": "[email protected]",
"minDcosReleaseVersion": "1.7",
"name": "cassandra",
"packagingVersion": "3.0",
"postInstallNotes": "DC/OS Apache Cassandra has been successfully installed!\n\n\tDocumentation: https://docs.mesosphere.com/current/usage/service-guides/cassandra/\n\tIssues: https://dcosjira.atlassian.net/projects/CASSANDRA/issues",
"postUninstallNotes": "DC/OS Apache Cassandra service has been uninstalled.\nPlease follow the instructions at https://docs.mesosphere.com/current/usage/service-guides/cassandra/uninstall to remove any persistent state if required.",
"preInstallNotes": "DC/OS Cassandra Service default configuration requires 3 nodes each with 1.5 CPU shares, 5376MB of memory and 11264MB of disk for running Cassandra Nodes. And, 1 node with 0.5 CPU shares, 2048MB of memory for running the service scheduler.",
"selected": true,
"tags": [
"data",
"database",
"nosql"
],
"version": "1.0.25-3.0.10"
}

@triclambert
Copy link
Contributor

This repo is deprecated and will be archived in one week. Please see the latest version of Cassandra or DSE for DC/OS:

https://docs.mesosphere.com/service-docs/cassandra/
https://docs.mesosphere.com/service-docs/dse/ (enterprise-only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants