DataStax Help Center

DSE fails to start with error: DSE_ENV could not be determined

Summary

After DSE rpm install, the service won't start after command

sudo service dse start

Symptoms

The following is seen during service startup:

[root@node cassandra]# service dse start -v
Loading /etc/default/dse
Loading /etc/dse/dse-env.sh
No JSVC or start-stop-daemon
JAVA_HOME: /usr/java/jdk1.7.0_65/
Loading /etc/dse/cassandra/cassandra-env.sh
Loading /etc/dse/spark/spark-env.sh
Starting DSE daemon : dse
Using system to check for status
DSE daemon starting with just Cassandra enabled (edit /etc/default/dse to enable)
Using su to start the server
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
Using system to check for status
[root@node cassandra]#

The output.log will show the following and there is no system.log

DSE_ENV could not be determined.

 

Cause

Under the covers, the command

/usr/bin/dse

Executes the following instructions as the 'cassandra' user:

[cassandra@node ~]$ sh -x dse
+ '[' -z '4.1.2(1)-release' ']'
+ '[' -z '' ']'
++ dirname dse
+ for include in '"$HOME/.dse-env.sh"' '"`dirname "$0"`/dse-env.sh"' '"/etc/dse/dse-env.sh"'
+ '[' -r /export/home/cassandra/.dse-env.sh ']'
+ for include in '"$HOME/.dse-env.sh"' '"`dirname "$0"`/dse-env.sh"' '"/etc/dse/dse-env.sh"'
+ '[' -r ./dse-env.sh ']'
+ for include in '"$HOME/.dse-env.sh"' '"`dirname "$0"`/dse-env.sh"' '"/etc/dse/dse-env.sh"'
+ '[' -r /etc/dse/dse-env.sh ']'
+ '[' -z '' ']'
+ echo 'DSE_ENV could not be determined.'
DSE_ENV could not be determined.
+ exit 1
[cassandra@node ~]$

From here we determine the problem is that permissions are somehow not enough for cassandra user to read /etc/dse/dse-env.sh.

Solution

Make sure the cassandra user is able to access the following items:

/etc/dse
/etc/dse/*

By running the following commands as 'root':

chown root:opscenter-admin /etc/dse
chmod 775 /etc/dse
chown root:opscenter-admin /etc/dse/*
chmod 775 /etc/dse/*


After that, DSE service should be able to start

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk