国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

ELK之Logstash啟動(dòng)異常:Logstash could not be started because there is already...

這篇具有很好參考價(jià)值的文章主要介紹了ELK之Logstash啟動(dòng)異常:Logstash could not be started because there is already...。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

Logstash啟動(dòng)異常: Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
提示我們已經(jīng)有一個(gè)實(shí)例在用data目錄了,如果需要配置多個(gè)實(shí)例,則需要顯式的配置path.data的值。

[root@nb002 bin]# ./logstash -f ../config/first-pipeline.conf
Using JAVA_HOME defined java: /usr/local/jdk1.8.0_331
WARNING: Using JAVA_HOME while Logstash distribution comes with a bundled JDK.
DEPRECATION: The use of JAVA_HOME is now deprecated and will be removed starting from 8.0. Please configure LS_JAVA_HOME instead.
Sending Logstash logs to /data/logstash-7.17.4/logs which is now configured via log4j2.properties
[2022-06-27T10:40:55,149][INFO ][logstash.runner          ] Log4j configuration path used is: /data/logstash-7.17.4/config/log4j2.properties
[2022-06-27T10:40:55,176][INFO ][logstash.runner          ] Starting Logstash {"logstash.version"=>"7.17.4", "jruby.version"=>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 Java HotSpot(TM) 64-Bit Server VM 25.331-b09 on 1.8.0_331-b09 +indy +jit [linux-x86_64]"}
[2022-06-27T10:40:55,178][INFO ][logstash.runner          ] JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djdk.io.File.enableADS=true, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -Djruby.regexp.interruptible=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true]
[2022-06-27T10:40:55,537][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2022-06-27T10:40:55,552][FATAL][logstash.runner          ] Logstash could not be started because there is already another instance using the configured data directory.  If you wish to run multiple instances, you must change the "path.data" setting.
[2022-06-27T10:40:55,558][FATAL][org.logstash.Logstash    ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]
        at data.logstash_minus_7_dot_17_dot_4.lib.bootstrap.environment.<main>(/data/logstash-7.17.4/lib/bootstrap/environment.rb:94) ~[?:?]

當(dāng)然我們可以顯式的配置path.data的值,讓他指向一個(gè)新的目錄。
也可以將data目錄下的.lock文件刪除,來(lái)解決這個(gè)問(wèn)題。

[root@nb002 logstash-7.17.4]# ls
bin  config  CONTRIBUTORS  data  Gemfile  Gemfile.lock  jdk  lib  LICENSE.txt  logs  logstash-core  logstash-core-plugin-api  modules  NOTICE.TXT  tools  vendor  x-pack
[root@nb002 logstash-7.17.4]# cd data/
[root@nb002 data]# ls -alh
總用量 4.0K
drwxr-xr-x  5 root wheel  84 626 08:28 .
drwxr-xr-x 14 root root  278 626 07:58 ..
drwxr-xr-x  2 root root    6 626 07:58 dead_letter_queue
-rw-r--r--  1 root root    0 626 07:58 .lock
drwxr-xr-x  4 root root   35 626 08:57 plugins
drwxr-xr-x  2 root root    6 626 07:58 queue
-rw-r--r--  1 root root   36 626 07:58 uuid
[root@nb002 data]# rm .lock 
rm:是否刪除普通空文件 ".lock"?yes

刪除.lock文件后,再次啟動(dòng)則OK文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-732877.html

END

