You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by Julian Feinauer <j....@pragmaticminds.de> on 2020/05/07 15:30:45 UTC
Re: 回复: IoTDB Native
Hi,
forwarding this to the dev list and adding @Christofer Dutz<ma...@c-ware.de>.
He might be able to help you with Thrift... he did all oft hat for PLC4X.
Julian
Von: Xusheng Zhang <ii...@foxmail.com>
Datum: Donnerstag, 7. Mai 2020 um 17:29
An: Julian Feinauer <j....@pragmaticminds.de>, Xiangdong Huang <sa...@gmail.com>
Cc: Giorgio Zoppi <gi...@gmail.com>, 乔嘉林 <64...@qq.com>
Betreff: 回复: IoTDB Native
Hi,
I'm the undergraduate student who is working on to bulid the C++ client for IoTDB. For users who use IoTDB client to insert data or somethings else, instead of directly using API which automatically generated by thrift, we create Session class to package these rpc API so users can operate data easily. Now I have written the Session class(and other related classes) in C++.
But for thrift 0.13.0 and VS 2019, I can't compile thrift successfully to get library(.lib file). I have tell this problem to thrift developers. But they don't have solutions and suggest I use cmake to complie thrift, not use VS2019. I haven't tried to use cmake yet. Just because of this, I haven't test whether the C++ client example demo can run normally. However, if the test passed, I have no idea how to make the compile automatically? (My current thoughts are to write a shell script file so user can get C++ thrift API directly. But whether getting C++ thrift API or using the client later on, the user should have thrift on his own computer. Even need boost to run the client)
Julian and Giorgio, would you mind guiding me how to complie thrift 0.13.0 to get cpp library easily and how to complie C++ client automatically? I'm puzzled.
Best Regards,
Xusheng Zhang
------------------ 原始邮件 ------------------
发件人: "Julian Feinauer"<j....@pragmaticminds.de>;
发送时间: 2020年5月7日(星期四) 晚上10:36
收件人: "Xiangdong Huang"<sa...@gmail.com>;
抄送: "Giorgio Zoppi"<gi...@qq.com>;
主题: Re: IoTDB Native
You need to love this Open Source thing, right? Ist just so awesome : )
J
Von: Xiangdong Huang <sa...@gmail.com>
Datum: Donnerstag, 7. Mai 2020 um 16:36
An: Julian Feinauer <j....@pragmaticminds.de>
Cc: Giorgio Zoppi <gi...@gmail.com>, 重庆大学张旭升 <ii...@foxmail.com>, 乔嘉林 <64...@qq.com>
Betreff: Re: IoTDB Native
Hi,
That could not be better!
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Julian Feinauer <j....@pragmaticminds.de>> 于2020年5月7日周四 下午10:34写道:
Hey,
should we move this tot he dev list?
As I know one Developer from the mynewt project (very senior C developer) who thinks about doing a C implementation.
So I would like to bring him in here as well : )
Julian
Von: Xiangdong Huang <sa...@gmail.com>>
Datum: Donnerstag, 7. Mai 2020 um 16:33
An: Giorgio Zoppi <gi...@gmail.com>>, 重庆大学张旭升 <ii...@foxmail.com>>
Cc: Julian Feinauer <j....@pragmaticminds.de>>, 乔嘉林 <64...@qq.com>>
Betreff: Re: IoTDB Native
Hi Julian,
Giorgio introduces the idea in [1].
I think his initial purpose is to let IoTDB/TsFile more efficient.
But in my opinion, this feature is very interesting not only for the performance but also because if we have a TsFile implementation with C/C++ version. We can read and write TsFile on the edge side more easily. Maybe we can write TsFile and read the data on an embedded device with 16MB or less... Then just sends the TsFile to the cloud to sync data with the cloud.
[1] https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-638
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Xiangdong Huang <sa...@gmail.com>> 于2020年5月7日周四 下午10:29写道:
Hi,
Xusheng Zhang is an undergraduate student from Chongqing University.
Though he is not in the same university as me, I know he is becoming trying to make contribution to IoTDB.
As far as I know, he is more familiar with C++ rather than Java.
Now, I know he is working on compiling the C++ thrift API of IoTDB automatically.
(I mean, after running some scripts, we can get the binary .so file or .dll file directly, even though Booststrap and Thrift lib is not installed. I know PLC4x project can do that ..).
But I do not know the detailed progress as Jialin is mentoring him.
Maybe, you can help him to finish the above task if it is not hard.. And Xusheng, are you interested in this new task?
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
Giorgio Zoppi <gi...@gmail.com>> 于2020年5月7日周四 下午10:23写道:
Ok,
we will provide training if it is needed to Modern C++, aka Modern C++ for Java Programmers.
keep us in touch.
Best Regards,
Giorgio.
Re: 回复: IoTDB Native - Bloom filters.
Posted by Giorgio Zoppi <gi...@gmail.com>.
Hey Xushenh Zhang,
If you want i have a task for you, then during the next weekend we will
fix thrift together. In the current implementation there are two things
that have no dependencies and we can port soon since we will need it soon:
1. Bloomfilters.
2. MurmurHash.
Both are in the /src/main/java/org/apache/iotdb/tsfile/utils directory.
We dont want and like MurmurHash, it is broken by DJB using differential
analysis and
since we want high quality code (we as programmers are paid to produce
less code possible), we suggest to use highwayhash or siphash. So the
idea is :
1. Port bloomfilters from java to c++
2. In the port using https://github.com/google/highwayhash/, integrating
highwayhash in our CMake.
The only reason of existence in the java code of Murmurhash is the
bloomfilter implementation.
The task is very simple. It would take 4/6 hours at most.
Let me know if you want otherwise i will do it tomorrow.
Best Regards,
Giorgio
Re: 回复: IoTDB Native
Posted by Christofer Dutz <ch...@c-ware.de>.
And I think I can help you folks with integration of this into your build
In general. I have learnt quite a bit of this stuff recently.
Right now our build uses the cmake-maven-plugin to run cmake builds inside maven.
We added a prerequisite check to our build to automatically check If all tools are available in usable versions.
All working nicely :-)
So if I don't react to messages here ... I'm not reading the details of all emails here ... please ping me personally ... or project the buildman logo onto the clouds above my home town ... you get to choose ;-)
Chris
Am 07.05.20, 17:39 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Hi all,
if you look in the PLC4X Project we download and build Thrift as part of our build (“with-proxies” profile).
It way quite difficult to setup as thrift required Boost … but now it seems to be working nicely on: Windows, Mac, Linux.
And yes .. I talked to some MyNewt Folks about contacting you folks about a C TSFile implementation.
Cause for example using IoTDBs TSFiles on embedded MyNewt System would be super awesome.
Chris
Von: Julian Feinauer <j....@pragmaticminds.de>
Datum: Donnerstag, 7. Mai 2020 um 17:30
An: Xusheng Zhang <ii...@foxmail.com>, Xiangdong Huang <sa...@gmail.com>, "dev@iotdb.apache.org" <de...@iotdb.apache.org>, Christofer Dutz <ch...@c-ware.de>
Cc: Giorgio Zoppi <gi...@gmail.com>, 乔嘉林 <64...@qq.com>
Betreff: Re: 回复: IoTDB Native
Hi,
forwarding this to the dev list and adding @Christofer Dutz<ma...@c-ware.de>.
He might be able to help you with Thrift... he did all oft hat for PLC4X.
Julian
Von: Xusheng Zhang <ii...@foxmail.com>
Datum: Donnerstag, 7. Mai 2020 um 17:29
An: Julian Feinauer <j....@pragmaticminds.de>, Xiangdong Huang <sa...@gmail.com>
Cc: Giorgio Zoppi <gi...@gmail.com>, 乔嘉林 <64...@qq.com>
Betreff: 回复: IoTDB Native
Hi,
I'm the undergraduate student who is working on to bulid the C++ client for IoTDB. For users who use IoTDB client to insert data or somethings else, instead of directly using API which automatically generated by thrift, we create Session class to package these rpc API so users can operate data easily. Now I have written the Session class(and other related classes) in C++.
But for thrift 0.13.0 and VS 2019, I can't compile thrift successfully to get library(.lib file). I have tell this problem to thrift developers. But they don't have solutions and suggest I use cmake to complie thrift, not use VS2019. I haven't tried to use cmake yet. Just because of this, I haven't test whether the C++ client example demo can run normally. However, if the test passed, I have no idea how to make the compile automatically? (My current thoughts are to write a shell script file so user can get C++ thrift API directly. But whether getting C++ thrift API or using the client later on, the user should have thrift on his own computer. Even need boost to run the client)
Julian and Giorgio, would you mind guiding me how to complie thrift 0.13.0 to get cpp library easily and how to complie C++ client automatically? I'm puzzled.
Best Regards,
Xusheng Zhang
------------------ 原始邮件 ------------------
发件人: "Julian Feinauer"<j....@pragmaticminds.de>;
发送时间: 2020年5月7日(星期四) 晚上10:36
收件人: "Xiangdong Huang"<sa...@gmail.com>;
抄送: "Giorgio Zoppi"<gi...@qq.com>;
主题: Re: IoTDB Native
You need to love this Open Source thing, right? Ist just so awesome : )
J
Von: Xiangdong Huang <sa...@gmail.com>
Datum: Donnerstag, 7. Mai 2020 um 16:36
An: Julian Feinauer <j....@pragmaticminds.de>
Cc: Giorgio Zoppi <gi...@gmail.com>, 重庆大学张旭升 <ii...@foxmail.com>, 乔嘉林 <64...@qq.com>
Betreff: Re: IoTDB Native
Hi,
That could not be better!
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Julian Feinauer <j....@pragmaticminds.de>> 于2020年5月7日周四 下午10:34写道:
Hey,
should we move this tot he dev list?
As I know one Developer from the mynewt project (very senior C developer) who thinks about doing a C implementation.
So I would like to bring him in here as well : )
Julian
Von: Xiangdong Huang <sa...@gmail.com>>
Datum: Donnerstag, 7. Mai 2020 um 16:33
An: Giorgio Zoppi <gi...@gmail.com>>, 重庆大学张旭升 <ii...@foxmail.com>>
Cc: Julian Feinauer <j....@pragmaticminds.de>>, 乔嘉林 <64...@qq.com>>
Betreff: Re: IoTDB Native
Hi Julian,
Giorgio introduces the idea in [1].
I think his initial purpose is to let IoTDB/TsFile more efficient.
But in my opinion, this feature is very interesting not only for the performance but also because if we have a TsFile implementation with C/C++ version. We can read and write TsFile on the edge side more easily. Maybe we can write TsFile and read the data on an embedded device with 16MB or less... Then just sends the TsFile to the cloud to sync data with the cloud.
[1] https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-638
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Xiangdong Huang <sa...@gmail.com>> 于2020年5月7日周四 下午10:29写道:
Hi,
Xusheng Zhang is an undergraduate student from Chongqing University.
Though he is not in the same university as me, I know he is becoming trying to make contribution to IoTDB.
As far as I know, he is more familiar with C++ rather than Java.
Now, I know he is working on compiling the C++ thrift API of IoTDB automatically.
(I mean, after running some scripts, we can get the binary .so file or .dll file directly, even though Booststrap and Thrift lib is not installed. I know PLC4x project can do that ..).
But I do not know the detailed progress as Jialin is mentoring him.
Maybe, you can help him to finish the above task if it is not hard.. And Xusheng, are you interested in this new task?
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
Giorgio Zoppi <gi...@gmail.com>> 于2020年5月7日周四 下午10:23写道:
Ok,
we will provide training if it is needed to Modern C++, aka Modern C++ for Java Programmers.
keep us in touch.
Best Regards,
Giorgio.
Re: 回复: IoTDB Native
Posted by Giorgio Zoppi <gi...@gmail.com>.
On 5/7/20 5:38 PM, Christofer Dutz wrote:
> Hi all,
>
> if you look in the PLC4X Project we download and build Thrift as part of our build (“with-proxies” profile).
> It way quite difficult to setup as thrift required Boost … but now it seems to be working nicely on: Windows, Mac, Linux.
>
> And yes .. I talked to some MyNewt Folks about contacting you folks about a C TSFile implementation.
> Cause for example using IoTDBs TSFiles on embedded MyNewt System would be super awesome.
I missed this. It is cool. We're advancing every day a little bit (it is
difficult), at *https://github.com/giorgiozoppi/iotdb-native*
We hope during the weekend to finish the file part. We would like to use
static polymorphism for example for statistics.
Let's see.
BR,
Giorgio.
Re: 回复: IoTDB Native
Posted by Giorgio Zoppi <gi...@gmail.com>.
Der all,
i added some first issues to proceed, please feel free to schedule in this
sprint.
BR,
Giorgio
Re: 回复: IoTDB Native
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Giorgio,
I have to admit that I don't even know wat Thrift should be used for. I just reacted on someone mentioning having trouble building Thrift and how to integrate that into the build. So the others in this project will definitely be better at answering this question.
Chris
Am 07.05.20, 17:44 schrieb "Giorgio Zoppi" <gi...@gmail.com>:
Dear Christopher,
is there any plan in the future to support Google GRPC, that it more
interop, less dependencies and faster than Thrift.
For our side we have started a porting of TsFile to Modern C++. There is
still nothing, but we can go faster,
Best Regards,
Giorgio
___
[1] https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-638
Re: 回复: IoTDB Native
Posted by Giorgio Zoppi <gi...@gmail.com>.
Dear Christopher,
is there any plan in the future to support Google GRPC, that it more
interop, less dependencies and faster than Thrift.
For our side we have started a porting of TsFile to Modern C++. There is
still nothing, but we can go faster,
Best Regards,
Giorgio
___
[1] https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-638
Re: 回复: IoTDB Native
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,
if you look in the PLC4X Project we download and build Thrift as part of our build (“with-proxies” profile).
It way quite difficult to setup as thrift required Boost … but now it seems to be working nicely on: Windows, Mac, Linux.
And yes .. I talked to some MyNewt Folks about contacting you folks about a C TSFile implementation.
Cause for example using IoTDBs TSFiles on embedded MyNewt System would be super awesome.
Chris
Von: Julian Feinauer <j....@pragmaticminds.de>
Datum: Donnerstag, 7. Mai 2020 um 17:30
An: Xusheng Zhang <ii...@foxmail.com>, Xiangdong Huang <sa...@gmail.com>, "dev@iotdb.apache.org" <de...@iotdb.apache.org>, Christofer Dutz <ch...@c-ware.de>
Cc: Giorgio Zoppi <gi...@gmail.com>, 乔嘉林 <64...@qq.com>
Betreff: Re: 回复: IoTDB Native
Hi,
forwarding this to the dev list and adding @Christofer Dutz<ma...@c-ware.de>.
He might be able to help you with Thrift... he did all oft hat for PLC4X.
Julian
Von: Xusheng Zhang <ii...@foxmail.com>
Datum: Donnerstag, 7. Mai 2020 um 17:29
An: Julian Feinauer <j....@pragmaticminds.de>, Xiangdong Huang <sa...@gmail.com>
Cc: Giorgio Zoppi <gi...@gmail.com>, 乔嘉林 <64...@qq.com>
Betreff: 回复: IoTDB Native
Hi,
I'm the undergraduate student who is working on to bulid the C++ client for IoTDB. For users who use IoTDB client to insert data or somethings else, instead of directly using API which automatically generated by thrift, we create Session class to package these rpc API so users can operate data easily. Now I have written the Session class(and other related classes) in C++.
But for thrift 0.13.0 and VS 2019, I can't compile thrift successfully to get library(.lib file). I have tell this problem to thrift developers. But they don't have solutions and suggest I use cmake to complie thrift, not use VS2019. I haven't tried to use cmake yet. Just because of this, I haven't test whether the C++ client example demo can run normally. However, if the test passed, I have no idea how to make the compile automatically? (My current thoughts are to write a shell script file so user can get C++ thrift API directly. But whether getting C++ thrift API or using the client later on, the user should have thrift on his own computer. Even need boost to run the client)
Julian and Giorgio, would you mind guiding me how to complie thrift 0.13.0 to get cpp library easily and how to complie C++ client automatically? I'm puzzled.
Best Regards,
Xusheng Zhang
------------------ 原始邮件 ------------------
发件人: "Julian Feinauer"<j....@pragmaticminds.de>;
发送时间: 2020年5月7日(星期四) 晚上10:36
收件人: "Xiangdong Huang"<sa...@gmail.com>;
抄送: "Giorgio Zoppi"<gi...@qq.com>;
主题: Re: IoTDB Native
You need to love this Open Source thing, right? Ist just so awesome : )
J
Von: Xiangdong Huang <sa...@gmail.com>
Datum: Donnerstag, 7. Mai 2020 um 16:36
An: Julian Feinauer <j....@pragmaticminds.de>
Cc: Giorgio Zoppi <gi...@gmail.com>, 重庆大学张旭升 <ii...@foxmail.com>, 乔嘉林 <64...@qq.com>
Betreff: Re: IoTDB Native
Hi,
That could not be better!
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Julian Feinauer <j....@pragmaticminds.de>> 于2020年5月7日周四 下午10:34写道:
Hey,
should we move this tot he dev list?
As I know one Developer from the mynewt project (very senior C developer) who thinks about doing a C implementation.
So I would like to bring him in here as well : )
Julian
Von: Xiangdong Huang <sa...@gmail.com>>
Datum: Donnerstag, 7. Mai 2020 um 16:33
An: Giorgio Zoppi <gi...@gmail.com>>, 重庆大学张旭升 <ii...@foxmail.com>>
Cc: Julian Feinauer <j....@pragmaticminds.de>>, 乔嘉林 <64...@qq.com>>
Betreff: Re: IoTDB Native
Hi Julian,
Giorgio introduces the idea in [1].
I think his initial purpose is to let IoTDB/TsFile more efficient.
But in my opinion, this feature is very interesting not only for the performance but also because if we have a TsFile implementation with C/C++ version. We can read and write TsFile on the edge side more easily. Maybe we can write TsFile and read the data on an embedded device with 16MB or less... Then just sends the TsFile to the cloud to sync data with the cloud.
[1] https://issues.apache.org/jira/projects/IOTDB/issues/IOTDB-638
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
黄向东
清华大学 软件学院
Xiangdong Huang <sa...@gmail.com>> 于2020年5月7日周四 下午10:29写道:
Hi,
Xusheng Zhang is an undergraduate student from Chongqing University.
Though he is not in the same university as me, I know he is becoming trying to make contribution to IoTDB.
As far as I know, he is more familiar with C++ rather than Java.
Now, I know he is working on compiling the C++ thrift API of IoTDB automatically.
(I mean, after running some scripts, we can get the binary .so file or .dll file directly, even though Booststrap and Thrift lib is not installed. I know PLC4x project can do that ..).
But I do not know the detailed progress as Jialin is mentoring him.
Maybe, you can help him to finish the above task if it is not hard.. And Xusheng, are you interested in this new task?
Best,
-----------------------------------
Xiangdong Huang
School of Software, Tsinghua University
Giorgio Zoppi <gi...@gmail.com>> 于2020年5月7日周四 下午10:23写道:
Ok,
we will provide training if it is needed to Modern C++, aka Modern C++ for Java Programmers.
keep us in touch.
Best Regards,
Giorgio.