question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mac(Mojave). Standalone quits. Failed to start pulsar service.

See original GitHub issue

Describe the bug Hi, When I run bin/pulsar standalone it quits.

To Reproduce Steps to reproduce the behavior:

wget https://archive.apache.org/dist/pulsar/pulsar-2.4.1/apache-pulsar-2.4.1-bin.tar.gz
wget https://archive.apache.org/dist/pulsar/pulsar-2.4.1/connectors/pulsar-io-kafka-connect-adaptor-2.4.1.nar
tar zxf apache-pulsar-2.4.1-bin.tar.gz && cd apache-pulsar-2.4.1 && mkdir connectors && cp ../pulsar-io-kafka-connect-adaptor-2.4.1.nar connectors
bin/pulsar standalone

Expected behavior I expected it to continue to run

Desktop (please complete the following information):

  • OS: MacOS(Mojave)

Additional context The error dump is in error.txt. My etc/hosts file just in case

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
127.0.0.1       SomeName-MacBook-Pro-Personal.local
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section

What was published in my console in addition was:

bin/pulsar standalone > error.txt
objc[29991]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java (0x1020514c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1020d04e0). One of the two will be used. Which one is undefined.
[AppClassLoader@58644d46] info AspectJ Weaver Version 1.9.2 built on Wednesday Oct 24, 2018 at 15:43:33 GMT
[AppClassLoader@58644d46] info register classloader sun.misc.Launcher$AppClassLoader@58644d46
[AppClassLoader@58644d46] info using configuration file:/Users/rabraham/Documents/dev/trial/pulsar-trial/apache-pulsar-2.4.1/lib/org.apache.pulsar-pulsar-zookeeper-2.4.1.jar!/META-INF/aop.xml
[AppClassLoader@58644d46] info using configuration file:/Users/rabraham/Documents/dev/trial/pulsar-trial/apache-pulsar-2.4.1/lib/org.apache.pulsar-pulsar-zookeeper-utils-2.4.1.jar!/META-INF/aop.xml
[AppClassLoader@58644d46] info register aspect org.apache.pulsar.zookeeper.FinalRequestProcessorAspect
[AppClassLoader@58644d46] info register aspect org.apache.pulsar.zookeeper.ZooKeeperServerAspect
[AppClassLoader@58644d46] info register aspect org.apache.pulsar.zookeeper.SerializeUtilsAspect
[AppClassLoader@58644d46] info register aspect org.apache.pulsar.broker.zookeeper.aspectj.ClientCnxnAspect
[ScriptLoader@517d4a0d] info AspectJ Weaver Version 1.9.2 built on Wednesday Oct 24, 2018 at 15:43:33 GMT
[ScriptLoader@517d4a0d] info register classloader jdk.nashorn.internal.runtime.ScriptLoader@517d4a0d
[ScriptLoader@517d4a0d] info using configuration file:/Users/rabraham/Documents/dev/trial/pulsar-trial/apache-pulsar-2.4.1/lib/org.apache.pulsar-pulsar-zookeeper-2.4.1.jar!/META-INF/aop.xml
[ScriptLoader@517d4a0d] info using configuration file:/Users/rabraham/Documents/dev/trial/pulsar-trial/apache-pulsar-2.4.1/lib/org.apache.pulsar-pulsar-zookeeper-utils-2.4.1.jar!/META-INF/aop.xml
[ScriptLoader@517d4a0d] info register aspect org.apache.pulsar.zookeeper.FinalRequestProcessorAspect
[ScriptLoader@517d4a0d] info register aspect org.apache.pulsar.zookeeper.ZooKeeperServerAspect
[ScriptLoader@517d4a0d] info register aspect org.apache.pulsar.zookeeper.SerializeUtilsAspect
[ScriptLoader@517d4a0d] info register aspect org.apache.pulsar.broker.zookeeper.aspectj.ClientCnxnAspect
[AppClassLoader@58644d46] info processing reweavable type org.apache.zookeeper.server.ZooKeeperServer: org/apache/zookeeper/server/ZooKeeperServer.java
[AppClassLoader@58644d46] info successfully verified type org.apache.pulsar.zookeeper.ZooKeeperServerAspect exists.  Originates from org/apache/pulsar/zookeeper/ZooKeeperServerAspect.java
[AppClassLoader@58644d46] info processing reweavable type org.apache.zookeeper.server.FinalRequestProcessor: org/apache/zookeeper/server/FinalRequestProcessor.java
[AppClassLoader@58644d46] info successfully verified type org.apache.pulsar.zookeeper.FinalRequestProcessorAspect exists.  Originates from org/apache/pulsar/zookeeper/FinalRequestProcessorAspect.java

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
RAbrahamcommented, Sep 7, 2019

the off chance, someone else has the same issue. I resolved it by:

  • moving to openjdk8(may not be required. but it exposed the issue with a better error message than the default mac java 8, I think)
  • add 127.0.0.1 <laptop name>.local to /etc/hosts or whatever name it errors out on your laptop
  • dscacheutil -flushcache
0reactions
marinedabarecommented, May 5, 2020

Thanks @RAbraham ! For me, it works only with the 3 steps (with openjdk8).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install macOS Mojave - Self Service fails to quit
For testing Mojave mac refresh, i have 2 policies in Self Service. The first download the installer to /Applications.
Read more >
If an error occurred while updating or installing macOS
Install after repairing your disk. Use Disk Utility to repair your startup disk. Then try updating or installing macOS again.
Read more >
Apache pulsar 2.8.0 standalone failing - Stack Overflow
To start pulsar i need delete all data folder, after that it starts. 10:56:47.858 [main] ERROR org.apache.pulsar.functions.worker.
Read more >
About this release | Citrix Workspace app for Mac
Starting with this release, when you download the Universal Architecture build, you have the option to select between the Apple Silicon and ...
Read more >
Mac Installation Errors You May Encounter and How to Fix Them
This error message is an oldie, but could be seen by someone upgrading from OS X Yosemite and earlier to OS X El...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found