我有一个非常简单的bash脚本,它每分钟运行一次cron作业。它会记录到文件中。一切正常,但有一件事很奇怪。脚本同时生成多个日志。我不明白这怎么可能。这是密码。
#!/bin/bash
# -c returns number of lines in grep result
isActive=$(systemctl status elasticsearch | grep "active (running)" -c)
if (( $isActive == 0 ))
then
systemctl start elasticsearch
timestamp=$(
我刚刚通过APT:https://www.elastic.co/guide/en/elasticsearch/reference/5.0/deb.html遵循了Elasticsearch的安装指南
当我运行curl -X GET 'http://127.0.0.1:9200/' (或本地主机)时,会收到一个错误:Failed to connect to 127.0.0.1 port 9200: Connection refused
在我的配置中,我使用:
network.bind_host: localhost
network.publish_host: 0.0.0.0
net
我正在尝试启动windows上的elasticsearch。
ES 5.0.0、JDK 1.8.0.66、Windows 10
服务已正确安装,但无法启动。
D:\Softwares\Elastic_Project\elasticsearch-5.0.0\bin>elasticsearch-service install
C:\Program Files\Java\jdk1.8.0_66
Installing service : "elasticsearch-service-x64"
Using JAVA_HOME (64-bit): "C:\Program Fi
我已经安装了ElasticSearch,在安装Magento之前,我正在尝试开始。我得到了这个错误:
sudo systemctl start elasticsearch.service
Job for elasticsearch.service failed because the control process exited with error code. See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
systemctl status elas
大家新年快乐!
我的目标是编写一个查询来返回结果活动或非活动。到目前为止,这就是我所做的。有人知道如何正确地写这个查询吗?
SELECT COUNT (*) AS Active FROM ADF_Course
WHERE CourseActive=1 OR CourseActive='y'
ELSE IF CourseActive=n
THEN CourseActive IS Inactive
当我尝试在laravel中索引我的elasticsearch时: php artisan elastic:index 我得到以下错误: start with '_', found: [_doc]
at org.elasticsearch.cluster.metadata.MetaDataMappingService$PutMappingExecutor.applyRequest(MetaDataMappingService.java:297) ~[elasticsearch-6.0.0.jar:6.0.0]
at org.elasticsearch.cluster.me
我试图卸载elasticsearch并重新安装它。当我用下面的命令删除它时,它会显示以下错误。
$ apt-get --purge autoremove elasticsearch
Reading package lists... Done<br/>
Building dependency tree<br/>
Reading state information... Done<br/>
The following packages will be REMOVED:<br/>
elasticsearch*<br/>
0 upgrade
我通过以下方式安装了两个elasticsearch服务:
service install node1
service install node2
我试图使用以下两个命令启动运行script.bat文件的elasticsearch节点:
service start node1
service start node2
命令行上的输出是:
C:\Users\User1\Desktop\Work\ElasticSearch\elasticsearch-1.3.1\bin>script.bat
C:\Users\User1Desktop\Work\ElasticSearch\elasticsea
我正在测试goolge容器引擎,一切都很好,直到我发现了这个非常奇怪的问题。
bash-3.2# kubectl get services --namespace=es
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE
elasticsearch-logging 10.67.244.176 <none> 9200/TCP name=elasticsearch-logging 5m
bash-3.2# ku
我想将我的elasticsearch.yaml更改为远程访问。
network.host: 0.0.0.0
做完这件事后,我做了一个
sudo systemctl restart elasticsearch
并且它返回错误。
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
在日志中,-xe -xe是:
ERROR: [1] bootstrap checks failed. You must address the points described in
我已经安装了Elasticsearch,现在由于其他人在我的工作地点所做的一些更改,在任何操作(如update )中不断出现一些错误,安装一个新的包,而且elasticsearch也不能正常工作。
安装新包时附加了错误日志.
$ sudo apt-get install bash-completion
Reading package lists... Done
Building dependency tree
Reading state information... Done
bash-completion is already the newest version (1:2.1-4.2ub
这是我的配置
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /mulelogs/elasticsearch
path.logs: /mulelogs/elasticsearch
当我重新启动ElasticSearch时,我得到的是:
elasticsearch.service - E
我试图确定elasticsearch实例是否正在运行,但它似乎不是:
ubuntu@ubuntu:~$ sudo service elasticsearch status
* elasticsearch is not running
ubuntu@ubuntu:~$ sudo service elasticsearch start
* Starting Elasticsearch Server [ OK ]
ubuntu@ubuntu:~$ sudo service elasticsearch status
* elasticsearch is not running
and
ub
我试图在AWS EC2实例上设置ELK堆栈。我对此很陌生,我正在学习我在网上发现的这个教程:。
但是,当我运行service elasticsearch start时,我会收到以下错误消息:
Job for elasticsearch.service failed because the control process exited with error code.
See "systemctl status elasticsearch.service" and "journalctl -xeu elasticsearch.service" for detail