-
Golang logging using USER profile on Mint 19
Hi, I committed on learning Golang and as a part of this task i came to play with logging examples. It seems that if you user syslog.LOG_USER the info is stored in the /var/log/syslog. Here is the code and also the output package main import ( “io” “log” “log/syslog” “os” “path/filepath” ) func main() {…
-
Small go code example for zookeeper resource editing
Hi, We have the task of “service restart coordination” for our Apache Kafka cluster. It’s still a work in progress but if you want to use the zookeeper for some status verification and update, something like this will work as an example. package main import ( “fmt” “io” “launchpad.net/gozk” “os” “strings” “sync” “time” ) const…
-
Don’t delete the Kafka GC logs when they are used
Hi, I made a mistake some time ago, and it’s there to hunt me. Deleting the normal gc logs including the one it’s already used doesn’t solve anything, it just created a more difficult situation. Here is my example: /dev/sda1 50G 42G 5.2G 90% / /opt/kafka/logs# ll total 34M drwxrwxr-x 2 kafka kafka 4.0K Oct…
-
Final version of SSL gen script for kafka
Hi, I wrote a lot about this topic but it seems that i came to the procedure specified by Confluent. Here is the right way to do it, at least for now: #!/bin/bash HOST= PASSWORD= KEYSTOREPASS= VALIDITY=365 keytool -keystore kafka.server.keystore.jks -alias ${HOST} -validity $VALIDITY -genkey -dname “CN=${HOST}, OU=MyTeam, O=MyCompany, L=Bucharest S=Romania C=RO” -storepass $KEYSTOREPASS -keypass…