• Glossary
  • Support
  • Downloads
  • DataStax Home
Get Live Help
Expand All
Collapse All

DataStax Enterprise Installation Guide

    • Installing DSE 6.8
      • Which install method should I use?
      • Install on a single node
      • Installing supporting software
      • Installing a cluster using Lifecycle Manager 6.8
      • Installing from the Yum package
      • RedHat systemd configuration
      • Installing from the Debian package
      • Install from the tarball on any Linux distribution
      • Installing patch releases
      • Installing on cloud providers
      • Installing on Docker
      • Uninstalling DSE
      • Default DSE file locations
        • Package installations
        • Tarball installations
    • Installing DSE 6.8 Tools
      • Installing CQLSH
      • Installing DataStax Studio 6.8
      • Installing DSE Graph Loader
      • Installing DataStax Bulk Loader
      • Installing DataStax Apache Kafka Connector
    • Installing DSE OpsCenter 6.8
      • Installing from the RPM package
      • Installing from the Debian package
      • Installing from the tarball on any Linux distribution
      • Installing on Docker
      • Uninstalling OpsCenter
      • Installing DataStax Agents 6.8
        • Installing DataStax Agents automatically
        • Installing DataStax Agents manually
          • From the RPM package
          • From the Debian package
          • From a tarball
        • Setting Agent permissions to run as the DSE user
        • Configuring JAVA_HOME
  • DataStax Enterprise Installation Guide
  • Installing DSE OpsCenter 6.8
  • Installing DataStax Agents 6.8
  • Configuring JAVA_HOME

Configuring JAVA_HOME for DataStax Agents

DataStax Agents do not find the environment variables of the currently logged in user by default.

If Java is not in the machine’s PATH, the Agent log shows an error on startup:

nohup: cannot run command 'java': No such file or directory

Procedure

On the nodes where the Agents are installed, create the file /etc/default/datastax-agent and set the environment variables for JAVA_HOME and any other custom environment variables that the Agent might need. For example:

JAVA_HOME = /usr/lib/jvm/java-8-oracle
Setting Agent permissions to run as the DSE user

General Inquiries: +1 (650) 389-6000 info@datastax.com

© DataStax | Privacy policy | Terms of use

DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.

Kubernetes is the registered trademark of the Linux Foundation.

landing_page landingpage