DSE_ENV could not be determined


I setup DataStax Enterprise on a Linux Ubuntu machine. OpsCenter and DevCenter are working fine. I able to write to the database, etc. with no issues.

However many of the demos and command line tools return the following error:


DSE_ENV could not be determined


One such example of when this occurs is:


nodetool status


I found a file called DSE_ENV.sh which appears to set some environment variables such as DSE_HOME. But when I echo $DSE_HOME for example the variable is not set. I don't know if maybe this file is never getting called or what is causing the issue.

I found this article which is specific to the the dse service not starting, <em>which is not the case with me</em>: <a href="https://support.datastax.com/hc/en-us/articles/204226189-DSE-fails-to-start-with-error-DSE-ENV-could-not-be-determined" rel="nofollow">https://support.datastax.com/hc/en-us/articles/204226189-DSE-fails-to-start-with-error-DSE-ENV-could-not-be-determined</a>

I tried however to run the permissions commands it mentions but no luck.


Worked with KOH on this over chat.

TL;DR: we had to add

export DSE_ENV=/usr/share/dse/bin/dse-env.sh

to his ~/.bashrc because it wasn't getting picked up.

For some reason this seems to be happening in the DSE GUI installer. I will look further into this and update.


  • Installing Protobuf Development Libraries in MinGW
  • How can the seemingly odd behavior in Cassandra cluster be explained?
  • What does this `ld` error (“undefined reference”) mean?
  • Git is merging commits over and over
  • Is `nodetool disableautocompaction` persisted between restarts of Cassandra?
  • c++ reading fits file using ccfits
  • Syntax error near unexpected token 'elif'
  • Building jamvm 1.5.4 on OS X Lion
  • How can I get the full list of running processes on a Mac from a python app
  • How to autopopulate a field in SugarCRM form
  • bad substitution shell- trying to use variable as name of array
  • Differences in dis-assembled C code of GCC and Borland?
  • MongoDb aggregation
  • Is there a way to do normal logging with EureakLog?
  • Get one-time binding to work for ng-if
  • Adding a button at the bottom of a table view
  • How can I send an e-mail from a vbs script
  • Is there any way to access browser form field suggestions from JavaScript?
  • Spring security and special characters
  • Ajax jQuery multiple calls at the same time - long wait for answer and not able to cancel
  • How do I fake an specific browser client when using Java's Net library?
  • Date difference with leap year
  • angularjs unit test when to use $rootScope.$new()
  • Volusion's generic SQL folder, functionality
  • Menu Color Fade on Hover with Jquery
  • How to limit post in wp_query
  • Hazelcast - OperationTimeoutException
  • How to make Safari send if-modified-since header?
  • Adding custom controls to a full screen movie
  • Why winpcap requires both .lib and .dll to run?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • How to set the response of a form post action to a iframe source?
  • coudnt use logback because of log4j
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • unknown Exception android
  • reshape alternating columns in less time and using less memory