# Setting up elastics watch on Linux on system z error

**URL:** <https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452>\
**Category:** Elasticsearch\
**Created:** [July 18, 2018, 6:24am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452 "2018-07-18T06:24:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harish\_Malu](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@Harish\_Malu](https://discuss.elastic.co/u/Harish_Malu)\
**Post date:** [July 18, 2018, 6:24am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/1 "2018-07-18T06:24:32Z")

</div>

Hi Team,

I have done my setup of using Logstash, elasticsearch and kibana for my systems performance data on rhel using latest 6.x version. It all works fine.  
Now I need to move this setup on Linux(rhel) on system z (mainframe)  
I started first with elasticsearch for which I downloaded the tar files and unzipped it. When executing elasticsearch command from bin folder, I get error as below -

Exception in thread "main" org.elasticsearch.bootstrap.BootstrapException: java.security.spec.InvalidKeySpecException: Could not generate secret key  
Likely root cause: 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.bn.engineGenerateSecret(Unknown Source)  
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.bootstrap.Bootstrap.loadSecureSettings(Bootstrap.java:234)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:291)  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136)  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127)  
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)  
at org.elasticsearch.cli.Command.main(Command.java:90)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86)  
Refer to the log for complete error details.

What am i missing here ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 18, 2018, 6:41am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/2 "2018-07-18T06:41:15Z")

</div>

I think that your OS or your JVM is not supported.

See [https://www.elastic.co/support/matrix](https://www.elastic.co/support/matrix)

---

<div class="post-metadata">

**Author:** ![Harish\_Malu](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@Harish\_Malu](https://discuss.elastic.co/u/Harish_Malu)\
**Post date:** [July 18, 2018, 7:35am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/3 "2018-07-18T07:35:58Z")

</div>

I was using [https://github.com/linux-on-ibm-z/docs/wiki/Building-Elasticsearch](https://github.com/linux-on-ibm-z/docs/wiki/Building-Elasticsearch) as reference and seems its supported.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 18, 2018, 7:39am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/4 "2018-07-18T07:39:57Z")

</div>

You are trying to run on the IBM JDK which is not supported by Elasticsearch.

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [July 18, 2018, 7:44am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/5 "2018-07-18T07:44:08Z")

</div>

> [@Harish\_Malu](#):
>
> at com.ibm.crypto.provider.PBKDF2KeyImpl.a(Unknown Source)

IBM jdk  
as i know this know is not support.

---

<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 15, 2018, 7:56am UTC](https://discuss.elastic.co/t/setting-up-elastics-watch-on-linux-on-system-z-error/140452/6 "2018-08-15T07:56:48Z")

</div>

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