You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/05/27 15:33:14 UTC

[GitHub] [pulsar] sakthi-prasad opened a new issue #7056: pulsar client 2.5.2 cli does not support subscription-position when running consumer

sakthi-prasad opened a new issue #7056:
URL: https://github.com/apache/pulsar/issues/7056


   When running pulsar client cli command for consumer, --subscription-position is shown as unknown option
   
   Note pulsar client version: 2.5.2
   
   Run the below command to start a consumer 
   ./pulsar-client consume "persistent://public/default/my-partitioned-topic-partition-0" -s subcribname  -t Exclusive --subscription-position Earliest
               OR
   ./pulsar-client consume "persistent://public/default/my-partitioned-topic-partition-0" -s subcribname  -t Exclusive -p Earliest
   **Throws below error**
   Unknown option: --subscription-position
   Consume messages from a specified topic
   Usage: consume [options] TopicName
     Options:
       --hex
          Display binary messages in he
   
   **Expected behavior**
   It should allow the option --subscription-position as document for pulsar 2.5.2
   
   **Additional context**
   I would like to know if the --subscription-position as Earliest will consume all the messages that was sent to topic before starting consumer with the subscriber?
   For e.g
   1.Create a topic
   2.send data to topic "A"
   3 start consumer with option --subscription-position as Earliest
   4. send data to topic "B"
   
   Will I be able to consume the messages sent in step 2 i.e "A" or I will be able to consume only messages sent in step 4 onwards i.e"B"
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie closed issue #7056: pulsar client 2.5.2 cli does not support subscription-position when running consumer

Posted by GitBox <gi...@apache.org>.
sijie closed issue #7056:
URL: https://github.com/apache/pulsar/issues/7056


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie commented on issue #7056: pulsar client 2.5.2 cli does not support subscription-position when running consumer

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7056:
URL: https://github.com/apache/pulsar/issues/7056#issuecomment-652150095


   The doc issue has been fixed.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] sijie commented on issue #7056: pulsar client 2.5.2 cli does not support subscription-position when running consumer

Posted by GitBox <gi...@apache.org>.
sijie commented on issue #7056:
URL: https://github.com/apache/pulsar/issues/7056#issuecomment-635043934


   @sakthi-prasad I think the documentation of release 2.5.2 was cut by using the latest master. @jiazhai is looking into fixing the issue.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org