Skip to content

Commit b6c6c96

Browse files
chemikadzeguoyuepeng
authored andcommitted
Deployment and compose doc improvements
Author: Nikolay Sokolov <[email protected]> Closes #417 from chemikadze/deployment-documentation.
1 parent 887ea33 commit b6c6c96

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

griffin-doc/deploy/deploy-guide.md

+41
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,40 @@ Init quartz tables in MySQL using [Init_quartz_mysql_innodb.sql.sql](../../servi
6464
mysql -u <username> -p quartz < Init_quartz_mysql_innodb.sql.sql
6565
```
6666
67+
#### Elasticsearch
68+
69+
You might want to create Elasticsearch index in advance, in order to set number of shards, replicas, and other settings to desired values:
70+
```
71+
curl -XPUT http://es:9200/griffin -d '
72+
{
73+
"aliases": {},
74+
"mappings": {
75+
"accuracy": {
76+
"properties": {
77+
"name": {
78+
"fields": {
79+
"keyword": {
80+
"ignore_above": 256,
81+
"type": "keyword"
82+
}
83+
},
84+
"type": "text"
85+
},
86+
"tmst": {
87+
"type": "long"
88+
}
89+
}
90+
}
91+
},
92+
"settings": {
93+
"index": {
94+
"number_of_replicas": "1",
95+
"number_of_shards": "5"
96+
}
97+
}
98+
}
99+
'
100+
```
67101
68102
You should also modify some configurations of Griffin for your environment.
69103
@@ -135,6 +169,13 @@ You should also modify some configurations of Griffin for your environment.
135169
136170
```
137171
- \<griffin measure path> is the location where you should put the jar file of measure module.
172+
173+
- <b>service/src/main/resources/env/env_batch.json</b>
174+
175+
Adjust sinks according to your requirement. At least, you will need to adjust HDFS output
176+
directory (hdfs:///griffin/persist by default), and Elasticsearch URL (http://es:9200/griffin/accuracy by default).
177+
Similar changes are required in `env_streaming.json`.
178+
138179
139180
140181
### Build and Run

griffin-doc/docker/compose/docker-compose-batch.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ griffin:
2626
- /var/lib/mysql
2727
ports:
2828
- 32122:2122
29-
- 38088:8088
30-
- 33306:3306
31-
- 35432:5432
32-
- 38042:8042
33-
- 39083:9083
34-
- 38998:8998
35-
- 38080:8080
29+
- 38088:8088 # yarn rm web ui
30+
- 33306:3306 # mysql
31+
- 35432:5432 # postgres
32+
- 38042:8042 # yarn nm web ui
33+
- 39083:9083 # hive-metastore
34+
- 38998:8998 # livy
35+
- 38080:8080 # griffin ui
3636
tty: true
3737
container_name: griffin
3838

0 commit comments

Comments
 (0)