creating separate thread for opensearch saml on 2.0.1 version
reference
I have config and data paths from nfs shared ,could be any dependancy issue of 2.1.0 vs back to 2.1.0 ?
I did check both version have jar files in lib folder
lucene-backward-codecs-9.2.0.jar (2.1.0)
lucene-backward-codecs-9.1.0.jar(2.0.1)
opensearch-node1 | java.lang.IllegalArgumentException: Could not load codec ‘Lucene92’. Did you forget to add lucene-backward-codecs.jar?
opensearch-node1 | Likely root cause: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name ‘Lucene92’ does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene80, Lucene84, Lucene86, Lucene87, Lucene70, Lucene90, Lucene91, KNN80Codec, KNN84Codec, KNN86Codec, KNN87Codec, KNN910Codec]
================================
opensearch-node1 | at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:171) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:104) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138) ~[opensearch-cli-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.cli.Command.main(Command.java:101) ~[opensearch-cli-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:137) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:103) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name ‘Lucene92’ does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene80, Lucene84, Lucene86, Lucene87, Lucene70, Lucene90, Lucene91, KNN80Codec, KNN84Codec, KNN86Codec, KNN87Codec, KNN910Codec]
opensearch-node1 | at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:113) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.codecs.Codec.forName(Codec.java:118) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:511) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.SegmentInfos.parseSegmentInfos(SegmentInfos.java:404) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:363) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:299) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:88) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:77) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:809) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:109) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:67) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:60) ~[lucene-core-9.1.0.jar:9.1.0 5b522487ba8e0f1002b50a136817ca037aec9686 - jtibs - 2022-03-16 10:32:40]
opensearch-node1 | at org.opensearch.gateway.PersistedClusterStateService.nodeMetadata(PersistedClusterStateService.java:309) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.env.NodeEnvironment.loadNodeMetadata(NodeEnvironment.java:453) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.env.NodeEnvironment.(NodeEnvironment.java:369) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.node.Node.(Node.java:431) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.node.Node.(Node.java:336) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.Bootstrap$5.(Bootstrap.java:244) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:244) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:414) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:180) ~[opensearch-2.0.1.jar:2.0.1]
opensearch-node1 | … 6 more
opensearch-node1 | uncaught exception in thread [main]
opensearch-node1 | java.lang.IllegalArgumentException: Could not load codec ‘Lucene92’. Did you forget to add lucene-backward-codecs.jar?
opensearch-node1 | Likely root cause: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name ‘Lucene92’ does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene80, Lucene84, Lucene86, Lucene87, Lucene70, Lucene90, Lucene91, KNN80Codec, KNN84Codec, KNN86Codec, KNN87Codec, KNN910Codec]
opensearch-node1 | at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:113)
opensearch-node1 | at org.apache.lucene.codecs.Codec.forName(Codec.java:118)
I was able to resolve saml issues in 2.0.1 after past data indices all are wiped out with new data folder
if anyone working on saml auth 2.x opensearch follow my threads