[
https://issues.apache.org/jira/browse/ZOOKEEPER-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xiaoshuang LU updated ZOOKEEPER-2780:
-------------------------------------
Description:
{code}
public static void main(String[] stringArray) {
try {
// a, b, and c don't exit.
// Can I create them with the following ZooKeeper object?
ZooKeeper zooKeeper =
new ZooKeeper(
"address1:port1,address2:port2,address3:port3,address4:port4,address5:port5/a/b/c",
60000,
null);
zooKeeper.create("/d", null, ZooDefs.Ids.OPEN_ACL_UNSAFE,
CreateMode.PERSISTENT);
zooKeeper.close();
} catch (Exception e) {
LOGGER.error("", e);
}
}
{code}
was:
{code}
public static void main(String[] stringArray) {
try {
// a, b, and c don't exit. Can I create them by the following
ZooKeeper object?
ZooKeeper zooKeeper =
new ZooKeeper(
"address1:port1,address2:port2,address3:port3,address4:port4,address5:port5/a/b/c",
60000,
null);
zooKeeper.create("/d", null, ZooDefs.Ids.OPEN_ACL_UNSAFE,
CreateMode.PERSISTENT);
zooKeeper.close();
} catch (Exception e) {
LOGGER.error("", e);
}
}
{code}
> if directories of connectString don't exist, then...
> ----------------------------------------------------
>
> Key: ZOOKEEPER-2780
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2780
> Project: ZooKeeper
> Issue Type: Improvement
> Components: java client
> Reporter: Xiaoshuang LU
>
> {code}
> public static void main(String[] stringArray) {
> try {
> // a, b, and c don't exit.
> // Can I create them with the following ZooKeeper object?
> ZooKeeper zooKeeper =
> new ZooKeeper(
>
> "address1:port1,address2:port2,address3:port3,address4:port4,address5:port5/a/b/c",
> 60000,
> null);
> zooKeeper.create("/d", null, ZooDefs.Ids.OPEN_ACL_UNSAFE,
> CreateMode.PERSISTENT);
> zooKeeper.close();
> } catch (Exception e) {
> LOGGER.error("", e);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)