es7学习杂记

xpack.ml.enabled: false

The setting '#/' contains additional properties ["action"] outside of the schema when none are allowed

select a.id,a.name,a.tags,concat(a.latitude,',',a.longitude) as location,a.remark_score,a.price_per_man,a.category_id,b.nam

bin/app-search --reset-install-lock

action.auto_create_index: ".app-search-*-logs-*,-.app-search-*,+*"


ailed to execute on node [DviuKRa7TuGTsrXr57d-cA]
org.elasticsearch.transport.RemoteTransportException: [node-1][172.17.0.1:9300][cluster:admin/tasks/cancel[n]]


结果找了老半天没发现错误,于是用命令:logstash -f ../config/logstash-simple-dev.conf -t

去测试配置文件是否正常。结果显示无效配置文件,也就是说配置文件出错了


input {
    jdbc {
      # mysql 数据库链接,test为数据库名
      jdbc_connection_string => "jdbc:mysql://192.168.0.103:3306/dianpingdb?characterEncoding=UTF-8&useSSL=false&&serverTimezone=Hongkong"
      # 用户名和密码
      jdbc_user => "root"
      jdbc_password => "123456"
      # 驱动
      jdbc_driver_library => "/opt/es7/logstash-7.5.2/bin/mysql/mysql-connector-java-8.0.13.jar
      # 驱动类名
      jdbc_driver_class => "com.mysql.jdbc.Driver"
      jdbc_paging_enabled => "true"
      jdbc_page_size => "50000"
      # 执行的sql 文件路径+名称
      statement_filepath => "/opt/es7/logstash-7.5.2/bin/mysql/jdbc.sql"
      # 设置监听间隔 各字段含义(由左至右)分、时、天、月、年,全部为*默认含义为每分钟都更新
      schedule => "* * * * *"
    }
}
output {
    stdout { 
        codec => json_lines 
    }
    elasticsearch {
        hosts => ["192.168.0.11:9200"]
        index => "shop"
        document_type => "_doc"
        document_id => "%{id}"
  }
}


curl -XPUT -H "Content-Type: application/json" http://192.168.0.11:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值