首页 技术 正文
技术 2022年11月23日
0 收藏 972 点赞 4,918 浏览 2650 个字

1:

Failed to execute action
{:action=>LogStash::PipelineAction::Create/pipeline_id:main,
:exception=>"LogStash::ConfigurationError",
:message=>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after ",
:backtrace=>["D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:42:in `compile_imperative'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:50:in `compile_graph'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in `map'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:11:in `compile_sources'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:49:in `initialize'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:167:in `initialize'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/pipeline_action/create.rb:40:in `execute'", "D:/elasticsearch-6.3.1/logstash-6.3.2/logstash-core/lib/logstash/agent.rb:305:in `block in converge_state'"]}

解决方案:

出现上面报错的原因是没有使用正确的配置文件,更改文件路径即可   需要做的是检查文件路径、格式   注意必须是conf格式文件

2:

Failed to execute action {
:action=>LogStash::PipelineAction::Create/pipeline_id:main,
:exception=>"LogStash::ConfigurationError",
:message=>"Expected one of \r, \n at line 52, column 113 (byte 1530) after #com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library?",
:message=>"Expected one of \r, \n at line 53, column 113 (byte 1631) after #com.mysql.jdbc.Driver not loaded. Are you sure you've included the correct jdbc driver in :jdbc_driver_library
:backtrace=>["F:/search/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:42:in `compile_imperative'", "F:/search/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:50:in `compile_graph'", "F:/search/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in `map'", "F:/search/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:11:in `compile_sources'", "F:/search/logstash-6.3.2/logst

解决方案:

是配置文件格式错误
# the user we wish to excute our statement as
jdbc_user => "root"
jdbc_password => "root"
# the path to our downloaded jdbc driver
jdbc_driver_library => "D:\\elasticsearch-6.3.1\\mysql-connector-java-5.1.46\\mysql-connector-java-5.1.46-bin.jar"
# the name of the driver class for mysql
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_paging_enabled => true
jdbc_page_size => "50000"
不能出现注释,注释的格式错误,改成
jdbc_user => "root"
jdbc_password => "root"
jdbc_driver_library => "D:\\elasticsearch-6.3.1\\mysql-connector-java-5.1.46\\mysql-connector-java-5.1.46-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_paging_enabled => true
jdbc_page_size => "50000"

微信扫一扫

支付宝扫一扫

本文网址:https://www.zhankr.net/141290.html

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:875 阅读:5,071
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:806 阅读:3,505
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:565 阅读:4,316
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:730 阅读:4,310
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:4,911
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:3,099
发表评论
暂无评论

还没有评论呢,快来抢沙发~

助力内容变现

将您的收入提升到一个新的水平

点击联系客服

在线时间:8:00-16:00

客服电话

400-888-8888

客服邮箱

ceotheme@ceo.com

扫描二维码

关注微信公众号

扫描二维码

手机访问本站