+dev@hbase
-user@hbase
please move this discussion to the dev list.
On Tue, Aug 29, 2017 at 11:22 AM, Ted Yu <yuzhihong@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 <borucki_andrzej@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?
>>
|