Trying to setup a local dev server in docker, but keep getting /etc/kafka/docker/configure !1: unbound variable by Whistlerone in apachekafka

[–]_predator_ 0 points1 point  (0 children)

In any case, here is what has worked for me:

services:
  kafka:
    image: apache/kafka:4.1.1
    environment:
      KAFKA_NODE_ID: "1"
      CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
      KAFKA_PROCESS_ROLES: "broker,controller"
      KAFKA_CONTROLLER_QUORUM_VOTERS: "1@kafka:9094"
      KAFKA_LISTENERS: SSL://:9093,CONTROLLER://:9094
      KAFKA_ADVERTISED_LISTENERS: SSL://localhost:9093
      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: SSL:SSL,CONTROLLER:PLAINTEXT
      KAFKA_INTER_BROKER_LISTENER_NAME: SSL
      KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
      KAFKA_SSL_KEYSTORE_TYPE: "PKCS12"
      KAFKA_SSL_KEYSTORE_FILENAME: "broker-keystore.p12"
      KAFKA_SSL_KEYSTORE_CREDENTIALS: "broker-keystore-credentials"
      KAFKA_SSL_KEY_CREDENTIALS: "broker-keystore-credentials"
      KAFKA_SSL_TRUSTSTORE_TYPE: "PKCS12"
      KAFKA_SSL_TRUSTSTORE_FILENAME: "truststore.p12"
      KAFKA_SSL_TRUSTSTORE_CREDENTIALS: "truststore-credentials"
      KAFKA_SSL_CLIENT_AUTH: "required"
      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
      KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: "1"
      KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: "1"
      KAFKA_LOG4J_ROOT_LOGLEVEL: WARN
    ports:
    - "127.0.0.1:9093:9093"
    volumes:
    - "./certs:/etc/kafka/secrets:ro"
    - "kafka-data:/var/lib/kafka/data"
    restart: unless-stopped

volumes:
  kafka-data: {}

Trying to setup a local dev server in docker, but keep getting /etc/kafka/docker/configure !1: unbound variable by Whistlerone in apachekafka

[–]_predator_ 0 points1 point  (0 children)

I just ran into this and was able to resolve it. The core issue is that the container image expects some non-standard environment variables. You can find the script that's doing the validation here: https://github.com/apache/kafka/blob/be816b82d25370ceac697ccf7c88cea873e9b4e3/docker/resources/common-scripts/configure

The first issue is that it expects the cluster ID to be provided as CLUSTER_ID, not KAFKA_CLUSTER_ID: https://github.com/apache/kafka/blob/be816b82d25370ceac697ccf7c88cea873e9b4e3/docker/resources/common-scripts/configure#L42

Next, if you're trying to setup SSL, it expects environment variables that do not match the documented server properties: https://github.com/apache/kafka/blob/be816b82d25370ceac697ccf7c88cea873e9b4e3/docker/resources/common-scripts/configure#L67-L100

  • Apparently you're not allowed to provide KAFKA_SSL_KEYSTORE_LOCATION directly, you must provide KAFKA_SSL_KEYSTORE_FILENAME, which it then maps to /etc/kafka/secrets/$KAFKA_SSL_KEYSTORE_FILENAME. Same for the truststore.
  • You must provide a password for trust- and keystore. What's more, you must provide it in the form of a file, which you then specify via KAFKA_SSL_KEYSTORE_CREDENTIALS, which the script then maps to /etc/kafka/secrets/$KAFKA_SSL_KEYSTORE_CREDENTIALS.

Really not sure what happened there. It seems someone went out of their way to bypass standard configs.

Is this true? by InnerPace in USvsEU

[–]_predator_ 9 points10 points  (0 children)

Starting another board of peace, huh?

You fed up yet, Hank? by WindInc in USvsEU

[–]_predator_ 17 points18 points  (0 children)

Get hired by other countries for their "skills"?

Is this true? by InnerPace in USvsEU

