Former-commit-id: ccded7078a9db535bb9ec9012651604a121cce03 Former-commit-id: 9df3d2a76ee4deefd3db78fab7ee34ab60eaf5351.0
parent
008af04431
commit
2c27eca18a
@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo 'init connectors start:'
|
echo 'init connectors start:\n'
|
||||||
echo 'mysql2kafka'
|
echo 'mysql2kafka\n'
|
||||||
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @mysql2kafka.json
|
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @mysql2kafka.json
|
||||||
echo 'kafka2elasticsearch'
|
echo 'kafka2elasticsearch\n'
|
||||||
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @kafka2elasticsearch.json
|
curl -i -X POST -H "Accept:application/json" -H "Content-Type:application/json" http://localhost:8083/connectors/ -d @kafka2elasticsearch.json
|
||||||
echo 'init connectors end!'
|
echo 'init connectors end!\n
|
||||||
|
# curl -X DELETE http://localhost:8083/connectors/elasticsearch-sink'
|
@ -0,0 +1,38 @@
|
|||||||
|
user root;
|
||||||
|
worker_processes 4;
|
||||||
|
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
stream {
|
||||||
|
server {
|
||||||
|
listen 9092;
|
||||||
|
proxy_pass 172.172.0.21:9092;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
http {
|
||||||
|
include mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
sendfile on;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
|
||||||
|
map $http_upgrade $connection_upgrade {
|
||||||
|
default upgrade;
|
||||||
|
'' close;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name default;
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include conf.d/*.conf;
|
||||||
|
}
|
Loading…
Reference in new issue