Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <folly/Logging.h>
- #include <folly/Random.h>
- #include <gflags/gflags.h>
- #include "hbase/client/async-table-result-scanner.h"
- #include "hbase/client/client.h"
- #include "hbase/client/get.h"
- #include "hbase/client/hbase-configuration-loader.h"
- #include "hbase/client/put.h"
- #include "hbase/client/scan.h"
- #include "hbase/client/table.h"
- #include "hbase/connection/rpc-client.h"
- #include "hbase/serde/server-name.h"
- #include "hbase/serde/table-name.h"
- #include "hbase/utils/time-util.h"
- using hbase::Client;
- using hbase::Configuration;
- void hbMakeEnvir(std::string strZookeeper, uint16_t nThreads) {
- std::shared_ptr<Configuration> conf;
- conf = std::make_shared<Configuration>();
- conf->Set("hbase.zookeeper.quorum", strZookeeper);
- conf->SetInt("hbase.client.cpu.thread.pool.size", nThreads);
- auto client = std::make_unique<Client>(*conf);
- }
- int main(int argc, char *argv[]) {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment