My Oracle Support Banner

java.lang.IllegalArgumentException: The number of storage directories and sizes must match (Doc ID 2518466.1)

Last updated on JUNE 01, 2020

Applies to:

Oracle NoSQL Database - Version 18.1.11.0.0 and later
Information in this document applies to any platform.

Goal

When trying to configure 3x3 (or any) NoSQL topology. Encountering a blocking issue in initial steps, bootconfig configuration file using makebootconfig utility fails because of the following error:

[root@onsql01-dev opc]# java -Xmx64m -Xms64m -jar /kvroot/kv-18.3.11/lib/kvstore.jar makebootconfig -root /kvroot/kv-18.3.11 -port 5000 -host onsql01-dev -harange 5010,5020 -capacity 3 -admindir /data/u01/admin -admindirsize 2000-MB -storagedir /data/u01 -storagedir /data/u02 -storagedir /data/u03 -storagedirsize 50_gb -rnlogdir /data/u01/rnlog01 -rnlogdir /data/u02/rnlog02 -rnlogdir /data/u03/rnlog03
Exception in thread "main" java.lang.IllegalArgumentException: The number of storage directories and sizes must match
at oracle.kv.impl.admin.param.BootstrapParams.setStorgeDirs(BootstrapParams.java:299)
at oracle.kv.impl.util.KVStoreMain$MakeConfigParser.verifyArgs(KVStoreMain.java:848)
at oracle.kv.impl.util.CommandParser.parseArgs(CommandParser.java:357)
at oracle.kv.impl.util.KVStoreMain.makeBootConfig(KVStoreMain.java:631)
at oracle.kv.impl.util.KVStoreMain.access$100(KVStoreMain.java:52)
at oracle.kv.impl.util.KVStoreMain$2.run(KVStoreMain.java:227)
at oracle.kv.impl.util.KVStoreMain.main(KVStoreMain.java:533)

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.