安装Ubuntu Elastic Search后出现错误。

huangapple 未分类评论44阅读模式
英文:

Error after installing Ubuntu Elastic Search

问题

我已经安装了Java SDK 8和Elasticsearch 6.8。当我重新启动Elasticsearch时,我遇到了以下错误:

> 由于超时,elasticsearch.service的作业失败。

当我运行journalctl -xe时,我得到了以下错误:

> bitmask-vpn[21283]:在SNAP环境中使用'/tmp'路径将导致资源不可读。

为解决此问题,我已经采取了以下步骤:

a. 确保我已经安装了Java SDK 8。当我运行echo $JAVA_HOME时,它返回:

/usr/lib/jvm/java-8-openjdk-amd64

b. 然后我打开了:

sudo nano /etc/elasticsearch/elasticsearch.yml

并注释掉了httpport一行。

c. 我还运行了sudo apt-get autoremove命令。

问题仍然存在。

英文:

I have installed java SDK 8 and elastic search 6.8. When I restarted elastic search, I got this error:

> Job for elasticsearch.service failed because a timeout was exceeded.

and when I run journalctl -xe, i get this error:

> bitmask-vpn[21283]: Using '/tmp' paths in SNAP environment will lead
> to unreadable resources

What I have done to solve this issue:

a. I made sure that I have Java SDK 8. When I run echo $JAVA_HOME, it returns

/usr/lib/jvm/java-8-openjdk-amd64

b. Then I went to

sudo nano /etc/elasticsearch/elasticsearch.yml

and commented out httpport

c. I have also run sudo apt-get autoremove

The issue still persists.

huangapple
  • 本文由 发表于 2020年4月10日 20:04:46
  • 转载请务必保留本文链接:https://java.coder-hub.com/61139879.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定