https://zookeeper.apache.org/doc/r3.4.13/zookeeperProgrammers.html#Ephemeral+Nodes
Ephemeral Nodes
ZooKeeper also has the notion of ephemeral nodes. These znodes exists as long as the session that created the znode is active. When the session ends the znode is deleted. Because of this behavior ephemeral znodes are not allowed to have children.
不可以,因为仅当创建临时节点的会话存在时,该节点才存在,会话失效后临时节点则被自动删除,基于这种特性,zookeeper 在设计时不允许临时节点拥有子节点。