2018-02-24 13:14:47 UTC - Daniel Ferreira Jorge: Hi! Is it possible to somehow 
reset the cursor on a partitioned topic?
----
2018-02-24 15:21:28 UTC - Till Rathschlag: Thanks a lot!
----
2018-02-24 17:49:34 UTC - Matteo Merli: Hi @Daniel Ferreira Jorge. You can 
reset the cursor in 1 call with a time parameter. Eg: 

`bin/pulsar-admin persistent reset-cursor $MY_PARTITIONED_TOPIC --subscription 
$MY_SUB --time 6h`

If you want to reset to a particular message id, you can still do it but you 
have to do it in the individual partitions, eg: 

`bin/pulsar-admin persistent reset-cursor ${MY_PARTITIONED_TOPIC}-partition-0 
--subscription $MY_SUB --messageId 1234:5678`
----
2018-02-24 18:06:17 UTC - Daniel Ferreira Jorge: hi @Matteo Merli thanks for 
the answer! Is it possible to reset it with the REST API? I'm doing it 
programmatically but I throws a "405 - Not supported for partitioned topics". 
If the topic is not partitioned it works...
----
2018-02-24 18:07:24 UTC - Matteo Merli: Yes, it should work the same way. the 
CLI just call the REST API. Can you show the call you’re making?
----
2018-02-24 18:08:09 UTC - Daniel Ferreira Jorge: 1 sec
----
2018-02-24 18:10:05 UTC - Daniel Ferreira Jorge: 
<http://localhost:8080/admin/persistent/property/cluster/namespace/subscription/sub1/resetcursor/20000000>
----
2018-02-24 18:10:16 UTC - Daniel Ferreira Jorge: this works for non partitioned 
topics
----
2018-02-24 18:10:28 UTC - Matteo Merli: ok, let me check
----
2018-02-24 18:13:16 UTC - Matteo Merli: just to verify, are you using 1.21 
release? (the reset cursor over partitioned topics was introduced at that point)
----
2018-02-24 18:19:01 UTC - Daniel Ferreira Jorge: oh man... sorry to waste your 
time man... 1.20...
----
2018-02-24 18:19:14 UTC - Matteo Merli: Ok, no worries :slightly_smiling_face:
----
2018-02-24 18:19:20 UTC - Matteo Merli: I just double checked, it works in 1.21
----
2018-02-24 18:19:58 UTC - Daniel Ferreira Jorge: thanks @Matteo Merli I will 
try to be more careful next time...
----
2018-02-24 18:20:06 UTC - Matteo Merli: basically, you do 1 REST call and the 
broker figures out it’s partitioned and it will do N calls in parallel to 
adjust the cursor on each partitions
----
2018-02-24 18:20:36 UTC - Daniel Ferreira Jorge: great! will get the docker 
image for the 1.21 now
----
2018-02-24 18:21:18 UTC - Matteo Merli: and we’ll have 1.22 in a couple of days 
too
----
2018-02-24 18:22:03 UTC - Daniel Ferreira Jorge: really? will 
<https://github.com/apache/incubator-pulsar/pull/1219> be in it?
----
2018-02-24 18:22:46 UTC - Matteo Merli: no, 1.22 was already cut several days 
ago. This PR will get into next release
----
2018-02-24 18:23:14 UTC - Daniel Ferreira Jorge: no problem! I will just 
compile from master when it is accepted
+1 : Matteo Merli
----
2018-02-24 18:23:29 UTC - Daniel Ferreira Jorge: thanks @Matteo Merli
----
2018-02-24 18:24:55 UTC - Matteo Merli: just beware, we’re doing lot’s of 
refactoring changes in master :slightly_smiling_face: to prepare for 2.0 
release…
----
2018-02-24 18:59:51 UTC - Daniel Ferreira Jorge: ah ok, thanks for the warning! 
Are the docs being updated to reflect the refactoring?
----
2018-02-24 19:01:39 UTC - Matteo Merli: Yes, the work is in progress. In 
general there will be no breaking changes. Only few stuff like upgraded log4j 
to 2.x and so on. We’ll provide complete upgrade notes when approaching the 
release.
+1 : Sijie Guo
fire : Sijie Guo
----
2018-02-24 19:01:58 UTC - Daniel Ferreira Jorge: great! thanks!
----
2018-02-24 20:54:25 UTC - Daniel Ferreira Jorge: Hi again! I know this is way 
out of scope for this chat, but I'm having a weird problem. When I build a 
docker image and try to install python pulsar-client using pip I get "Could not 
find a version that satisfies the requirement pulsar-client==1.21.0" (every 
other pip package installs just fine). But I can install pulsar-client with pip 
just fine in my computer.... Did anybody face a similar problem at some point?
----
2018-02-24 21:11:42 UTC - Matteo Merli: Which version of python do you have 
inside that Docker image?
----
2018-02-24 21:13:05 UTC - Matteo Merli: also, are you using a 
rhel/centos/debian based image or Alpine?
----
2018-02-24 21:13:37 UTC - Matteo Merli: we don’t have binaries that work on 
Alpine (since it doesn’t have a glibc)
----
2018-02-24 21:16:24 UTC - Daniel Ferreira Jorge: 3.6 alpine... will switch to 
ubuntu thanks again @Matteo Merli
----
2018-02-24 21:17:40 UTC - Matteo Merli: no problem. I’ve tried to compile the 
C++ library + bindings on Alpine but it seemed an herculean effort to get a 
build to pass there
----
2018-02-24 21:19:36 UTC - Daniel Ferreira Jorge: pulsar is a very specialized 
software... if people are not willing to run it where it runs they shouldn't be 
using it... don't waste time making it work everywhere...
----

Reply via email to