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 2019/03/18 22:41:02 UTC

[GitHub] [pulsar] cckellogg opened a new issue #3860: Unable to update builtin sink/source from cli or rest api

cckellogg opened a new issue #3860: Unable to update builtin sink/source from cli or rest api
URL: https://github.com/apache/pulsar/issues/3860
 
 
   **Describe the bug**
   Updating a builtin sink/source from the cli does not work
   
   **To Reproduce**
   Steps to reproduce the behavior:
   `CLI`
   1. Create a builtin sink/source
   ```
   /bin/pulsar-admin sink create --tenant public --namespace default --name test --inputs source-topic --sink-type data-generator
   ```
   2. Try up update the sink with cli
   ```
   ./bin/pulsar-admin sink update --tenant public --namespace default --name test-sink  --parallelism 2
   ```
   output:
   ```
   Invalid stream name : 'Invalid log name "/builtin://data-generator" caused by empty node name specified @10'
   
   Reason: Invalid stream name : 'Invalid log name "/builtin://data-generator" caused by empty node name specified @10'
   ```
   
   3. Try to update the sink through the rest endpoint
   
   data-gen-sink-config.json
   ```
   {
     "tenant": "public",
     "namespace": "default",
     "name": "test-sink",
     "className": "org.apache.pulsar.io.datagenerator.DataGeneratorPrintSink",
     "inputSpecs": {
       "source-topic": {
         "regexPattern": false
       }
     },
     "parallelism": 2,
     "processingGuarantees": "ATLEAST_ONCE",
     "retainOrdering": false,
     "autoAck": true,
     "archive": "builtin://data-generator"
   }
   ```
   
   
   ```
   Chriss-MacBook-Pro:apps chris$ curl  -v -X PUT -F sinkConfig=@data-gen-sink-config.json http://localhost:8080/admin/v3/sink/public/default/test-sink
   *   Trying ::1...
   * TCP_NODELAY set
   * Connection failed
   * connect to ::1 port 8080 failed: Connection refused
   *   Trying 127.0.0.1...
   * TCP_NODELAY set
   * Connected to localhost (127.0.0.1) port 8080 (#0)
   > PUT /admin/v3/sink/public/default/test-sink HTTP/1.1
   > Host: localhost:8080
   > User-Agent: curl/7.54.0
   > Accept: */*
   > Content-Length: 602
   > Expect: 100-continue
   > Content-Type: multipart/form-data; boundary=------------------------03ae3a9959723916
   > 
   < HTTP/1.1 100 Continue
   < HTTP/1.1 400 Bad Request
   < Date: Mon, 18 Mar 2019 22:36:33 GMT
   < Content-Type: application/json
   < Content-Length: 123
   < Server: Jetty(9.4.12.v20180830)
   * HTTP error before end of send, stop sending
   < 
   * Closing connection 0
   {"reason":"Invalid stream name : 'Invalid log name \"/builtin://data-generator\" caused by empty node name specified @10'"}Chriss-MacBook-Pro:apps chris$ 
   ```
   
   
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services