Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

geniusrmd avatar image
geniusrmd asked ·

DSE 6.8.1 doesn't start on Mac with DataStax Desktop

DataStax Desktop shows STATUS:ERROR when using the DSE 6.8.1 stack with Desktop. How do I find the error messages.

datastax desktop
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

jake.robb_180590 avatar image
jake.robb_180590 answered ·

You can also view the logs right in the app. Click on the stack to get to the stack detail view, and then click the icon to the right of the container whose logs you want to view.

1642-dselogs.png


dselogs.png (328.6 KiB)
Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered ·

Logging

Since DataStax Desktop runs DSE in a docker container, you will need to view the Docker logs in order to determine why the container is in an error state.

For example, to view the logs for the DSE server container:

$ docker logs dse-dse-server

For details, see the Docker documentation on Viewing logs for a container or service.

Root cause

You didn't provide a lot of information but I suspect you are seeing the following on the DataStax Desktop console:

4. DataStax Enterprise 6.8 stack started
Stack was started but is now in an error state.

In my experience, the most common cause of this issue is insufficient memory allocated to Docker. In the container logs you will see an error similar to this:

ERROR [DSE main thread] 2020-12-14 05:09:38,734  DseDaemon.java:562 - Unable to start DSE server.
java.lang.ExceptionInInitializerError: null
    at com.datastax.bdp.plugin.SparkPlugin.isEnabled(SparkPlugin.scala:94)
    at com.datastax.bdp.plugin.PluginManager.isPluginEnabled(PluginManager.java:428)
    at com.datastax.bdp.plugin.PluginManager.shouldActivatePlugin(PluginManager.java:388)
    ...
Caused by: org.apache.commons.configuration.ConfigurationRuntimeException: Failed to read worker_options
    at com.datastax.bdp.config.DseWorkerResourcesConfigResolver.convert(DseWorkerResourcesConfigResolver.scala:117)
    at com.datastax.bdp.config.ConfigUtil$ParamResolver.initialize(ConfigUtil.java:91)
    at com.datastax.bdp.config.ConfigUtil$ParamResolver.check(ConfigUtil.java:137)
    at com.datastax.bdp.config.DseSparkConfig.<clinit>(DseSparkConfig.java:212)
    ...
Caused by: org.apache.commons.configuration.ConfigurationRuntimeException: Please either increase the alwayson_sql workpool memory in dse.yaml to at least 0.2934 or decrease the spark.executor.memory in spark-alwayson-sql.conf to at most AlwaysOn SQL workpool memory in 872M
    at com.datastax.bdp.config.DseWorkerResourcesConfigResolver.convert(DseWorkerResourcesConfigResolver.scala:85)
    ...

Solution

Increase the amount of memory allocated to Docker resources. We recommend you allocate at least 10GB (16GB is preferred).

For details on configuring Docker Desktop for Mac, see the Resources section of the user manual.

Alternatives

If you just want to be able to try out DSE or Apache Cassandra, a better option is to just use DataStax Astra. It's FREE forever with no credit card required. You'll be able to launch a cluster with a just few clicks and ready to use in a couple of minutes. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.