AnsweredAssumed Answered

Problem inserting and or querying documents using OJAI API

Question asked by PETER.EDIKE on Dec 26, 2017
Latest reply on Dec 27, 2017 by cathy

Hello everyone, 

I have been playing around with MapR for some time and So far so good up untill i wanted to test some code against the Hadoop Sandbox (Latest Version).


I am trying to insert a document into MapR db. I have set up maprclient on windows and all the relevant Hadoop commands work correctly from the command prompt. However when i try to run the following code, 


public void insert(T data) {
    if (data != null) {
        DocumentStore store = connection.getStore(path);
        String documentId = UUID.randomUUID().toString();
        Document document = connection.newDocument(data);



I get the following stacktrace


com.mapr.db.exceptions.DBException: failed with err code = 95,
at com.mapr.db.exceptions.ExceptionHandler.handle(
at com.mapr.db.impl.DBDocumentStream.access$100(
at com.mapr.db.impl.DBDocumentStream$1.hasNext(
at com.interswitch.bigdata.common.dataaccess.maprdb.MaprRepository.query(
at com.interswitch.bigdata.common.dataaccess.maprdb.MaprKeyValueRepository.update(
at com.interswitch.bigdata.common.dataaccess.maprdb.MaprKeyValueRepository.update(
at com.interswitch.bigdata.common.producer.JobRunner.runOneIteration(
at java.util.concurrent.Executors$
at java.util.concurrent.FutureTask.runAndReset(
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
at java.util.concurrent.ScheduledThreadPoolExecutor$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: com.mapr.fs.ErrnoException: scanNext() on '/user/root/maprdb/tables/checkpoint' failed with error: Operation not supported (95).
at com.mapr.fs.Inode.checkError(
at com.mapr.fs.Inode.checkError(
at com.mapr.fs.Inode.scanNext(
at com.mapr.fs.MapRHTable.scanNext(
at com.mapr.fs.MapRResultScanner.nextRows(
at com.mapr.fs.MapRResultScanner.nextRows(
at com.mapr.fs.MapRResultScanner.nextRow(
... 15 more
2017-12-26 10:41:05,5940 ERROR Client fs/client/fileclient/cc/ Thread: 52992 Failed scanner initialization for table /user/root/maprdb/tables/checkpoint, Unexpected error: Operation not supported on transport endpoint(95) for fid 2179.33.131334
2017-12-26 10:41:05,5940 ERROR ApiCommon fs/client/fileclient/cc/ Thread: 52992 Scanner failed to get 100 rows error = 95
2017-12-26 10:41:21,4357 ERROR ApiCommon fs/client/fileclient/cc/ Thread: 52992 Error in UpdateAndGetResponse for table /user/root/maprdb/tables/checkpoint, error: Operation not supported on transport endpoint(95)

Please is there something I am doing wrong