Hi Tianyue,

IMHO fully compilable project is usefull for newbie, while short code snippets are not. You can start a single server cluster and debug code in your IDE, check some suggestions about how it works. Couple of years ago I found such a compilable project describing microservices written by @DenisMagda, it helped a lot. So I hope my post will be usefull.

Vladimir
PS
I know out there in China last name is written first, while here in Russia it is written last, so the names are Vladimir or Zhenya. Hope I am correct and your name is Tianyue

5:12, 20 апреля 2022 г., y <hty1994...@163.com>:


Hi Stanilovsky,

I don't know how to describe my problem to you, but I'm sure there is not an error and the data was successfully inserted but not mapped to SQL-data. Vladimir give me a link https://www.gridgain.com/resources/blog/how-fast-load-large-datasets-apache-ignite-using-key-value-api. I decided to take a look at this link first.

Anyway, thanks for your advise and hope can help you in the future.

Tianyue Hu,
2022/4/20





2022-04-19 14:50:51,"Zhenya Stanilovsky" <arzamas...@mail.ru> 写道:

hi !
BinaryObjectBuilder oldBuilder = igniteClient.binary().builder(«com.inspur...PubPartitionKeys_1_7»);
 
do you call:
 
oldBuilder.build(); // after ?
 
If so — what this mean ? «data is not mapped to sql» is it error in log or client side or smth ?
 
thanks !

Hi,
 
I have had the same experience without sql, using KV API only. My cluster consists of several data nodes and self-written jar application that starts the client node. When started, client node executes mapreduce tasks for data load and processing.
 
The workaround is as follows:
1. create POJO on the client node;
2. convert it to the binary object;
3. on the data node, get binary object over the network and get its builder (obj.toBuilder());
4. set some fields, build and put in the cache.
 
The builder on the step 3 seems to be the same as the one on the cluent node.
 
Hope that helps,
Vladimir
 
13:06, 18 апреля 2022 г., y <hty1994...@163.com>:
Hi ,
When using binary to insert data, I need to  get an exist BinaryObject/BinaryObjectBuilder  from the database, similar to the code below. 
442062c6$3$1803c222cba$Coremail$hty1994712$163.com

If I create a BinaryObjectBuilder directly, inserting binary data does not map to table data. The following code will not throw error, but the data is not mapped to sql. If there is no data in my table at first, how can I insert data?
3ecbd8f9$4$1803c222cba$Coremail$hty1994712$163.com

 
 

 



--
Отправлено из мобильного приложения Яндекс Почты
 
 
 
 


 



--
Отправлено из мобильного приложения Яндекс Почты

Reply via email to