永发信息网

hbase 需要开放哪些端口

答案:2  悬赏:0  手机版
解决时间 2021-03-16 09:00
hbase 需要开放哪些端口
最佳答案
class HbCli {
public:
// Constructor and Destructor
HbCli(const char *server, const char *port);
~HbCli();

// Util Functions
bool connect();
bool disconnect();
bool reconnect();
inline bool isconnect();

// HBase DDL Functions
bool createTable(const std::string table, const ColVec &columns);
bool deleteTable(const std::string table);
bool tableExists(const std::string table);

// HBase DML Functions
bool putRow(const std::string table, const std::string row, const std::string column, const std::string value);
bool putRowWithColumns(const std::string table, const std::string row, const StrMap columns);
bool putRows(const std::string table, const RowMap rows);
bool getRow(const std::string table, const std::string row, ResVec &rowResult);
bool getRowWithColumns(const std::string table, const std::string row, const StrVec columns, ResVec &rowResult);
bool getRows(const std::string table, const StrVec rows, ResVec &rowResult);
bool getRowsWithColumns(const std::string table, const StrVec rows, const StrVec columns, ResVec &rowResult);
bool delRow(const std::string table, const std::string row);
bool delRowWithColumn(const std::string table, const std::string row, const std::string column);
bool delRowWithColumns(const std::string table, const std::string row, const StrVec columns);
bool scan(const std::string table, const std::string startRow, StrVec columns, ResVec &values);
bool scanWithStop(const std::string table, const std::string startRow, const std::string stopRow, StrVec columns, ResVec &values);

// HBase Util Functions
void printRow(const ResVec &rowResult);

private:
boost::shared_ptr socket;
boost::shared_ptr transport;
boost::shared_ptr protocol;
HbaseClient client;
bool _is_connected;

};
全部回答
hbase的安装包里面有自带zookeeper的。很多系统部署也是直接启动上面的zookeeper。本来也是没有问题的,想想吧,系统里也只有hbase在用zookeeper。先启动zookeeper,再将hbase起来就好了 ? 但是今天遇到了一个很蛋疼的问题。和同事争论了很久。 ? 因为我们是好多hbase集群共用一个zookeeper的,其中一个集群需要从hbase 0.90.2 升级到hbase 0.92上,自然,包也要更新。但是其中一台regionserver上面同时也有跑zookeeper,而zookeeper还是用hbase 0.90.2 自带的zookeeper在跑。 ? 现在好了,升级一个regionserver,连着zookeeper也要受到牵连,看来必须要重启,不然,jar包替换掉,可能会影响到zk正在跑的经常。但是重启zk毕竟对正在连接这个zk的client端会有短暂的影响。 ?
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
优惠群靠谱吗
小鸟怕什么颜色?
华艺美术工作室地址在哪,我要去那里办事
同房后有血和精液一起流出来是什么原因
喜欢自我表现的人的性格
做试管移植过后能不能吃猕猴桃
相对模拟彩色电视机而言,数字彩色电视机属于(
成都川味饭店怎么去啊,有知道地址的么
这三只蛇都是什么蛇啊?江西九江的蛇
老年人没有饥饿感,反应慢,口齿不清怎么办
王硕士臭豆腐这个地址在什么地方,我要处理点
英雄杀武将有哪些?
一尺九的腰围是什么样子的?
意味深( )( )风得意在括号里填上地名成为两个
明光三中2015至2016初一期中测试成绩表
推荐资讯
九阴真经里的武当山现实的武当山的对比 给图
汽车加装电子调音器好吗
么里信用社地址在什么地方,想过去办事,
请问怎么免费下载百度文档
古之立大事者,不惟有超世之材,亦必有坚忍不
刑事拘留,为什么还要没有发通知书?
浦城县南平宏达家具城在哪里啊,我有事要去这
开 打印店 必需要哪些条件
友谊南一巷地址在什么地方,想过去办事
开机后连网显示:正在连接,通过WAN Miniport
江陵县熊河镇花彭村民委员会在什么地方啊,我
淘宝买彩妆类美容护肤怕靠谱吗?尤其是买彩妆
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?