我正在尝试使用MLCP导出数据库,但我得到异常StringIndexOutOfBoundsException
MLCP命令
mlcp export -host localhost -port 8011 -username admin -password admin -mode local -output_file_path C:test_sample -output_type archive
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows(GenericOptionsParser.java:438)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:484)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)
at com.marklogic.contentpump.ContentPump.runCommand(ContentPump.java:120)
at com.marklogic.contentpump.ContentPump.main(ContentPump.java:74)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:49)
... 6 more
任何指导都是感激的。
这是一个已经报告的问题https://github.com/marklogic/marklogic-contentpump/issues/169
看来Hadoop库依赖的版本需要更新了。