Re: [HBASE-14850] How build simple-client after changes?

2017-09-24 Thread Ted Yu
If you continue using buck, you can refer to the cxx_binary goal of
simple-client in src/hbase/client/BUCK for your own app.

You can also use make. See Makefile under hbase-native-client

Cheers

On Sun, Sep 24, 2017 at 10:06 AM, Andrzej  wrote:

> W dniu 24.09.2017 o 18:43, Ted Yu pisze:
>
>> For building simple-client, you can use:
>> buck build src/hbase/client:simple-client
>>
>
> Ok, this built simple-client
>
>>
>> For #2, you'd better not mix your code inside native client library.
>>
>
> What is best way use HBase client code in my binary?
> The best, would be my code in separate folder outside all 
> but is many dependencies as Folly and other and I must build with Docker.
> Files for start docker is :/hbase-native-cl
> ient/bin/start-docker.sh
> Unless I good thing write own start-docker.sh outside hbase-native-client
> and outside whole HBASE-14850 based on original start-docker.sh?
>


Re: [HBASE-14850] How build simple-client after changes?

2017-09-24 Thread Andrzej

W dniu 24.09.2017 o 18:43, Ted Yu pisze:

For building simple-client, you can use:
buck build src/hbase/client:simple-client


Ok, this built simple-client


For #2, you'd better not mix your code inside native client library.


What is best way use HBase client code in my binary?
The best, would be my code in separate folder outside all  
but is many dependencies as Folly and other and I must build with Docker.
Files for start docker is 
:/hbase-native-client/bin/start-docker.sh
Unless I good thing write own start-docker.sh outside 
hbase-native-client and outside whole HBASE-14850 based on original 
start-docker.sh?


Re: [HBASE-14850] How build simple-client after changes?

2017-09-24 Thread Ted Yu
You should run buck under hbase-native-client .
Source files are now under hbase-native-client/src/hbase/ directory.

For building simple-client, you can use:

buck build src/hbase/client:simple-client

For #2, you'd better not mix your code inside native client library.

hbase-native-client/third-party/BUCK is for holding third party lib.

On Sun, Sep 24, 2017 at 9:29 AM, Andrzej  wrote:

> I build with Maven (after installing Java Oracle 8) and do time consuming
> first time start `sudo bin/start-docker.sh`
> In file /hbase-native-client/BUILDING.md is:
> buck build //core:core
> buck test --all
> buck build //core:simple-client
>
> But directories structure changes.
> Previously was BUCK in core directory.
> Now are:
> /hbase-native-client/src/hbase/client/BUCK
> /hbase-native-client/include/hbase/client/BUCK
> 1.
> In which directory do "buck build"? and "buck build //core:core" is bad?
>
> 2.In which directory write my own files?
> is /hbase-native-client/third-party/
> and BUCK.
> Previously in BUCK was about my files:
> cxx_binary(
> name="fastnative",
> srcs=[
> "fastnative.cpp",
> "HBaseSession.cpp",
> "Session.cpp",
> ],
> compiler_flags=['-w'],
> deps=[":core", "//connection:connection"],)
>
> I must apply it in BUCK in third-party/ folder?
>