You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by 杭研-闵涛 <hz...@corp.netease.com> on 2020/12/16 11:19:30 UTC

failed building hbase C++ native client

Hi all, We are trying to use a C++ hbase client to access hbase service. We found https://github.com/apache/hbase-native-client may be what we needs. After prepared the building environment and successfully excuted ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
 
Error info :
[  4%] Built target boost
[  4%] Built target ZooKeeper
[  6%] Built target facebook-folly-proj
[  8%] Built target facebook-wangle-proj
[  8%] Building CXX object CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
[  9%] Building CXX object CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
/usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27: fatal error: utils/version.h: No such file or directory
compilation terminated.
CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o' failed
make[2]: *** [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
CMakeFiles/Makefile2:107: recipe for target 'CMakeFiles/hbaseclient-static.dir/all' failed
make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27: fatal error: utils/version.h: No such file or directory
compilation terminated.
CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o' failed
make[2]: *** [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
CMakeFiles/Makefile2:599: recipe for target 'CMakeFiles/hbaseclient-shared.dir/all' failed
make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
 According to the error info, It seems forget to put utils/version.h into including directories. I tried to find the version.h but failed. Have anyone 
successfully built this C++ client library? Any advice would be appreciated.
 
Thanks,
 
Mintao


Re: failed building hbase C++ native client

Posted by tao min <mi...@gmail.com>.
sorry i forgot to subscribe the mailing list.  I found my HBase outdated and have not been applied that commit that fix the problem.After updating HBase,  successfully build native client . thanks for your help!
 In addition, could this native client been used to access to HBase 1.x cluster ?
On 2020/12/16 17:59:08, Bharath Vissapragada <bh...@apache.org> wrote: 
> What commit of HBase and native-client are you building? I fixed that
> problem here
> <https://github.com/apache/hbase/commit/fe1fc25fba52b6b07454b4e1b6dc9afe533ecbbe>
> .
> 
> On Wed, Dec 16, 2020 at 9:13 AM 杭研-闵涛 <hz...@corp.netease.com> wrote:
> 
> > Hi all, We are trying to use a C++ hbase client to access hbase service.
> > We found https://github.com/apache/hbase-native-client may be what we
> > needs. After prepared the building environment and successfully excuted
> > ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
> >
> > Error info :
> > [  4%] Built target boost
> > [  4%] Built target ZooKeeper
> > [  6%] Built target facebook-folly-proj
> > [  8%] Built target facebook-wangle-proj
> > [  8%] Building CXX object
> > CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
> > [  9%] Building CXX object
> > CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> > CMakeFiles/Makefile2:107: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> > CMakeFiles/Makefile2:599: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
> > Makefile:138: recipe for target 'all' failed
> > make: *** [all] Error 2
> >  According to the error info, It seems forget to put utils/version.h into
> > including directories. I tried to find the version.h but failed. Have
> > anyone
> > successfully built this C++ client library? Any advice would be
> > appreciated.
> >
> > Thanks,
> >
> > Mintao
> >
> >
> 

Re: failed building hbase C++ native client

Posted by Bharath Vissapragada <bh...@apache.org>.
Right, you have to build it (unfortunately) for the HBase version you need.
As Sean already mentioned, that specific project has not been actively
maintained for a long time. There are no releases and it is very likely
that you can run into issues. If you interested in submitting bug fixes /
patches / code-reviews let me know, happy to help.

On Fri, Dec 18, 2020 at 6:15 PM tao min <mi...@gmail.com> wrote:

> sorry for replying late. I checked HBase, and found it has not been
> applied the commit that fix the problem.  After pull the lastest commit of
> master branch , i successfully build the hbase native client, Thanks for
> the help !
> By the way, Should i build a different hbase-native-client for HBase-1.x
> Cluster?
>
> On 2020/12/16 17:59:08, Bharath Vissapragada <bh...@apache.org> wrote:
> > What commit of HBase and native-client are you building? I fixed that
> > problem here
> > <
> https://github.com/apache/hbase/commit/fe1fc25fba52b6b07454b4e1b6dc9afe533ecbbe
> >
> > .
> >
> > On Wed, Dec 16, 2020 at 9:13 AM 杭研-闵涛 <hz...@corp.netease.com> wrote:
> >
> > > Hi all, We are trying to use a C++ hbase client to access hbase
> service.
> > > We found https://github.com/apache/hbase-native-client may be what we
> > > needs. After prepared the building environment and successfully excuted
> > > ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
> > >
> > > Error info :
> > > [  4%] Built target boost
> > > [  4%] Built target ZooKeeper
> > > [  6%] Built target facebook-folly-proj
> > > [  8%] Built target facebook-wangle-proj
> > > [  8%] Building CXX object
> > > CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
> > > [  9%] Building CXX object
> > > CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
> > > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > > fatal error: utils/version.h: No such file or directory
> > > compilation terminated.
> > > CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target
> > > 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o'
> failed
> > > make[2]: ***
> > > [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o]
> Error 1
> > > CMakeFiles/Makefile2:107: recipe for target
> > > 'CMakeFiles/hbaseclient-static.dir/all' failed
> > > make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
> > > make[1]: *** Waiting for unfinished jobs....
> > > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > > fatal error: utils/version.h: No such file or directory
> > > compilation terminated.
> > > CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target
> > > 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o'
> failed
> > > make[2]: ***
> > > [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o]
> Error 1
> > > CMakeFiles/Makefile2:599: recipe for target
> > > 'CMakeFiles/hbaseclient-shared.dir/all' failed
> > > make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
> > > Makefile:138: recipe for target 'all' failed
> > > make: *** [all] Error 2
> > >  According to the error info, It seems forget to put utils/version.h
> into
> > > including directories. I tried to find the version.h but failed. Have
> > > anyone
> > > successfully built this C++ client library? Any advice would be
> > > appreciated.
> > >
> > > Thanks,
> > >
> > > Mintao
> > >
> > >
> >
>

Re: failed building hbase C++ native client

Posted by tao min <mi...@gmail.com>.
sorry for replying late. I checked HBase, and found it has not been applied the commit that fix the problem.  After pull the lastest commit of master branch , i successfully build the hbase native client, Thanks for the help !
By the way, Should i build a different hbase-native-client for HBase-1.x Cluster? 

On 2020/12/16 17:59:08, Bharath Vissapragada <bh...@apache.org> wrote: 
> What commit of HBase and native-client are you building? I fixed that
> problem here
> <https://github.com/apache/hbase/commit/fe1fc25fba52b6b07454b4e1b6dc9afe533ecbbe>
> .
> 
> On Wed, Dec 16, 2020 at 9:13 AM 杭研-闵涛 <hz...@corp.netease.com> wrote:
> 
> > Hi all, We are trying to use a C++ hbase client to access hbase service.
> > We found https://github.com/apache/hbase-native-client may be what we
> > needs. After prepared the building environment and successfully excuted
> > ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
> >
> > Error info :
> > [  4%] Built target boost
> > [  4%] Built target ZooKeeper
> > [  6%] Built target facebook-folly-proj
> > [  8%] Built target facebook-wangle-proj
> > [  8%] Building CXX object
> > CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
> > [  9%] Building CXX object
> > CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> > CMakeFiles/Makefile2:107: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> > CMakeFiles/Makefile2:599: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
> > Makefile:138: recipe for target 'all' failed
> > make: *** [all] Error 2
> >  According to the error info, It seems forget to put utils/version.h into
> > including directories. I tried to find the version.h but failed. Have
> > anyone
> > successfully built this C++ client library? Any advice would be
> > appreciated.
> >
> > Thanks,
> >
> > Mintao
> >
> >
> 

Re: failed building hbase C++ native client

Posted by Sean Busbey <bu...@apache.org>.
Please note that the Apache HBase community has not yet released a
downstream usable hbase-native-client.

If you would like to work with us towards making it ready please join the
dev@hbase mailing list and bring issues up there.



On Wed, Dec 16, 2020, 11:59 Bharath Vissapragada <bh...@apache.org>
wrote:

> What commit of HBase and native-client are you building? I fixed that
> problem here
> <
> https://github.com/apache/hbase/commit/fe1fc25fba52b6b07454b4e1b6dc9afe533ecbbe
> >
> .
>
> On Wed, Dec 16, 2020 at 9:13 AM 杭研-闵涛 <hz...@corp.netease.com> wrote:
>
> > Hi all, We are trying to use a C++ hbase client to access hbase service.
> > We found https://github.com/apache/hbase-native-client may be what we
> > needs. After prepared the building environment and successfully excuted
> > ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
> >
> > Error info :
> > [  4%] Built target boost
> > [  4%] Built target ZooKeeper
> > [  6%] Built target facebook-folly-proj
> > [  8%] Built target facebook-wangle-proj
> > [  8%] Building CXX object
> > CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
> > [  9%] Building CXX object
> > CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o] Error
> 1
> > CMakeFiles/Makefile2:107: recipe for target
> > 'CMakeFiles/hbaseclient-static.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
> > make[1]: *** Waiting for unfinished jobs....
> > /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> > fatal error: utils/version.h: No such file or directory
> > compilation terminated.
> > CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o' failed
> > make[2]: ***
> > [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o] Error
> 1
> > CMakeFiles/Makefile2:599: recipe for target
> > 'CMakeFiles/hbaseclient-shared.dir/all' failed
> > make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
> > Makefile:138: recipe for target 'all' failed
> > make: *** [all] Error 2
> >  According to the error info, It seems forget to put utils/version.h into
> > including directories. I tried to find the version.h but failed. Have
> > anyone
> > successfully built this C++ client library? Any advice would be
> > appreciated.
> >
> > Thanks,
> >
> > Mintao
> >
> >
>

Re: failed building hbase C++ native client

Posted by Bharath Vissapragada <bh...@apache.org>.
What commit of HBase and native-client are you building? I fixed that
problem here
<https://github.com/apache/hbase/commit/fe1fc25fba52b6b07454b4e1b6dc9afe533ecbbe>
.

On Wed, Dec 16, 2020 at 9:13 AM 杭研-闵涛 <hz...@corp.netease.com> wrote:

> Hi all, We are trying to use a C++ hbase client to access hbase service.
> We found https://github.com/apache/hbase-native-client may be what we
> needs. After prepared the building environment and successfully excuted
> ‘cmake  .’ ,  the error occurred during processing ‘make -j’.
>
> Error info :
> [  4%] Built target boost
> [  4%] Built target ZooKeeper
> [  6%] Built target facebook-folly-proj
> [  8%] Built target facebook-wangle-proj
> [  8%] Building CXX object
> CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o
> [  9%] Building CXX object
> CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o
> /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> fatal error: utils/version.h: No such file or directory
> compilation terminated.
> CMakeFiles/hbaseclient-static.dir/build.make:2254: recipe for target
> 'CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o' failed
> make[2]: ***
> [CMakeFiles/hbaseclient-static.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> CMakeFiles/Makefile2:107: recipe for target
> 'CMakeFiles/hbaseclient-static.dir/all' failed
> make[1]: *** [CMakeFiles/hbaseclient-static.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> /usr/src/hbase/hbase-native-client/src/hbase/serde/rpc-serde.cc:32:27:
> fatal error: utils/version.h: No such file or directory
> compilation terminated.
> CMakeFiles/hbaseclient-shared.dir/build.make:2254: recipe for target
> 'CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o' failed
> make[2]: ***
> [CMakeFiles/hbaseclient-shared.dir/src/hbase/serde/rpc-serde.cc.o] Error 1
> CMakeFiles/Makefile2:599: recipe for target
> 'CMakeFiles/hbaseclient-shared.dir/all' failed
> make[1]: *** [CMakeFiles/hbaseclient-shared.dir/all] Error 2
> Makefile:138: recipe for target 'all' failed
> make: *** [all] Error 2
>  According to the error info, It seems forget to put utils/version.h into
> including directories. I tried to find the version.h but failed. Have
> anyone
> successfully built this C++ client library? Any advice would be
> appreciated.
>
> Thanks,
>
> Mintao
>
>