高峰只对攀登它而不是仰望它的人来说才有真正意义。

logstash7.5.1 默认安装 没改任何东西启动报错

Logstash | 作者 chiefyang | 发布于2021年02月19日 | 阅读数:101

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/usr/local/logstash/logstash-core/lib/jars/jruby-complete-9.2.8.0.jar) to field java.io.FileDescriptor.fd
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to /usr/local/logstash/logs which is now configured via log4j2.properties
[2021-02-19T18:20:15,678][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2021-02-19T18:20:16,283][FATAL][logstash.runner          ] The given configuration is invalid. Reason: Expected one of [ \t\r\n], "#", "input", "filter", "output" at line 252, column 1 (byte 8373) after # Settings file in YAML
 
 
下面是安装方法:


tar xvf jdk-11.0.1_linux-x64_bin.tar.gz
mv jdk-11.0.1 /usr/java
加入变量
[root@es ~]# vim .bash_profile
export JAVA_HOME=/usr/java export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
source .bash_profile
#验证jdk安装是否成功
java -version

tar -xvf logstash-7.5.1.tar.gz
mv logstash-7.5.1 /usr/local/logstash
已邀请:

要回复问题请先登录注册