到了這里,關(guān)于ELK之Logstash啟動(dòng)異常:Logstash could not be started because there is already...的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶(hù)投稿,該文觀(guān)點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 解決QT This application failed to start because no Qt platform plugin could be initialized. 問(wèn)題

    解決QT This application failed to start because no Qt platform plugin could be initialized. 問(wèn)題

    This application failed to start because no Qt platform plugin could beinitialized. Reinstalling the application may fix this problem. 遇到了這個(gè)問(wèn)題,卡了蠻久的,也在網(wǎng)上找了很多方法,終于解決了!下面是我自己解決這個(gè)問(wèn)題的過(guò)程,希望能夠有參考價(jià)值,也是對(duì)自己解決這一過(guò)程的一點(diǎn)記錄: 方法

    2024年01月16日
    瀏覽(21)
  • this application failed to start because no qt platform plugin could be initialized reinstalling the

    this application failed to start because no qt platform plugin could be initialized reinstalling the

    通過(guò)chat-GPT檢索可以得到 這個(gè)錯(cuò)誤通常是由于缺少Q(mào)t平臺(tái)插件導(dǎo)致的。要解決這個(gè)問(wèn)題,可以嘗試以下方法: 1. 確保你已經(jīng)正確安裝了Qt平臺(tái)插件。如果你使用的是conda或pip安裝的Python,可以嘗試重新安裝PyQt或PySide。 2. 如果重新安裝PyQt或PySide后仍然無(wú)法啟動(dòng)應(yīng)用程序,你可以

    2024年02月15日
    瀏覽(24)
  • 解決使用PyQt5出現(xiàn)錯(cuò)誤This application failed to start because no Qt platform plugin could be initialized

    解決使用PyQt5出現(xiàn)錯(cuò)誤This application failed to start because no Qt platform plugin could be initialized

    目錄 背景介紹: 解決思路: 版本問(wèn)題: 檢查版本:首先要確定安裝版本問(wèn)題。確定你安裝的PyQt5版本支持你下載的python的版本。 降python版本: 下載PyQt5 plugins缺少dll文件問(wèn)題 環(huán)境變量問(wèn)題 我這個(gè)學(xué)期開(kāi)始上圖形學(xué),寫(xiě)上機(jī)作業(yè)第一次用到PyQt5寫(xiě)GUI,寫(xiě)了簡(jiǎn)單的代碼測(cè)試工具

    2024年02月11日
    瀏覽(23)
  • 關(guān)于 ELK 環(huán)境中 logstash 報(bào)【Could not index event to Elasticsearch. {:status=>400...】問(wèn)題處理記錄

    最近公司決定將后臺(tái)輸出日志分類(lèi)存儲(chǔ)到es 同時(shí)做前臺(tái)查詢(xún)展示功能;三類(lèi)日志JSON數(shù)據(jù)結(jié)構(gòu)相同;技術(shù)選型理所當(dāng)然的選了elk 因?yàn)楣疽延衅渌?xiàng)目再用,并且環(huán)境已搭建好(but 沒(méi)有開(kāi)發(fā)環(huán)境,只能自己在windows 上安裝 win 版elk 還算順利)。 數(shù)據(jù)流向: filebeat=》logstash=》

    2024年02月15日
    瀏覽(20)
  • vue-video-player 在使用時(shí)視頻加載不出來(lái),報(bào)錯(cuò)The media could not be loaded, either because the server ...

    vue-video-player 在使用時(shí)視頻加載不出來(lái),報(bào)錯(cuò)The media could not be loaded, either because the server ...

    問(wèn)題:在項(xiàng)目里安裝引入vue-video-player之后,在開(kāi)發(fā)階段引入本地圖片,顯示X,同時(shí)報(bào)錯(cuò) The media could not be loaded, either because the server or network failed or because the format is not supported 解決:引入本地視頻資源時(shí)需要require引入, 配置引入使用的相關(guān)代碼:

    2024年02月11日
    瀏覽(30)
  • nacos啟動(dòng)報(bào)錯(cuò)Nacos Server did not start because dumpservice bean construction failure :No DataSource set

    nacos啟動(dòng)報(bào)錯(cuò)Nacos Server did not start because dumpservice bean construction failure :No DataSource set

    剛開(kāi)始看到這個(gè)錯(cuò)誤還是挺蒙的,nacos啟動(dòng)居然還能報(bào)錯(cuò),仔細(xì)一看報(bào)錯(cuò)說(shuō)的數(shù)據(jù)源問(wèn)題,才想起來(lái)是之前設(shè)置了nacos配置中心持久化的問(wèn)題,使用nacos配置中心持久化我們會(huì)在nacos配置文件中指定持久化數(shù)據(jù)源,因此如果你的持久化數(shù)據(jù)源nacos連接不到,nacos就會(huì)報(bào)錯(cuò) 解決方案

    2024年02月11日
    瀏覽(15)
  • Qt-解決異常報(bào)錯(cuò)“QAxBase::setControl: requested control XXX could not be instantiated”

    Qt-解決異常報(bào)錯(cuò)“QAxBase::setControl: requested control XXX could not be instantiated”

    作者:翟天保Steven 版權(quán)聲明:著作權(quán)歸作者所有,商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處 ? ? ? ?使用Qt開(kāi)發(fā)的過(guò)程中,QAxObject是經(jīng)常用到的一個(gè)類(lèi),用于操作Windows中各種COM接口,進(jìn)而實(shí)現(xiàn)各類(lèi)功能。 ? ? ? ?WbemScripting.SWbemLocator是我想要通過(guò)QAxObject訪(fǎng)問(wèn)的對(duì)

    2024年02月12日
    瀏覽(24)
  • error when starting dev server:Error: The package “@esbuild/win32-x64“ could not be found, and is n

    error when starting dev server:Error: The package “@esbuild/win32-x64“ could not be found, and is n

    在學(xué)習(xí)vue3,使用vite創(chuàng)建項(xiàng)目,啟動(dòng)npm run dev時(shí)報(bào)錯(cuò) ?? 個(gè)人網(wǎng)站: 【紫陌】【筆記分享網(wǎng)】 ?? 想尋找共同學(xué)習(xí)交流、共同成長(zhǎng)的伙伴, 請(qǐng)點(diǎn)擊【前端學(xué)習(xí)交流群】 failed to load config from C:UsersPC3803DesktopVue3+TSvue3_ts_cmsvite.config.ts error when starting dev server: Error: The package \\\"@esb

    2024年02月05日
    瀏覽(26)
  • 啟動(dòng)Hadoop報(bào)錯(cuò)(Error: JAVA_HOME is not set and could not be found.)

    JAVA_HOME is not set and could not be found 首先確定JDK是否安裝配置:通過(guò) java -version查看JDK版本信息。 如果查詢(xún)不到版本信息,需下載JDK并配置環(huán)境變量。 在JDK配置無(wú)錯(cuò)的情況下,可能是沒(méi)有配置hadoop-env.sh文件。這個(gè)文件里寫(xiě)的是hadoop的環(huán)境變量,主要修改hadoop的JAVA_HOME路徑。 切換

    2024年02月12日
    瀏覽(104)
  • HADOOP啟動(dòng)集群報(bào)錯(cuò)JAVA_HOME is not set and could not be found.

    HADOOP啟動(dòng)集群報(bào)錯(cuò)JAVA_HOME is not set and could not be found.

    首先確保配置好 JAVA_HOME的環(huán)境變量 并在普通用戶(hù)和Root用戶(hù)下都輸入? ?Java -version? 確認(rèn)配置成功 注意:如果普通用戶(hù)輸入命令成功顯示jdk版本,root用戶(hù)輸入命令卻顯示找不到 Java命令。其中一種可能的解決辦法是:修改環(huán)境變量的配置文件, 先查找 JAVA_HOME/bin 再查找PATH

    2024年04月26日
    瀏覽(24)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包