zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaoshuang LU (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-2780) if directories of connectString don't exist, then...
Date Thu, 11 May 2017 09:18:04 GMT

     [ 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 {
            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.warn("", e);
        }
    }
{code}

  was:
{code}

{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 {
>             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.warn("", e);
>         }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message