0. Create kafka user
sudo adduser kafka
sudo adduser kafka sudo
su -l kafka
1. Download and Install kafka archive
import sys | |
reload(sys) # Reload does the trick! | |
sys.setdefaultencoding('UTF8') | |
import tarfile | |
# extract dictionary package | |
tar = tarfile.open("polyglot_data/sentiment2/ru/ru.sent.pkl.tar.bz2") | |
tar.extractall() | |
tar.close() |
cat social/scripts/social-site.service | |
cat social/scripts/social-crawler.service |
val kafkaProps = new Properties() | |
kafkaProps.put("bootstrap.servers", endpoint) | |
kafkaProps.put("key.serializer", classOf[ByteArraySerializer]) | |
kafkaProps.put("key.deserializer", classOf[ByteArrayDeserializer]) | |
kafkaProps.put("value.serializer", classOf[ByteArraySerializer]) | |
kafkaProps.put("value.deserializer", classOf[ByteArrayDeserializer]) | |
kafkaProps.put("group.id", "CrawlerTasksStorage") | |
kafkaProps.put("max.poll.records", "1000") | |
kafkaProps.put("enable.auto.commit","false") |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
bind-key s set-option status | |
bind r source-file ~/.tmux.conf | |
bind h split-window -v | |
bind v split-window -h |
version: '3.8' | |
networks: | |
my_network: | |
driver: bridge | |
volumes: | |
kafka-data: | |
kafka-ui-data: | |
services: |