Skip to content

JAVA_HOME environment variable NOT working #49068

@cs-niraj-nandane

Description

@cs-niraj-nandane

I have set JAVA_HOME to /usr. When i restart elasticsearch using systemctl i get following:

Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

If i set same value of JAVA_HOME in /etc/sysconfig/elasticsearch, it works.

Environment:

  1. ES version 7.4.1
  2. CentOS kernel 3.10.0-1062.1.2.el7.x86_64
  3. Version : CentOS Linux release 7.7.1908 (Core)

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsTeam:DeliveryMeta label for Delivery team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions