# Error installing elasticsearch on Linux with IBM Java

**URL:** <https://discuss.elastic.co/t/error-installing-elasticsearch-on-linux-with-ibm-java/141092>\
**Category:** Elasticsearch\
**Created:** [July 23, 2018, 6:52am UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-on-linux-with-ibm-java/141092 "2018-07-23T06:52:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyril\_Lindenmann](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@Cyril\_Lindenmann](https://discuss.elastic.co/u/Cyril_Lindenmann)\
**Post date:** [July 23, 2018, 6:52am UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-on-linux-with-ibm-java/141092/1 "2018-07-23T06:52:44Z")

</div>

**Hi,**  
**I was trying to install elasticsearch-6.3.0 on my Linux server (RHEL 6.8) using following command:**

> rpm -ivh /path/to/elasticsearch-oss-6.3.1.rpm

**Which threw this exception:**  
warning: /data/softwarePackages/GrayLog/elasticsearch-6.3.0.rpm: Header V4 RSA/SHA512 Signature, key ID d88e42b4: NOKEY  
Preparing... ########################################### [100%]  
Creating elasticsearch group... OK  
Creating elasticsearch user... OK  
1:elasticsearch ########################################### [100%]

### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using chkconfig

sudo chkconfig --add elasticsearch

### You can start elasticsearch service by executing

sudo service elasticsearch start  
Exception in thread "main" java.security.spec.InvalidKeySpecException: Could not generate secret key  
at javax.crypto.SecretKeyFactory.generateSecret(Unknown Source)  
at org.elasticsearch.common.settings.KeyStoreWrapper.createCipher(KeyStoreWrapper.java:289)  
at org.elasticsearch.common.settings.KeyStoreWrapper.encrypt(KeyStoreWrapper.java:361)  
at org.elasticsearch.common.settings.KeyStoreWrapper.save(KeyStoreWrapper.java:473)  
at org.elasticsearch.common.settings.CreateKeyStoreCommand.execute(CreateKeyStoreCommand.java:58)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:79)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.Command.main(Command.java:90)  
at org.elasticsearch.common.settings.KeyStoreCli.main(KeyStoreCli.java:41)  
Caused by: java.lang.RuntimeException: Error deriving PBKDF2 keys  
at com.ibm.crypto.provider.PBKDF2KeyImpl.a(Unknown Source)  
at com.ibm.crypto.provider.PBKDF2KeyImpl.(Unknown Source)  
at com.ibm.crypto.provider.bi.engineGenerateSecret(Unknown Source)  
... 11 more  
chown: cannot access `/etc/elasticsearch/elasticsearch.keystore': No such file or directory chmod: cannot access `/etc/elasticsearch/elasticsearch.keystore': No such file or directory  
md5sum: /etc/elasticsearch/elasticsearch.keystore: No such file or directory  
warning: %posttrans(elasticsearch-0:6.3.0-1.noarch) scriptlet failed, exit status 1

**Java:**  
java version "1.8.0\_151"  
Java(TM) SE Runtime Environment (build 8.0.5.6 - pxa6480sr5fp6-20171124\_02(SR5 FP6))  
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64 Compressed References 20171122\_371101 (JIT enabled, AOT enabled)  
OpenJ9 - 8e3c85d  
OMR - 713f08e  
IBM - c041ee8)  
JCL - 20171113\_01 based on Oracle jdk8u151-b12

When I tried to install the same RPM Package on a different machine using OpenJDK, it worked properly.

Thanks for help in advance 🙂

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 23, 2018, 6:57am UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-on-linux-with-ibm-java/141092/2 "2018-07-23T06:57:32Z")

</div>

As per the [support matrix](https://www.elastic.co/support/matrix#matrix_jvm) IBM Java is not supported.

---

<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:** [August 20, 2018, 7:07am UTC](https://discuss.elastic.co/t/error-installing-elasticsearch-on-linux-with-ibm-java/141092/3 "2018-08-20T07:07:10Z")

</div>

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