lichuan6 edited a comment on issue #9092: URL: https://github.com/apache/pulsar/issues/9092#issuecomment-753835188
@freeznet Thanks for you reply. After changing the token generated from pulsar UI to the one in `broker.conf`, I can call `functions list` successfully. Then I succeeded to create a sink using `sinks create`, however, I got this error when trying to stats the sink. In toolset pod: ```shell bin/pulsar-admin --admin-url http://pulsar-broker.pulsar:8080 --auth-params "token:${TOKEN}" --auth-plugin "org.apache.pulsar.client.impl.auth.AuthenticationToken" sinks status --tenant public --namespace default --name my-elasticsearch-sink { "numInstances" : 1, "numRunning" : 0, "instances" : [ { "instanceId" : 0, "status" : { "running" : false, "error" : "UNAVAILABLE: Unable to resolve host pf-public-default-my-elasticsearch-sink-0.pf-public-default-my-elasticsearch-sink.pulsar.svc.cluster.local", "numRestarts" : 0, "numReadFromPulsar" : 0, "numSystemExceptions" : 0, "latestSystemExceptions" : [ ], "numSinkExceptions" : 0, "latestSinkExceptions" : [ ], "numWrittenToSink" : 0, "lastReceivedTime" : 0, "workerId" : "c-2.6.1-pulsar-fw-pulsar-broker-4.pulsar-broker.pulsar.svc.cluster.local-8080" } } ] } ``` ---------------------------------------------------------------- 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: [email protected]