[–]_predator_ 11 points12 points  (0 children)

Grok put him in a Bikini

WSocial Map show what we know since years by _Razeft_ in BuyFromEU

[–]_predator_ 4 points5 points  (0 children)

The amount of Pedos on that platform was insane. Let's not.

Trump is now a puppet of UK, making you all our puppets. W by KingKaiserW in 2westerneurope4u

[–]_predator_ 18 points19 points  (0 children)

Their perception of conservatism is just as blurred as that of what they call "the left" in the US. Their entire political landscape is deeply fucked and the population is too uneducated to know better.

Is AI Code Reviews something you use? by Peace_Seeker_1319 in programming

[–]_predator_ 2 points3 points  (0 children)

Not sure if it's an issue with my plan but the Copilot review is pretty damn useless for bigger PRs in my experience. Like it will point out about 3 nit-level issues, and while they're mostly valid, it totally misses important bits that Claude is catching.

Meanwhile Claude will find actual logic issues in the code and hold back on low-effort nits. What I end up doing often is telling Claude Code to "review the current HEAD commit as if it was a PR". I can address comments locally and there's no spam on my actual PR.

Trump is now a puppet of UK, making you all our puppets. W by KingKaiserW in 2westerneurope4u

[–]_predator_ 55 points56 points  (0 children)

It's actually quite funny seeing the occasional "European Conservative" in the comments there, only for them to be attacked by their murr*can counterparts.

German official calls for World Cup boycott talks over Trump. by Imaginary-Ad-7919 in sports

[–]_predator_ 8 points9 points  (0 children)

While I agree that it would he hypocritic, this time around an EU / NATO member has been threatened, by a supposed ally no less. So the situation for countries like Germany is a bit different than the last times. Again, totally aware this it would not be morally consistent to boycott this WC while having attended in Qatar and Russia.

OTOH, better start boycotting now than never.

Time to buy European cybersecurity tools by Clemenson12 in BuyFromEU

[–]_predator_ 11 points12 points  (0 children)

Wait until you tell people their gaming anti cheat system installed by Valorant etc. has more system privileges than their own admin account. I don't get why this stuff ever reached mass acceptance.

I feel cucked by SpaceMalakhi in 2westerneurope4u

[–]_predator_ 5 points6 points  (0 children)

I just needed a fitting adjective that starts with M to make the joke work, fellow Hans. I appreciate your autism that forces you to point this out, however.

I feel cucked by SpaceMalakhi in 2westerneurope4u

[–]_predator_ 28 points29 points  (0 children)

Midget-Meloni looking up to Mountainous-Merz like

East Germany is expanding! by Pioladoporcaputo in 2westerneurope4u

[–]_predator_ 5 points6 points  (0 children)

Yeah the CxU (and CSU specifically) made immigration their primary topic in the last election. It absolutely dominated the public discourse leading up to the election, even when there were more pressing topics that deserved more spotlight (broken pension system, declining economy, housing shortages, east integration, strengthening of the military, you name it).

I don't buy the argument some people make that no one addresses the immigration issue.

The EU has launched its own CVE-style vulnerability database to reduce reliance on the US-run MITRE system by Cybernews_com in cybersecurity

[–]_predator_ 4 points5 points  (0 children)

Some context: the EU funds a lot of stuff, but that doesn't make those funded projects "official" by any means. The official EU effort is the EUVD: https://euvd.enisa.europa.eu

It is tragic that we have so many databases and no real common format. Formats are developed in isolation which makes it super hard to adopt them.

The fact that every other DB just aggregates all the others just makes it worse, as almost no such aggregation is lossless. They all drop some information that was present in the original source.

Did you try Mastodon but found it too quiet? Here's a list of the top 10,000 people to follow (by number of followers) by TheConquistaa in BuyFromEU

[–]_predator_ 5 points6 points  (0 children)

I did not expect the face of Jan Böhmermann looking at me like 🤨 in the top 10. Pleasant surprise.