News for hackers. Stuff that matters.
Re:Kafka Removing Zookeeper Dependency by ashtonkem on Sunday May 17, 2020 @08:22AM (#23211457)
I’ve deployed Java apps for years, the idea that I must “admit” to Java being painful to deploy in order to be taken seriously is laughable.

Like any other tool, Java has its pros and its cons, but you’re being hyperbolic.

Re:Kafka Removing Zookeeper Dependency by gilbetron on Sunday May 17, 2020 @09:53AM (#23211986)
Ok, you have a java app I want on my system, what are the steps I need to do? (I'm on Ubuntu 18.04)
Re:Kafka Removing Zookeeper Dependency by apta on Sunday May 17, 2020 @11:40AM (#23212709)
You can ship the JVM with your app such that it's self-contained and system independent. Apps like IntelliJ already do this. And now with jlink, you can strip it down to make deployment sizes even smaller by only shipping the parts of the JVM that your app uses.
Re:Kafka Removing Zookeeper Dependency by ashtonkem on Sunday May 17, 2020 @12:33PM (#23213101)
That’s the reasonable choice for consumer facing applications, yeah. For server applications it makes more sense to use something like Docker or a pre-built AMI.

For what I do “how do I get Java on the server” is much less difficult than making deployments quicker and more efficient, which is more a problem for our CI/CD harness and integration tests. Neither of which are Java specific per se.

Re:Kafka Removing Zookeeper Dependency by parasubvert on Monday May 18, 2020 @07:55AM (#23221202)
For server apps you don’t even need a Docker image or AMI, a fat JAR will usually do 90% of what you need.

That said if you want to keep your JDK up to date via Docker or AMI of course that’s fine. a jlink JAR does the same thing but I can see the desire for wanting to decouple runtime upgrades from code upgrades.

Re:Kafka Removing Zookeeper Dependency by splix on Sunday May 17, 2020 @11:40AM (#23212706)
I guess you mean that Java 11 is not available on 18.04 by default, right? Java 11 was release in September 2018, so I guess Ubuntu 18.04, which came in April 2018, didn't have any chance to include it. Therefore you have to make an extra step to setup a ppa repo with software that didn't exist at the moment of release.

Otherwise, at least with Ubuntu 19.04 which I have, it's simple `sudo apt install openjdk-11-jdk-headless`

Re:Kafka Removing Zookeeper Dependency by ashtonkem on Sunday May 17, 2020 @12:26PM (#23213022)
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/publi... | sudo apt-key add -

sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

sudo apt-get install adoptopenjdk-<version>-hotspot

Yes, it’s a few extra steps, but it’s not exactly Sisyphean now is it? Given the complexity of modern CI/CD pipelines, and the trend towards continuous deployment, making sure that a JVM is deployed alongside the uberjar is a pretty small ask. Would a single binary be easier? Sure. Would I change languages just for that? No, other factors are more important IMHO.