問題詳情
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


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!
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(大數據躺過的坑)



