simon824 opened a new pull request, #312:
URL: https://github.com/apache/incubator-hugegraph-toolchain/pull/312

   
   The option `batch.max_vertices_per_batch` default value is 500, if 
spark/flink default value of `batch_size` is bigger than 500 ,will cause the 
below exception.
   
   ``` shell
   class java.lang.IllegalArgumentException: Too many vertices for one time 
post, the maximum number is '500'
     at 
com.baidu.hugegraph.exception.ServerException.fromResponse(ServerException.java:47)
     at com.baidu.hugegraph.client.RestClient.checkStatus(RestClient.java:93)
     at 
com.baidu.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:231)
     at 
com.baidu.hugegraph.rest.AbstractRestClient.post(AbstractRestClient.java:211)
     at com.baidu.hugegraph.api.graph.VertexAPI.create(VertexAPI.java:58)
     at 
com.baidu.hugegraph.driver.GraphManager.addVertices(GraphManager.java:96)
     at 
com.baidu.hugegraph.loader.spark.HugeGraphSparkLoader.flush(HugeGraphSparkLoader.java:253)
     at 
com.baidu.hugegraph.loader.spark.HugeGraphSparkLoader.loadRow(HugeGraphSparkLoader.java:150)
     at 
com.baidu.hugegraph.loader.spark.HugeGraphSparkLoader.lambda$null$0(HugeGraphSparkLoader.java:111)
   ```
   
   closed #311 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to