Skip to content

Pull content Elastic, Kura, Lbasense#9

Open
nguyenvulebinh wants to merge 15 commits intoHPCC-Cloud-Computing:masterfrom
nguyenvulebinh:master
Open

Pull content Elastic, Kura, Lbasense#9
nguyenvulebinh wants to merge 15 commits intoHPCC-Cloud-Computing:masterfrom
nguyenvulebinh:master

Conversation

@nguyenvulebinh
Copy link
Copy Markdown

  • Docker file Elastic
  • Docker file Kura
  • Script get data Lbasense
  • Document about index stored in Elasticsearch

+ Build docker image Elasticsearch bằng lệnh

```
sudo docker build -t elasticsearch .
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need cd command or path to elasticsearch dir
sudo is not necessary here.

+ Build docker image Kibana bằng lệnh

```
sudo docker build -t kibana .
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need cd command or path to Kibana dir
sudo is not necessary here.

+ Build docker image Logstash bằng lệnh

```
sudo docker build -t kibana .
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need cd command or path to logstash dir
sudo is not necessary here.

fix tag name

- Fix tag name
- Remove sudo when build docker image
- Remove sudo in command build docker image
- Fix tag name
- Trong index, type name được đặt theo ngày lấy dữ liệu, id là giá trị băm của tất cả các trường được lưu trữ trong index.
- Hàm lưu trữ index này được gọi 1lần/ngày

| Parameter | Description |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should "draw" tables properly.

## Cai dat cac goi phan mem can thiet
RUN apt-get update && \
apt-get install -y apt-utils unzip ethtool dos2unix telnet bind9 hostapd isc-dhcp-server iw monit wget openjdk-8-jdk wireless-tools && \
apt-get install -y apt-utils unzip ethtool dos2unix telnet bind9 hostapd isc-dhcp-server iw monit wget openjdk-8-jdk wireless-tools cron byobu && \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is byobu mandatory?

| date | Ngày ghi nhận thông tin |
| numVisitors | Số lượng người tới region trong ngày |
| avgDuration | Thời gian trung bình lưu lại region của tất cả các visitor |
| regionId | ID của region |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use tab for spacing

| date | Ngày ghi nhận thông tin |
| numVisitors | Số lượng người tới region trong ngày |
| avgDuration | Thời gian trung bình lưu lại region của tất cả các visitor |
| regionId | ID của region |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not use tab here

| category | Không rõ |
| globalID | Không rõ |

Ngoài ra script còn đồng thời lưu trữ dữ liệu lấy được ra file text, trong các folder có tên trùng với index name trong Elasticsearch nhằm tránh trường hợp Elasticsearch bị lỗi.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please describe file format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants