Java自学者论坛

 找回密码
 立即注册

手机号码,快捷登录

恭喜Java自学者论坛(https://www.javazxz.com)已经为数万Java学习者服务超过8年了!积累会员资料超过10000G+
成为本站VIP会员,下载本站10000G+会员资源,会员资料板块,购买链接:点击进入购买VIP会员

JAVA高级面试进阶训练营视频教程

Java架构师系统进阶VIP课程

分布式高可用全栈开发微服务教程Go语言视频零基础入门到精通Java架构师3期(课件+源码)
Java开发全终端实战租房项目视频教程SpringBoot2.X入门到高级使用教程大数据培训第六期全套视频教程深度学习(CNN RNN GAN)算法原理Java亿级流量电商系统视频教程
互联网架构师视频教程年薪50万Spark2.0从入门到精通年薪50万!人工智能学习路线教程年薪50万大数据入门到精通学习路线年薪50万机器学习入门到精通教程
仿小米商城类app和小程序视频教程深度学习数据分析基础到实战最新黑马javaEE2.1就业课程从 0到JVM实战高手教程MySQL入门到精通教程
查看: 921|回复: 0

Kibana里No Marvel Data Found问题解决(图文详解)

[复制链接]
  • TA的每日心情
    奋斗
    4 天前
  • 签到天数: 803 天

    [LV.10]以坛为家III

    2053

    主题

    2111

    帖子

    72万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    726482
    发表于 2021-7-11 09:46:08 | 显示全部楼层 |阅读模式

     

     

      问题详情

    http://192.168.80.145:5601/app/marvel#/no-data?_g=(refreshInterval:(display:'10%20seconds',pause:!f,value:10000),time:(from:now-1h,mode:quick,to:now))

     

     

     

     

     

     

     

     

     

     

      排查问题

    [hadoop@master plugins]$ date
    Fri Jun 30 10:07:16 CST 2017
    [hadoop@master plugins]$ 

     

     

    [hadoop@slave1 plugins]$ date
    Fri Jun 30 10:02:17 CST 2017
    [hadoop@slave1 plugins]$ 

     

     

     

     

    [hadoop@slave2 plugins]$ date
    Fri Jun 30 10:07:09 CST 2017
    [hadoop@slave2 plugins]$ 

     

      

     

     

     

     

    解决办法

     1、

    [root@master hadoop]$ cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

     

     

    2、

    [root@master hadoop]# ntpdate pool.ntp.org
    30 Jun 10:14:46 ntpdate[2780]: step time server 101.6.6.172 offset 34.794932 sec
    [root@master hadoop]# date
    Fri Jun 30 10:15:04 CST 2017
    [root@master hadoop]# 

     

     

     

    3、新建索引库和索引,进入,去测试有没有数据。

    [hadoop@master elasticsearch-2.4.0]$ curl -XPUT 'http://192.168.80.145:9200/zhouls'
    {"acknowledged":true}[hadoop@master elasticsearch-2.4.0]$ 
    [hadoop@master elasticsearch-2.4.0]$ curl -XPUT 'http://192.168.80.145:9200/zhouls/employee/1' -d'{"name":"tom","age":25}'
    {"_index":"zhouls","_type":"employee","_id":"1","_version":1,"_shards":{"total":2,"successful":2,"failed":0},"created":true}[hadoop@master elasticsearch-2.4.0]$ 
    [hadoop@master elasticsearch-2.4.0]$ 

     

     

     4、再把时间,调大点

     

     

     

     

     

     

     

     

     

       原因定位于,是在 license过期了 、

     

      点击,进入Get Basic,去完成注册的工作。

    https://register.elastic.co/marvel_register

     

     

       这里,大家自行去注册吧!我不贴图。注册好之后,然后大家去自己的邮箱点击生效即可。

     

       注意:

    Register for a Free Basic License

    Register below to receive a free 1 year Basic license, which enables many great features in X-Pack. See the subscription page for more details. And yes, when the 1 year is up, you can come back and register for another year. Happy searching!

      有效期,只有一年,当一年到期后,再次回来。

     

      

     

     

     

     

     

    --> http://license.elastic.co/registration/download/48209fbc-12ba-4858-a6a0-c7ceff74b941
    
    For license installation instructions:
    
    Elasticsearch 5.x -- https://www.elastic.co/guide/en/x-pack/current/installing-license.html
    Elasticsearch 2.x -- https://www.elastic.co/guide/en/marvel/current/license-management.html
    Elasticsearch 1.x -- Use license code '1010' to register
    
    If you have any questions or issues, please visit us on the forums: https://discuss.elastic.co/ or reach out to us directly at info@elastic.co.
    
    Best,
    The Elastic Team
    
    --
    http://elastic.co

     

     

     

     

     

     

     

     

     

    Please download the license for your Elasticsearch version.

     

     

       下载专属你的license,有效期一年。

       这是我的。

    zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json

     

     里面内容是

    {"license":{"uid":"ff02ba97-d646-4fda-96c2-45accff441d3","type":"basic","issue_date_in_millis":1498780800000,"expiry_date_in_millis":1530403199999,"max_nodes":100,"issued_to":"zhou ls (guet)","issuer":"Web Form","signature":"AAAAAgAAAA3kgU2kenmdBj/P/8AqAAABmC9ZN0hjZDBGYnVyRXpCOW5Bb3FjZDAxOWpSbTVoMVZwUzRxVk1PSmkxaktJRVl5MUYvUWh3bHZVUTllbXNPbzBUemtnbWpBbmlWRmRZb25KNFlBR2x0TXc2K2p1Y1VtMG1UQU9TRGZVSGRwaEJGUjE3bXd3LzRqZ05iLzRteWFNekdxRGpIYlFwYkJiNUs0U1hTVlJKNVlXekMrSlVUdFIvV0FNeWdOYnlESDc3MWhlY3hSQmdKSjJ2ZTcvYlBFOHhPQlV3ZHdDQ0tHcG5uOElCaDJ4K1hob29xSG85N0kvTWV3THhlQk9NL01VMFRjNDZpZEVXeUtUMXIyMlIveFpJUkk2WUdveEZaME9XWitGUi9WNTZVQW1FMG1DenhZU0ZmeXlZakVEMjZFT2NvOWxpZGlqVmlHNC8rWVVUYzMwRGVySHpIdURzKzFiRDl4TmM1TUp2VTBOUlJZUlAyV0ZVL2kvVk10L0NsbXNFYVZwT3NSU082dFNNa2prQ0ZsclZ4NTltbU1CVE5lR09Bck93V2J1Y3c9PQAAAQA53GJunQ18G+av9vb2h25dQ93L6YSToN5I22/BX1TRKlfPRwP7FhMa02dXVwM43Gqi9Z9vWAjPc3XasLWrsIU36jvw8iERWMK4mOWXcIwMQDPposf7iHKqqhAP2DpaRaYU1J4pYVgYpErd3f3NMOrhLPadEeH5JByALK8DiE1i5FsUbfT2O8ekFCrFAOyvEDTHawRmpPJd5Vj0/p7Xvl9S2CbqU4RSinXbmEjQkVtOKqGbETcGxj1ddaQoyqOynTYsgmdnRP9/BcqY2A00q8kpIC5cIzYVcLvPkVo5epHHOfrRDzzn/2ONIUNyYHjGDc298K3ILTFAQt831IVMwEGj"}}

     

     

     

     

     

       我的这里是,2.4.0

    https://www.elastic.co/guide/en/marvel/current/license-management.html

    [hadoop@master license]$ pwd
    /home/hadoop/app/elasticsearch-2.4.0/plugins/license
    [hadoop@master license]$ ll
    total 160
    -rw-rw-r-- 1 hadoop hadoop 72556 Apr 21 15:56 license-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 22422 Apr 21 15:56 license-core-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop  9563 Apr 21 15:56 license-plugin-api-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 43590 Apr 21 15:56 LICENSE.txt
    -rw-rw-r-- 1 hadoop hadoop   155 Apr 21 15:56 NOTICE.txt
    -rw-rw-r-- 1 hadoop hadoop  2617 Apr 21 15:56 plugin-descriptor.properties
    [hadoop@master license]$ rz
    
    [hadoop@master license]$ ll
    total 164
    -rw-rw-r-- 1 hadoop hadoop 72556 Apr 21 15:56 license-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 22422 Apr 21 15:56 license-core-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop  9563 Apr 21 15:56 license-plugin-api-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 43590 Apr 21 15:56 LICENSE.txt
    -rw-rw-r-- 1 hadoop hadoop   155 Apr 21 15:56 NOTICE.txt
    -rw-rw-r-- 1 hadoop hadoop  2617 Apr 21 15:56 plugin-descriptor.properties
    -rw-r--r-- 1 hadoop hadoop  1152 Jun 30 15:42 zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json
    [hadoop@master license]$ 

     

     

     

     

    [hadoop@master license]$ ll
    total 164
    -rw-rw-r-- 1 hadoop hadoop 72556 Apr 21 15:56 license-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 22422 Apr 21 15:56 license-core-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop  9563 Apr 21 15:56 license-plugin-api-2.4.0.jar
    -rw-rw-r-- 1 hadoop hadoop 43590 Apr 21 15:56 LICENSE.txt
    -rw-rw-r-- 1 hadoop hadoop   155 Apr 21 15:56 NOTICE.txt
    -rw-rw-r-- 1 hadoop hadoop  2617 Apr 21 15:56 plugin-descriptor.properties
    -rw-r--r-- 1 hadoop hadoop  1152 Jun 30 15:42 zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json
    [hadoop@master license]$ curl -XPUT 'http://192.168.80.145:9200/_license' -d @zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json
    {"acknowledged":false,"license_status":"valid","acknowledge":{"message":"This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the \"acknowledge=true\" parameter:","marvel":["basic","Automatic index cleanup is locked to 7 days for clusters with [{}] license.basic"]}}[hadoop@master license]$ 
    [hadoop@master license]$ 

     

     

      此外,还不够,需要用admin来激活,

    [hadoop@master license]$ curl -XPUT -u admin 'http://192.168.80.145:9200/_license' -d @zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json
    Enter host password for user 'admin':
    {"acknowledged":false,"license_status":"valid","acknowledge":{"message":"This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the \"acknowledge=true\" parameter:","marvel":["basic","Automatic index cleanup is locked to 7 days for clusters with [{}] license.basic"]}}[hadoop@master license]$ 

       

      然后,查看下,如下,还是expired,即超期。

     

    [hadoop@master license]$ curl -XGET -u admin:password 'http://192.168.80.145:9200/_license'
    {
      "license" : {
        "status" : "expired",
        "uid" : "484a5464-0f2c-465e-a91e-35e202aba616",
        "type" : "trial",
        "issue_date" : "2017-04-22T01:00:14.187Z",
        "issue_date_in_millis" : 1492822814187,
        "expiry_date" : "2017-05-22T01:00:14.187Z",
        "expiry_date_in_millis" : 1495414814187,
        "max_nodes" : 1000,
        "issued_to" : "escluster",
        "issuer" : "elasticsearch"
      }

     

     

     

     

       然后,再执行,如下(肯定会成功!)

     

    [hadoop@master license]$ curl -XPUT -u admin 'http://192.168.80.145:9200/_license?acknowledge=true' -d @zhou-ls-ff02ba97-d646-4fda-96c2-45accff441d3-v2.json
    Enter host password for user 'admin':
    {"acknowledged":true,"license_status":"valid"}[hadoop@master license]$ 
    [hadoop@master license]$ 
    [hadoop@master license]$ curl -XGET -u admin:password 'http://192.168.80.145:9200/_license'
    {
      "license" : {
        "status" : "active",
        "uid" : "ff02ba97-d646-4fda-96c2-45accff441d3",
        "type" : "basic",
        "issue_date" : "2017-06-30T00:00:00.000Z",
        "issue_date_in_millis" : 1498780800000,
        "expiry_date" : "2018-06-30T23:59:59.999Z",
        "expiry_date_in_millis" : 1530403199999,
        "max_nodes" : 100,
        "issued_to" : "zhou ls (guet)",
        "issuer" : "Web Form"
      }
    }
    [hadoop@master license]$ 

     

     

     

       然后,再刷新下,就好了。

    http://192.168.80.145:5601/app/marvel

     

     

     

     

       

     

     

     

     

     

    参考

     
     
     
     
     
     
     
     
     
     
     
     
    欢迎大家,加入我的微信公众号:大数据躺过的坑     免费给分享
     
     
     

    同时,大家可以关注我的个人博客

       http://www.cnblogs.com/zlslch/   和  http://www.cnblogs.com/lchzls/ 

     

      人生苦短,我愿分享。本公众号将秉持活到老学到老学习无休止的交流分享开源精神,汇聚于互联网和个人学习工作的精华干货知识,一切来于互联网,反馈回互联网。
      目前研究领域:大数据、机器学习、深度学习、人工智能、数据挖掘、数据分析。 语言涉及:Java、Scala、Python、Shell、Linux等 。同时还涉及平常所使用的手机、电脑和互联网上的使用技巧、问题和实用软件。 只要你一直关注和呆在群里,每天必须有收获

     

           以及对应本平台的QQ群:161156071(大数据躺过的坑)

     

     

     

     

     

     

     

     

     

     

     

     
     
    哎...今天够累的,签到来了1...
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    QQ|手机版|小黑屋|Java自学者论坛 ( 声明:本站文章及资料整理自互联网,用于Java自学者交流学习使用,对资料版权不负任何法律责任,若有侵权请及时联系客服屏蔽删除 )

    GMT+8, 2024-11-21 20:39 , Processed in 0.154604 second(s), 30 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表