Hi,
I installed the following modules:
elasticsearch-6.3.1
kibana-6.3.1-windows-x86_64
search-guard-6-6.3.1-22.3
search-guard-tlstool-1.5
jdk1.8.0_181
jre1.8.0_181
The elastic search and the kibana are working. And first I can run sgadmin, so I could create the certificates. After that I want to add new users to internal_users. But the sgadmin (use the same command) cause the next error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread “main” java.lang.NoClassDefFoundError: org/elasticsearch/client/transport/NoNodeAvailableException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetMethodRecursive(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.client.transport.NoNodeAvailableException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
… 7 more
In elasticsearch.yml:
cluster.name: TFClaster (I tried comment out it, but didn’t work)
node.name: TFnode-1
node.attr.rack: r1
path.data: C:\mypath\Desktop\ElasticData
path.logs: C:\mypath\Desktop\ElasticLog
network.host: DESKTOP-V10O5HE
transport.tcp.port: 9300
http.port: 9200
transport.host: 0.0.0.0
searchguard.enterprise_modules_enabled: false
xpack.monitoring.enabled: true
xpack.graph.enabled: false
xpack.ml.enabled: false
xpack.security.enabled: false
xpack.watcher.enabled: false
searchguard.ssl.transport.pemcert_filepath: node1.pem
searchguard.ssl.transport.pemkey_filepath: node1.key
searchguard.ssl.transport.pemkey_password: MeFJjC46FtM4
searchguard.ssl.transport.pemtrustedcas_filepath: root-ca.pem
searchguard.ssl.transport.enforce_hostname_verification: false
searchguard.ssl.transport.resolve_hostname: false
searchguard.ssl.http.enabled: true
searchguard.ssl.http.pemcert_filepath: node1_http.pem
searchguard.ssl.http.pemkey_filepath: node1_http.key
searchguard.ssl.http.pemkey_password: vkggFzIFpr6c
searchguard.ssl.http.pemtrustedcas_filepath: root-ca.pem
searchguard.authcz.admin_dn:
- CN=kirk.example.com,OU=Ops,O=Example Com, Inc.,DC=example,DC=com
searchguard.cert.oid: 1.2.3.4.5.5
Could you help me? I can’t find the problem