You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/06/05 22:54:54 UTC

[GitHub] ctubbsii commented on issue #518: New bulk importer fails if directory contains files other than RFiles

ctubbsii commented on issue #518: New bulk importer fails if directory contains files other than RFiles
URL: https://github.com/apache/accumulo/issues/518#issuecomment-394886022
 
 
   Using an empty directory for this test gets a little further along... it creates the `loadmap.json` file, but then fails because the file list is empty:
   
   ```java
   com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was END_ARRAY at line 1 column 3 path $[0]
     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:224)
     at com.google.gson.Gson.fromJson(Gson.java:887)                                                   
     at org.apache.accumulo.core.client.impl.BulkSerialize$LoadMappingIterator.next(BulkSerialize.java:150)
     at org.apache.accumulo.core.client.impl.BulkSerialize$LoadMappingIterator.next(BulkSerialize.java:118)
     at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)                
     at org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.checkForMerge(PrepBulkImport.java:110)
     at org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.checkForMerge(PrepBulkImport.java:174)
     at org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.call(PrepBulkImport.java:182)         
     at org.apache.accumulo.master.tableOps.bulkVer2.PrepBulkImport.call(PrepBulkImport.java:66)          
     at org.apache.accumulo.master.tableOps.TraceRepo.call(TraceRepo.java:54)                          
     at org.apache.accumulo.fate.Fate$TransactionRunner.run(Fate.java:73)                              
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)                
     at org.apache.accumulo.fate.util.LoggingRunnable.run(LoggingRunnable.java:35)                     
     at java.lang.Thread.run(Thread.java:748)                                                          
   Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was END_ARRAY at line 1 column 3 path $[0]
     at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)                             
     at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:213)
     ... 14 more
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services