You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Andrzej <bo...@wp.pl> on 2017/09/30 07:58:38 UTC
[HBASE-14850]Will shared object client as task in near future?
It is necessary shared library to fast communicate with external world.
Shared library would encapsulate all HBase possibilities and could be
used in big external project, compiled outside HBase docker with many
other dependecies.
There are two problems:
- smart pointers, which hinders simple pointers values as arguments and
return values
- all code must be PIC, and is problem with libevent.a
[HBASE-14850]How compile simple-client with CMake?
Posted by Andrzej <bo...@wp.pl>.
How is best way to write CMakeLists.txt of simple client with all
dependencies? There ale many modules, files compilated by protoc, etc.
Re: [HBASE-14850]Will shared object client as task in near future?
Posted by Ted Yu <yu...@gmail.com>.
Design and implementation of HBASE-14850 project follows C++ (11/14)
standard.
Please design your client application accordingly.
Cheers
On Sun, Oct 1, 2017 at 6:25 AM, Andrzej <bo...@wp.pl> wrote:
> W dniu 30.09.2017 o 14:51, Ted Yu pisze:
>
>> bq. smart pointers, which hinders simple pointers values as arguments and
>> return values
>>
>> I don't quite get what you meant. Can you elaborate ?
>>
>
> My trial exported function:
>
> Table *soGetTable(Client *client, char *name)
> {
> //name ==> tn
> return client->Table(*tn).get(); //<---free pointer here
> }
>
>
> pointer will be freed because is smart and soGetTable returns bad pointer.
>
Re: [HBASE-14850]Will shared object client as task in near future?
Posted by Andrzej <bo...@wp.pl>.
W dniu 30.09.2017 o 14:51, Ted Yu pisze:
> bq. smart pointers, which hinders simple pointers values as arguments and
> return values
>
> I don't quite get what you meant. Can you elaborate ?
My trial exported function:
Table *soGetTable(Client *client, char *name)
{
//name ==> tn
return client->Table(*tn).get(); //<---free pointer here
}
pointer will be freed because is smart and soGetTable returns bad pointer.
Re: [HBASE-14850]Will shared object client as task in near future?
Posted by Ted Yu <yu...@gmail.com>.
Please watch HBASE-18901 <https://issues.apache.org/jira/browse/HBASE-18901>
.
libHBaseClient.a and libHBaseClient.so can be generated outside docker.
bq. smart pointers, which hinders simple pointers values as arguments and
return values
I don't quite get what you meant. Can you elaborate ?
Thanks
On Sat, Sep 30, 2017 at 12:58 AM, Andrzej <bo...@wp.pl> wrote:
> It is necessary shared library to fast communicate with external world.
> Shared library would encapsulate all HBase possibilities and could be used
> in big external project, compiled outside HBase docker with many other
> dependecies.
> There are two problems:
> - smart pointers, which hinders simple pointers values as arguments and
> return values
> - all code must be PIC, and is problem with libevent.a
>