You should be setting these as values in /etc/default/dse, not in your bashrc.

I.e., /etc/default/dse should contain:

        JAVA_HOME=/whatever

…and any other environment variables the service should pick up when it starts. 
 IIRC, the Ubuntu packages may already create a blank one for you.

Andrew

On January 23, 2015 at 7:30:15 PM, Jacob Rhoden (jacob.rho...@me.com) wrote:

What does this show?  

ls $JAVA_HOME  

______________________________  
Sent from iPhone  

> On 24 Jan 2015, at 2:18 pm, anujacharya11 . <anuj.acharya1...@gmail.com> 
> wrote:  
>  
> I had installed DataStax Enterprise Cassandra on my Ubuntu Linux Desktop 
> which is having Oracle/Sun JDK1.8.x. Setup JAVA_HOME correctly but when i am 
> trying to start the service dse-i am getting this error:  
>  
>  
> I have setup JAVA_HOME in .bashrc and setup the path also.  
> Even after that i am getting this error:  
> root@anuj-700-430qe:/usr/share/dse/bin# sudo service dse start  
> log_daemon_msg is a shell function  
> Java executable not found (hint: set JAVA_HOME)  
> root@anuj-700-430qe:/usr/share/dse/bin#  
>  
>  
> why so?  
>  
> root@anuj-700-430qe:/usr/share/dse/bin# echo $JAVA_HOME  
> /jdk1.8.0_25  
> root@anuj-700-430qe:/usr/share/dse/bin# sudo service dse start  
> log_daemon_msg is a shell function  
> Java executable not found (hint: set JAVA_HOME)  
> root@anuj-700-430qe:/usr/share/dse/bin#  
>  
>  
> What i am doing it wrong...i uninstalled Cassandra and re-installed it but 
> the same issue.  
>  
> Please help  

Reply via email to