spark elastic + kibana 6.3

#下载
https://www.elastic.co/cn/downloads/past-releases#elasticsearch

[root@hadoop000 ~]# tar -zxvf elasticsearch-6.3.0.tar.gz -C ~/app/
[root@hadoop000 config]# pwd
/root/app/elasticsearch-6.3.0/config
[root@hadoop000 config]# vim elasticsearch.yml 

在这里插入图片描述

[root@hadoop000 app]# mkdir elk
[root@hadoop000 app]# useradd elk
useradd: user 'elk' already exists
[root@hadoop000 app]# chown -R elk:elk elk
[root@hadoop000 app]# chown -R elk:elk elasticsearch-6.3.0/
[root@hadoop000 app]# pwd
/root/app

[root@hadoop000 bin]# ./elasticsearch
[root@hadoop000 ~]# curl -XPUT 'http://localhost:9200/imooc_es'
[root@hadoop000 ~]# curl -XGET 'http://localhost:9200/_search'
[root@hadoop000 ~]# curl -XPOST 'http://hadoop000:9200/imooc_es/student/1' -H 'Content-Type: application/json' -d '{
> "name":"imooc",
> "age":5,
> "interests":["Spark","Hadoop"]
> }'
{"_index":"imooc_es","_type":"student","_id":"1","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}[root@hadoop000 ~]# curl -XGET 'http://hadoop000:9200/_search?pretty'
{
  "took" : 15,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 1,
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "imooc_es",
        "_type" : "student",
        "_id" : "1",
        "_score" : 1.0,
        "_source" : {
          "name" : "imooc",
          "age" : 5,
          "interests" : [
            "Spark",
            "Hadoop"
          ]
        }
      }
    ]
  }
}
You have mail in /var/spool/mail/root

[root@hadoop000 config]# pwd
/root/app/kibana-6.3.0-linux-x86_64/config

在这里插入图片描述
#启动

[root@hadoop000 kibana-6.3.0-linux-x86_64]# bin/kibana

http://0.0.0.0:5601

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

伟伟哦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值