You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Andrzej <bo...@wp.pl> on 2017/08/29 16:11:32 UTC
How send/receive (if need) native client messages?
I try code:
hbase::pb::GetTableNamesRequest getTableNamesRequest;
//<---- how send request?
hbase::pb::GetTableNamesResponse getTableNamesResponse;
//<---- how receive response?
int n = getTableNamesResponse.table_names_size();
std::cout << n << std::endl; // <------ is 0
for (int i=0; i<n; i++)
{
::hbase::pb::TableName const name =
getTableNamesResponse.table_names(i);
bool has = name.has_namespace_();
std::cout << has << std::endl;
}
or is another way to list table names?
Re: How send/receive (if need) native client messages?
Posted by Sean Busbey <bu...@apache.org>.
+dev@hbase
-user@hbase
please move this discussion to the dev list.
On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu <yu...@gmail.com> wrote:
> GetTableNames API hasn't been implemented yet.
>
> If you have bandwidth, you're welcome to contribute to HBASE-14850 (as
> subtask).
>
> On Tue, Aug 29, 2017 at 9:11 AM, Andrzej <bo...@wp.pl> wrote:
>
>> I try code:
>> hbase::pb::GetTableNamesRequest getTableNamesRequest;
>> //<---- how send request?
>> hbase::pb::GetTableNamesResponse getTableNamesResponse;
>> //<---- how receive response?
>> int n = getTableNamesResponse.table_names_size();
>> std::cout << n << std::endl; // <------ is 0
>> for (int i=0; i<n; i++)
>> {
>> ::hbase::pb::TableName const name =
>> getTableNamesResponse.table_names(i);
>> bool has = name.has_namespace_();
>> std::cout << has << std::endl;
>> }
>>
>> or is another way to list table names?
>>
Re: How send/receive (if need) native client messages?
Posted by Sean Busbey <bu...@apache.org>.
+dev@hbase
-user@hbase
please move this discussion to the dev list.
On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu <yu...@gmail.com> wrote:
> GetTableNames API hasn't been implemented yet.
>
> If you have bandwidth, you're welcome to contribute to HBASE-14850 (as
> subtask).
>
> On Tue, Aug 29, 2017 at 9:11 AM, Andrzej <bo...@wp.pl> wrote:
>
>> I try code:
>> hbase::pb::GetTableNamesRequest getTableNamesRequest;
>> //<---- how send request?
>> hbase::pb::GetTableNamesResponse getTableNamesResponse;
>> //<---- how receive response?
>> int n = getTableNamesResponse.table_names_size();
>> std::cout << n << std::endl; // <------ is 0
>> for (int i=0; i<n; i++)
>> {
>> ::hbase::pb::TableName const name =
>> getTableNamesResponse.table_names(i);
>> bool has = name.has_namespace_();
>> std::cout << has << std::endl;
>> }
>>
>> or is another way to list table names?
>>
Re: How send/receive (if need) native client messages?
Posted by Ted Yu <yu...@gmail.com>.
GetTableNames API hasn't been implemented yet.
If you have bandwidth, you're welcome to contribute to HBASE-14850 (as
subtask).
On Tue, Aug 29, 2017 at 9:11 AM, Andrzej <bo...@wp.pl> wrote:
> I try code:
> hbase::pb::GetTableNamesRequest getTableNamesRequest;
> //<---- how send request?
> hbase::pb::GetTableNamesResponse getTableNamesResponse;
> //<---- how receive response?
> int n = getTableNamesResponse.table_names_size();
> std::cout << n << std::endl; // <------ is 0
> for (int i=0; i<n; i++)
> {
> ::hbase::pb::TableName const name =
> getTableNamesResponse.table_names(i);
> bool has = name.has_namespace_();
> std::cout << has << std::endl;
> }
>
> or is another way to list table names?
>