php连接zookeeper 报Uncaught exception 'ZookeeperNoNodeException' with message 'no node'
来源:互联网 发布:虚荣英雄数据 编辑:程序博客网 时间:2024/06/11 18:01
作者在php连接zookeeper的时候,通过create命令创建节点,
<?php$zookeeper = new Zookeeper('locahost:2181');$aclArray = array( array( 'perms' => Zookeeper::PERM_ALL, 'scheme' => 'world', 'id' => 'anyone', ));$path = '/path/to/newnode';$realPath = $zookeeper->create($path, null, $aclArray);if ($realPath) echo $realPath;else echo 'ERR';?>在创建/path/to/newnode的时候报错Uncaught exception 'ZookeeperNoNodeException' with message 'no node',通过在git上找到了例子
/**
* Equivalent of “mkdir -p” on ZooKeeper
*
* @param string
*
* @return bool
*/
public function makePath(
if (!
}
}
}
“`
原来要创建多层次的node,需要进行递归创建。
阅读全文
0 0
- php连接zookeeper 报Uncaught exception 'ZookeeperNoNodeException' with message 'no node'
- PDO处理事务部分的报错 :Uncaught exception 'PDOException' with message There is no active transaction
- Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] No such file or directory解决方法
- PHP + mysql 遇到Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error
- BUG排查:PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [1040] Too ma
- Uncaught exception 'Apache_Solr_HttpTransportException' with message ''0' Status: Communication
- thread exiting with uncaught exception: NO stack trace
- php 导出 Excel 报错 exception 'PHPExcel_Calculation_Exception' with message
- 报错 Exception 'yii\db\Exception' with message 'SQLSTATE[HY000]
- Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to
- smarty出现“Uncaught exception ‘SmartyCompilerException’ with message ‘Syntax Error in template”错误时的解决办
- 关于mongodb的Uncaught exception 'MongoCursorException' with message 'couldn't get response header'异常!
- Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'Multibyte function overloading in
- Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away'
- thread exiting with uncaught exception
- thread exiting with uncaught exception
- Mac下Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No such file or directory'
- Mac下Exception 'yii\db\Exception' with message 'SQLSTATE[HY000] [2002] No such file or directory'
- JAVA点击登录闪退
- AJAX-前后端开发的纽带
- kotlin和java的区别
- Python学习-socket实现简单ssh(主要内容)
- Codeforces
- php连接zookeeper 报Uncaught exception 'ZookeeperNoNodeException' with message 'no node'
- 微信小程序POST请求参数传递不到后台解决方案
- 运算符优先级
- K-means聚类算法
- 二叉树的镜像
- spring-test几种用法
- Android自定义视图(二)——onLayout源码 流程 思路详解
- 判断是否是Double
- 命名空间using namespace的简单理解