1、功能
- 类似于Hue这个工具
- Hue:实现了整个大数据平台大数据框架的客户端访问
- 基于Solr构建报表平台
- Kibana:实现ElasticSearch的客户端访问额
- 基于ES构建报表平台
- Hue:实现了整个大数据平台大数据框架的客户端访问
- 属于BI工具,用于构建ES中报表
- 工作中,一般不用,如果你使用ES的话,可以搭配Kibana
2、导入数据
- 数据集内容
- 莎士比亚:柱状图
{
"line_id": INT,
"play_name": "String", --舞台剧的名称
"speech_number": INT,
"line_number": "String",
"speaker": "String", --表演者
"text_entry": "String",
}
- 账户数据:饼图
{
"account_number": INT, --账号
"balance": INT, --余额
"firstname": "String", --曾用名
"lastname": "String", --现用名
"age": INT, --年龄
"gender": "M or F", --性别
"address": "String",
"employer": "String",
"email": "String",
"city": "String",
"state": "String"
}
- 地理位置数据集:地图
{
"memory": INT,
"geo.coordinates": "geo_point" --经纬度
"@timestamp": "date"
}
- 创建索引库
--莎士比亚的索引库
PUT /shakespeare
{
"mappings": {
"doc": {
"properties": {
"speaker": {"type": "keyword"},
"play_name": {"type": "keyword"},
"line_id": {"type": "integer"},
"speech_number": {"type": "integer"}
}
}
}
}
--创建地理数据的索引库
PUT /logstash-2015.05.18
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
PUT /logstash-2015.05.19
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
PUT /logstash-2015.05.20
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
- 导入数据到ES
- 将三个数据文件上传到/home/es目录下
- 切换到家目录下
- cd ~
- 执行以下命令
--导入莎士比亚数据
curl -H 'Content-Type: application/x-ndjson' -XPOST 'node-01:9200/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json
--导入log数据
curl -H 'Content-Type: application/x-ndjson' -XPOST 'node-01:9200/_bulk?pretty' --data-binary @logs.json
--导入bank数据
curl -H 'Content-Type: application/x-ndjson' -XPOST 'node-01:9200/bank/account/_bulk?pretty' --data-binary @accounts.json
--验证导入结果:显示当前整个ES中每个Index的状态
GET /_cat/indices?v
2、关联数据
3、饼图
4、柱状图
5、地图
6、Markdown
7、看板