我在安装elasticsearch时很难设置JDBC river mysql连接器
首先,我将阅读所有https://github.com/jprante/elasticsearch-river-jdbc操作指南
不同是我通过yum install elasticsearch从RPM存储库安装elasticsearch的地方,不知何故它将我的elasticsearch安装在/usr/share/elasticsearch中,但配置在/etc/elasticsearch中
问题出在我安装jdbc插件的时候,安装后已经通过plugin -l检查过了,确实有jdbc驱动程序,但是当我运行bin/elasticsearch时
它没有显示任何有用的东西,就像

它起作用了吗?如何显示调试和信息?
发布于 2016-02-04 07:31:03
这个问题已经过时了,但可能会对其他人有所帮助。
./elasticsearch -Des.logger.level=DEBUG
谢谢:)
发布于 2020-02-06 00:19:23
在更新的ES版本中,即7.x版本中,该选项为
-v 表示详细
bin/elasticsearch -v发布于 2020-03-05 18:31:34
通常在配置目录(以及elasticsearch.yml)中有一个log4j2.properties文件。在这里,您可以完全控制日志记录。您可以通过以下方式将所有内容设置为调试:
rootLogger.level = debug不过,如果我想对特定的代码块进行更详细的日志记录,我通常会使用Cluster Update Settings API。类似于:
curl -XPUT -H 'Content-Type: application/json' localhost:9200/_cluster/settings -d '{
"transient": {
"logger.org.xbib.elasticsearch.jdbc.strategy": "trace"
}
}'尽管JDBC导入程序已经有一段时间没有更新了。
https://stackoverflow.com/questions/24098662
复制相似问题