Slackbot
04/12/2023, 8:26 PMAnthony Ikeda
04/12/2023, 9:35 PMAnthony Ikeda
04/12/2023, 9:37 PM$ env PULSAR_STANDALONE_USE_ZOOKEEPER=true bin/pulsar standalone
Will start up a zookeeper instance with your standalone instance. Next you need to start a function worker:
bin/pulsar functions-worker
...
INFO org.apache.pulsar.functions.worker.Worker - /** Started worker server **/
If you now try the telnet to localhost 4181 you should get the connection.Anthony Ikeda
04/12/2023, 9:39 PM$ bin/pulsar zookeeper
...
$ bin/pulsar initialize-cluster-metadata --cluster standalone --zookeeper localhost:2181 --configuration-store localhost:2181 --web-service-url <http://localhost:8080> --broker-service-url <pulsar://localhost:6650>
This step may not be necessary though.Anthony Ikeda
04/12/2023, 9:41 PMstandalone.conf#functionsWorkerEnabled=true and you can run the standalone the same way (with PULSAR_STANDALONE_USE_ZOOKEEPER=true and it also works.Anthony Ikeda
04/12/2023, 9:46 PMbin/pulsar standalone the bash scripts run a specific class: org.apache.pulsar.PulsarStandaloneStarter.java which runs Pulsar without ZooKeeper; instead storing it’s metadata in RocksDB. When the functions worker runs, it tries to lookup a metastore URI and trying to get the Authority (java.net.URI.getAuthority()) which is a null URI value throwing an exception. So the Function Worker doesn’t seem to start.Anthony Ikeda
04/12/2023, 9:46 PMAlex Katebi
04/13/2023, 11:44 AM