Guest User

Untitled

a guest
Sep 29th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #include <folly/Logging.h>
  2. #include <folly/Random.h>
  3. #include <gflags/gflags.h>
  4.  
  5. #include "hbase/client/async-table-result-scanner.h"
  6. #include "hbase/client/client.h"
  7. #include "hbase/client/get.h"
  8. #include "hbase/client/hbase-configuration-loader.h"
  9. #include "hbase/client/put.h"
  10. #include "hbase/client/scan.h"
  11. #include "hbase/client/table.h"
  12. #include "hbase/connection/rpc-client.h"
  13. #include "hbase/serde/server-name.h"
  14. #include "hbase/serde/table-name.h"
  15. #include "hbase/utils/time-util.h"
  16.  
  17. using hbase::Client;
  18. using hbase::Configuration;
  19.  
  20. void hbMakeEnvir(std::string strZookeeper, uint16_t nThreads) {
  21. std::shared_ptr<Configuration> conf;
  22. conf = std::make_shared<Configuration>();
  23. conf->Set("hbase.zookeeper.quorum", strZookeeper);
  24. conf->SetInt("hbase.client.cpu.thread.pool.size", nThreads);
  25. auto client = std::make_unique<Client>(*conf);
  26. }
  27. int main(int argc, char *argv[]) {
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment