Re: How to determine if the node is PERSISTENT & SEQUENTIAL

2016-11-30 Thread Xie Gang
Hi Edward,

I think the key problem is not making it up to date, but copy the
information of the sequence. Thinking about the following example:
we say source have seq node /test5.
Then I copy it to destination cluster, but create a non-seq node instead.
After some while, the other application switch to destination cluster, and
continue create seq node /test.
When the seq no is 5, it will fail when create the node and the application
may be blocked or failed.

Since I could not know if the node is seq one only according to the api, I
could not create a seq node in destination cluster.

Thanks,
Gang

On Thu, Dec 1, 2016 at 2:56 AM, Michael Han  wrote:

> The path of ephemeral nodes has a pattern in their suffixes (10 digits with
> 0 (zero) padding), see
> https://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#
> Ephemeral+Nodes
>
> So you could do a pattern matching and skip those nodes, unless your client
> applications deliberately create persistent but none sequential, or
> ephemeral nodes with similar pattern.
>
> On Wed, Nov 30, 2016 at 3:39 AM, Edward Ribeiro 
> wrote:
>
> > Hi,
> >
> > I don't know how stable and up to date it is, but did you take a look at
> > Guano? https://github.com/d2fn/guano
> >
> > Edward
> >
> > Em 30 de nov de 2016 9:10 AM, "Xie Gang" 
> escreveu:
> >
> > > Hi,
> > >
> > > I need to copy some zk nodes to some other place. But I need to skip
> > those
> > > sequence nodes. It seems that we could not get such information from
> the
> > > client API. Is there any way to do this?
> > >
> > > Thanks,
> > >
> > >
> > > --
> > > Xie Gang
> > >
> >
>
>
>
> --
> Cheers
> Michael.
>



-- 
Xie Gang


How to determine if the node is PERSISTENT & SEQUENTIAL

2016-11-30 Thread Xie Gang
Hi,

I need to copy some zk nodes to some other place. But I need to skip those
sequence nodes. It seems that we could not get such information from the
client API. Is there any way to do this?

Thanks,


-- 
Xie Gang


How to use Kerberose auth with client API

2016-11-29 Thread Xie Gang
Hi,

I'm writing a program with Zookeeper client API. But I need kerberose auth
to access the server. How to enable it on client program? Any guide here?
thanks in advance.

-- 
Xie Gang