0. Create kafka user
sudo adduser kafka
sudo adduser kafka sudo
su -l kafka
1. Download and Install kafka archive
import groovy.sql.Sql | |
def dbUrl = "jdbc:postgresql://localhost/test-db" | |
def dbUser = "test" | |
def dbPassword = "test" | |
def dbDriver = "org.postgresql.Driver" | |
def sql = Sql.newInstance(dbUrl, dbUser, dbPassword, dbDriver) |
[Unit] | |
Description=ZooKeeper Service | |
Documentation=http://zookeeper.apache.org | |
Requires=network.target | |
After=network.target | |
[Service] | |
Type=forking | |
User=zookeeper | |
Group=zookeeper |
In my sample script, the script was made using the Quickstart. The flow to use this sample script is as follows.
client_secret.json
to the same directory with my sample script.Go to the following link in your browser then type the authorization code:
is shown on your terminal, please copy the URL and paste to your browser. And then, please authorize and get code.var start = new Date(); | |
start.setHours(0,0,0,0); | |
var end = new Date(); | |
end.setHours(23,59,59,999); | |
let d = new Draft(); | |
d.insert("## Events " + start.toLocaleDateString(), 0); | |
let cals = Calendar.getAllCalendars(); |