Skip to content

Instantly share code, notes, and snippets.

View lrepno's full-sized avatar

Leonid Repno lrepno

  • Ukraine, Odessa
View GitHub Profile
@mottyc
mottyc / zookeeper-service-script
Last active January 10, 2022 07:07
Zookeeper service script (copy to file: /etc/init.d/zookeeper)
#! /bin/sh
# /etc/init.d/zookeeper: start the zookeeper daemon.
# chkconfig: - 80 20
# description: zookeeper
ZK_HOME=/opt/kafka
ZK_USER=root
ZK_SCRIPT=$ZK_HOME/bin/zookeeper-server-start.sh
ZK_CONFIG=$ZK_HOME/config/zookeeper.properties
@mottyc
mottyc / kafka-service-script
Last active January 10, 2022 07:07
Kafka service script (copy to file: /etc/init.d/kafka)
#! /bin/sh
# /etc/init.d/kafka: start the kafka daemon.
# chkconfig: - 80 20
# description: kafka
KAFKA_HOME=/usr/share/kafka
KAFKA_USER=root
KAFKA_SCRIPT=$KAFKA_HOME/bin/kafka-server-start.sh
KAFKA_CONFIG=$KAFKA_HOME/config/server.properties
@mottyc
mottyc / install-kafka
Last active January 6, 2021 15:49
Kafka 0.8.2.0 installation + zookeeper on a single machine
#!/bin/bash
#title :kafka-install.sh
#description :The script to install kafka 0.8.x
#author :Motty Cohen
#date :05-Feb-2015
#usage :/bin/bash install-kafka.sh
KAFKA_VERSION=0.8.2.0
SCALA_VERSION=2.10