Marklogic:导入时mlcp权限问题

时间:2016-03-12 20:14:40

标签: marklogic mlcp

我在Marklogic 8.0.4 mlcp上。 以下是我运行的命令:

  

./ bin / mlcp.sh import -host localhost -username admin -password admin   -input_file_path /file/path/to/RDF.owl -input_file_type RDF

这是我的日志:

6/03/12 12:07:05 INFO contentpump.LocalJobRunner: Content type: XML
16/03/12 12:07:05 INFO input.FileInputFormat: Total input paths to process : 1
16/03/12 12:07:05 ERROR contentpump.LocalJobRunner: Error running task:
java.lang.NullPointerException
    at com.marklogic.contentpump.utilities.PermissionUtil.getDefaultPermissions(PermissionUtil.java:84)
    at com.marklogic.contentpump.RDFReader.initialize(RDFReader.java:278)
    at com.marklogic.contentpump.LocalJobRunner$TrackingRecordReader.initialize(LocalJobRunner.java:439)
    at com.marklogic.contentpump.LocalJobRunner$LocalMapTask.call(LocalJobRunner.java:373)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
16/03/12 12:07:05 INFO contentpump.LocalJobRunner:  completed 0%
16/03/12 12:07:05 INFO contentpump.LocalJobRunner: com.marklogic.mapreduce.ContentPumpStats:
16/03/12 12:07:05 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_COMMITTED: 0
16/03/12 12:07:05 INFO contentpump.LocalJobRunner: OUTPUT_RECORDS_FAILED: 0
16/03/12 12:07:05 INFO contentpump.LocalJobRunner: Total execution time: 0 sec

不确定是什么问题,用户admin拥有所有权限。我还重启了MarkLogic一次。

任何指针?

1 个答案:

答案 0 :(得分:1)

如果您使用的是Windows机器,请尝试以下提到的MLCP查询。

mlcp.bat IMPORT -host localhost -port 8010 -username test  -password test -input_file_path "C:/" -output_uri_replace "C:/,''" -output_uri_prefix /URI