Opensearch install error(tarball)

Hi

Open search has been installed with tarball.
There was a problem running OpenSearch.

[2022-06-16T10:55:59,128][ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [ip-172-16-3-48] uncaught exception in thread [main]
org.opensearch.bootstrap.StartupException: java.lang.IllegalArgumentException: Values less than -1 bytes are not supported: -29401088b
at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:182) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138) ~[opensearch-cli-1.2.4.jar:1.2.4]
at org.opensearch.cli.Command.main(Command.java:101) ~[opensearch-cli-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:101) ~[opensearch-1.2.4.jar:1.2.4]
Caused by: java.lang.IllegalArgumentException: Values less than -1 bytes are not supported: -29401088b
at org.opensearch.common.unit.ByteSizeValue.(ByteSizeValue.java:93) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.knn.index.KNNSettings.parseknnMemoryCircuitBreakerValue(KNNSettings.java:378) ~[?:?]
at org.opensearch.knn.index.KNNSettings.lambda$knnMemoryCircuitBreakerSetting$5(KNNSettings.java:360) ~[?:?]
at org.opensearch.common.settings.Setting.getDefault(Setting.java:423) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.knn.index.KNNSettings.getSettingValue(KNNSettings.java:289) ~[?:?]
at org.opensearch.knn.index.KNNSettings.getCircuitBreakerLimit(KNNSettings.java:337) ~[?:?]
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.initialize(NativeMemoryCacheManager.java:77) ~[?:?]
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.(NativeMemoryCacheManager.java:55) ~[?:?]
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.getInstance(NativeMemoryCacheManager.java:65) ~[?:?]
at org.opensearch.knn.index.KNNCircuitBreaker.initialize(KNNCircuitBreaker.java:60) ~[?:?]
at org.opensearch.knn.plugin.KNNPlugin.createComponents(KNNPlugin.java:167) ~[?:?]
at org.opensearch.node.Node.lambda$new$15(Node.java:661) ~[opensearch-1.2.4.jar:1.2.4]
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) ~[?:?]
at org.opensearch.node.Node.(Node.java:675) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.node.Node.(Node.java:319) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.Bootstrap$5.(Bootstrap.java:242) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:242) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:412) ~[opensearch-1.2.4.jar:1.2.4]
at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:178) ~[opensearch-1.2.4.jar:1.2.4]
… 6 more
uncaught exception in thread [main]
java.lang.IllegalArgumentException: Values less than -1 bytes are not supported: -29401088b
at org.opensearch.common.unit.ByteSizeValue.(ByteSizeValue.java:93)
at org.opensearch.knn.index.KNNSettings.parseknnMemoryCircuitBreakerValue(KNNSettings.java:378)
at org.opensearch.knn.index.KNNSettings.lambda$knnMemoryCircuitBreakerSetting$5(KNNSettings.java:360)
at org.opensearch.common.settings.Setting.getDefault(Setting.java:423)
at org.opensearch.knn.index.KNNSettings.getSettingValue(KNNSettings.java:289)
at org.opensearch.knn.index.KNNSettings.getCircuitBreakerLimit(KNNSettings.java:337)
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.initialize(NativeMemoryCacheManager.java:77)
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.(NativeMemoryCacheManager.java:55)
at org.opensearch.knn.index.memory.NativeMemoryCacheManager.getInstance(NativeMemoryCacheManager.java:65)
at org.opensearch.knn.index.KNNCircuitBreaker.initialize(KNNCircuitBreaker.java:60)
at org.opensearch.knn.plugin.KNNPlugin.createComponents(KNNPlugin.java:167)
at org.opensearch.node.Node.lambda$new$15(Node.java:661)
at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.opensearch.node.Node.(Node.java:675)
at org.opensearch.node.Node.(Node.java:319)
at org.opensearch.bootstrap.Bootstrap$5.(Bootstrap.java:242)
at org.opensearch.bootstrap.Bootstrap.setup(Bootstrap.java:242)
at org.opensearch.bootstrap.Bootstrap.init(Bootstrap.java:412)
at org.opensearch.bootstrap.OpenSearch.init(OpenSearch.java:178)
at org.opensearch.bootstrap.OpenSearch.execute(OpenSearch.java:169)
at org.opensearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:100)
at org.opensearch.cli.Command.mainWithoutErrorHandling(Command.java:138)
at org.opensearch.cli.Command.main(Command.java:101)
at org.opensearch.bootstrap.OpenSearch.main(OpenSearch.java:135)
<<>>

Can you tell me ‘how to fix this error’ ?

1 Like

We experienced the same problem here.

This was using 2.0.0 from Tarball - OpenSearch documentation .
On a Debian Bullseye virtual machine.

Any hints?

Is 2.0.1 better in this regard? @Larry did you try this as well? (On which machine btw.)

We had a similar issue, apparently will allocated 2gb memory to opensearch and the machine had only 2gb memory total.

We increased the machine memory to 4gb. And the problem was solved.