You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On versions of macOS without Java installed, there is a stub executable that presents a warning to users that there is no longer a default JDK installed on macOS.
The fingerprinter runs this stub command every 30 seconds while Nomad is running because of
It appears that we could fingerprint for an installed JDK (that would be seen by this stub) by looking for one or more symlinks in /Library/Java/JavaVirtualMachines. This would definitely improve the getting started experience on macOS.
The text was updated successfully, but these errors were encountered:
angrycub
changed the title
[enhancement] Provide a non-config way to disable Java driver in a -dev agent.
[enhancement] Update Java driver fingerprinting for macOS
May 4, 2020
@angrycub and I were discussing workarounds here, so I thought I'd post one here that I just applied: you can remove the /usr/bin/java symlink to make this go away. Not too sure if it comes back eventually though (ie: through patches or with the next version of MacOS).
On modern MacOS you need to disable SIP from recovery mode and remount / read-write (mount -u -w /) before you can operate on the symlink. Of course, you can just delete it from recovery mode too.
I was able to collect enough of the necessary bits to make a null.jdk that can be put in /Library/Java/JavaVirtualMachines that uses symlinks to /usr/bin/false as the target command.
Tested on macOS Catalina 10.15.4.
Unzip and then sudo cp -R null.jdk /Library/Java/JavaVirtualMachines
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
On versions of macOS without Java installed, there is a stub executable that presents a warning to users that there is no longer a default JDK installed on macOS.
The fingerprinter runs this stub command every 30 seconds while Nomad is running because of
nomad/drivers/java/driver.go
Lines 29 to 30 in 65f09ed
nomad/drivers/java/utils.go
Lines 11 to 27 in 65f09ed
It appears that we could fingerprint for an installed JDK (that would be seen by this stub) by looking for one or more symlinks in
/Library/Java/JavaVirtualMachines
. This would definitely improve the getting started experience on macOS.The text was updated successfully, but these errors were encountered: