AnsweredAssumed Answered

Bulk Load with MapR DB JSON tables - not working or not needed?

Question asked by soroka21 on Jun 6, 2017
Latest reply on Jun 16, 2017 by maprcommunity

Hi,

I'm creating MapR DB JSON table with bulkLoad enabled:

Admin a = MapRDB.newAdmin();
TableDescriptor tableDescriptor = MapRDB.newTableDescriptor("/apps/t2").setBulkLoad(true);
a.createTable(tableDescriptor);

 

 

I'm getting exception when trying to insert JSON records into this table:

 

2017-06-06 21:43:37,9067 ERROR ApiCommon fs/client/fileclient/cc/api_common.cc:2140 Thread: 25825 Error in UpdateAndGetResponse for table /apps/t2, error: Operation not supported(95)
Exception in thread "main" com.mapr.db.exceptions.DBException: checkAndDelete failed with err code = 95,
at com.mapr.db.exceptions.ExceptionHandler.handle(ExceptionHandler.java:46)
at com.mapr.db.impl.MapRDBTableImpl._checkAndReplace(MapRDBTableImpl.java:1739)
at com.mapr.db.impl.MapRDBTableImpl._insert(MapRDBTableImpl.java:1366)
at com.mapr.db.impl.MapRDBTableImpl.insert(MapRDBTableImpl.java:1332)
at tst.mdbtest.main(mdbtest.java:35)
Caused by: com.mapr.fs.ErrnoException: checkAndReplaceOrDelete() on '/apps/t2' failed with error: Operation not supported (95).
at com.mapr.fs.Inode.checkError(Inode.java:1760)
at com.mapr.fs.Inode.checkError(Inode.java:1719)
at com.mapr.fs.Inode.checkAndReplaceOrDelete(Inode.java:1779)
at com.mapr.fs.MapRHTable.checkAndReplaceOrDelete(MapRHTable.java:799)
at com.mapr.db.impl.MapRDBTableImpl._checkAndReplace(MapRDBTableImpl.java:1736)
... 3 more

 

 

Does this mean what BulkLoad is not worked/Not needed for JSON tables?

Outcomes