# Logstash 7.7.0 installation failed with openjdk 11.0.2 + RHEL7.8

**URL:** <https://discuss.elastic.co/t/logstash-7-7-0-installation-failed-with-openjdk-11-0-2-rhel7-8/236826>\
**Category:** Logstash\
**Created:** [June 12, 2020, 6:21am UTC](https://discuss.elastic.co/t/logstash-7-7-0-installation-failed-with-openjdk-11-0-2-rhel7-8/236826 "2020-06-12T06:21:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavesh.vasoya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavesh.vasoya/32/49324_2.png) [@bhavesh.vasoya](https://discuss.elastic.co/u/bhavesh.vasoya)\
**Post date:** [June 12, 2020, 6:21am UTC](https://discuss.elastic.co/t/logstash-7-7-0-installation-failed-with-openjdk-11-0-2-rhel7-8/236826/1 "2020-06-12T06:21:15Z")

</div>

```
[root@elk ~]$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
[root@elk ~]$
[root@elk ~]$ yum install logstash
Loaded plugins: product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Resolving Dependencies
--> Running transaction check
---> Package logstash.noarch 1:7.7.0-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================================
 Package Arch Version Repository Size
==============================================================================================================================================================================================================
Installing:
 logstash noarch 1:7.7.0-1 elk-repo 159 M

Transaction Summary
==============================================================================================================================================================================================================
Install 1 Package

Total download size: 159 M
Installed size: 282 M
Is this ok [y/d/N]: y
Downloading packages:
logstash-7.7.0.rpm | 159 MB 00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:logstash-7.7.0-1.noarch 1/1 
Using provided startup.options file: /etc/logstash/startup.options
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-06-12T06:16:36.989Z [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
NoMethodError: undefined method `split' for nil:NilClass
   detect_systemd at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/detector.rb:33
  detect_platform at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/detector.rb:24
           detect at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/detector.rb:18
   setup_defaults at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/cli.rb:153
          execute at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/cli.rb:119
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/pleaserun-0.0.31/lib/pleaserun/cli.rb:114
              run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
           <main> at /usr/share/logstash/lib/systeminstall/pleasewrap.rb:28
/usr/share/logstash/bin/system-install: line 88: systemd: command not found
Unable to install system startup script for Logstash.
chmod: cannot access â€˜/etc/default/logstashâ€™: No such file or directory
warning: %post(logstash-1:7.7.0-1.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:logstash-7.7.0-1.noarch
  Verifying : 1:logstash-7.7.0-1.noarch 1/1 

Installed:
  logstash.noarch 1:7.7.0-1                                                                                                                                                                                   

Complete!
[root@elk ~]$
```

---

<div class="post-metadata">

**Author:** ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)\
**Post date:** [June 12, 2020, 9:12am UTC](https://discuss.elastic.co/t/logstash-7-7-0-installation-failed-with-openjdk-11-0-2-rhel7-8/236826/2 "2020-06-12T09:12:14Z")

</div>

I don't think this is a JDK problem.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 10, 2020, 9:12am UTC](https://discuss.elastic.co/t/logstash-7-7-0-installation-failed-with-openjdk-11-0-2-rhel7-8/236826/3 "2020-07-10T09:12:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
