首页 \ 问答 \ 如何修复Hbase的Zookeeper错误(How to fix the Zookeeper error for Hbase)

如何修复Hbase的Zookeeper错误(How to fix the Zookeeper error for Hbase)

主操作系统是Windows 7 64位。 使用VM播放器创建两个虚拟机CentOS 5.6系统。 网络连接是桥接。 我在两个CentOS系统上安装了Hbase,一个是master,另一个是slave。 当我进入shell时,运行状态'details'

来自master的错误是

zookeeper.ZKConfig:在zoo.cfg中找不到有效的仲裁服务器错误:org.apache.hadoop.hbase.ZooKeeperConnectionException:错误阻止HBase连接到ZooKeeper

奴隶的错误是

错误:org.apache.hadoop.hbase.ZooKeeperConnectionException:HBase能够连接到ZooKeeper,但连接立即关闭。 这可能表示服务器连接太多(默认为30)。 考虑检查ZK服务器日志中是否存在该错误,然后确保尽可能多地重用HBaseConfiguration。 有关更多信息,请参阅HTable的javadoc。

请给我一些建议。 非常感谢


Main OS is windows 7 64bit. Using VM player to create two vm CentOS 5.6 system. The net connection is bridge. I installed Hbase on both of the CentOS system, one is master, the other is slave. When I enter the shell, and run status 'details'.

The error from master is

zookeeper.ZKConfig: no valid quorum servers found in zoo.cfg ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: An error is preventing HBase from connecting to ZooKeeper

And the error from slave is

ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able to connect to ZooKeeper but the connection closes immediately. This could be a sign that the server has too many connections (30 is the default). Consider inspecting your ZK server logs for that error and then make sure you are reusing HBaseConfiguration as often as you can. See HTable's javadoc for more information.

Please give me some suggestion. Thanks a lot


原文:https://stackoverflow.com/questions/8055973
更新时间:2022-02-16 19:02

最满意答案

您增加了Oracle上的最大会话数,但没有增加连接池的最大大小。 例外是告诉您池已用尽。 要么找到保持连接打开的内容并尽快释放它们,要么增加池中最大活动连接的数量。


You increased max sessions on Oracle, but you didn't increase the max size of your connection pool. The exception is telling you that your pool is exhausted. Either find what's holding connections open and get them released sooner, or increase the number of max active connections in the pool.

相关问答

更多
  • 你忘了告诉你的命令你的联系...... 见下面的答案...... cmd = New MySqlCommand("SELECT password FROM accounts WHERE username = @p1", con) 另外,我强烈建议将它包装在using语句中,这样对象就会被处理掉。 You forgot to tell your command your connection... See below for answer... cmd = New MySqlCommand("SELEC ...
  • 您可以尝试这个BlackBerry KnowledgeBase文章: 什么是 - 建立HTTP或套接字连接的不同方法 You try this BlackBerry KnowledgeBase article: What Is - Different ways to make an HTTP or socket connection
  • 你可以试试这个: http : //php.net/manual/en/function.fsockopen.php You can try the example from this link: \n"; } else { $out = "GET / HTTP/1.1\r\n"; ...
  • 您增加了Oracle上的最大会话数,但没有增加连接池的最大大小。 例外是告诉您池已用尽。 要么找到保持连接打开的内容并尽快释放它们,要么增加池中最大活动连接的数量。 You increased max sessions on Oracle, but you didn't increase the max size of your connection pool. The exception is telling you that your pool is exhausted. Either find wha ...
  • 有一个函数DBI::dbIsValid ,它由odbc导入。 这提供了一个返回逻辑的通用测试。 con <- dbConnect(RSQLite::SQLite(), ":memory:") dbIsValid(con) # TRUE dbDisconnect(con) dbIsValid(con) # FALSE 要重新连接断开或清除的连接,可以根据此值有条件地连接,例如: if (!dbIsValid(con)) { con <- dbConnect(RSQLite::SQLi ...
  • 您可以使用tryCatch ,如果成功则返回表达式的值,如果有error则返回error参数的值。 看?tryCatch 。 此示例查找一堆URL并下载它们。 如果成功, tryCatch将返回readlines的结果,否则返回NULL 。 如果结果是NULL我们只是next()到循环的下一部分。 urls <- c('http://google.com', 'http://nonexistent.jfkldasf', 'http://stackoverflow.com') for (u in urls) ...
  • 每次打开和关闭连接时,您都在使用资源。 想象一下,你每秒有100个请求。 每次执行2次操作。 打开和关闭连接。 响应时间增加。 最好使用池连接。 因此,您有5个打开的连接等待查询。 当连接未使用时,连接将返回池并等待另一个请求。 或者您可以尝试持久连接。 两者都有利有弊。 但永远不要,永远不要打开和关闭每个请求的连接。 看看这个回复 MySQL - 持久连接与连接池 Each time you open and close a connection you are using resources. Imag ...
  • 从连接字符串看,我相信您正在使用本地数据库。 将您的数据库添加到visual studio-server资源管理器(在数据连接下),然后连接它。 然后尝试调试代码。 Looking from the connection string, i believe you are using a Local DB . Add your DB to the visual studio-server explorer( under data connections) and then connect it. Then ...
  • 您可能会发现以下链接有用。 他们指出了微软实施数据访问层的最佳实践: 数据层准则: http : //msdn.microsoft.com/en-us/library/ee658127.aspx 数据组件设计: http : //msdn.microsoft.com/en-us/library/ee658119.aspx 关于连接专门: http : //msdn.microsoft.com/en-us/library/ee658127.aspx#Connections 我同意史蒂夫的观点,在大多数情况下, ...
  • 我无法在Windows 7 64位上的R 2.11.1 32位上重现它。 对于这类事情,请提供有关您系统的更多信息(参见例如?R.version , ?Sys.info ) 内存比磁盘访问快很多。 1500行在内存中几乎可以管理,并且可以一次写入文件。 如果是不同的数据集,请添加一个额外的因子变量来指示集合(set1到set50)。 您可以在一个数据帧中轻松管理所有数据,避免多次访问磁盘。 如果它真的是50个文件,这段代码说明了Dirk的宝贵建议: for(i in 1:50){ ... f ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)