问题标签 [elasticsearch-jdbc-river]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
237 浏览

elasticsearch - ElasticSearch JDBC River Structured Objects 强制数组

我正在使用 JDBC River 将数据从 Oracle 数据库中提取到 ElasticSearch。

如以下链接所述,左连接可用于获取单个 json 数组中相同主 id 记录的一列的多个值。但是如果 left join 后只有一条记录,river 不会创建数组,而是将值放在 json 字段中。

这导致NEST无法理解对象的类型。

https://github.com/jprante/elasticsearch-jdbc#structured-objects

那么,有什么方法可以强制某些字段为数组,即使它只有一个值?

0 投票
2 回答
11020 浏览

jdbc - Elasticsearch River 插件的替代品

我想将 Elasticsearch 索引与 SQL 数据库的内容同步。Elasticsearch JDBC River 满足我的所有要求,但在文档中说该插件已弃用。

我不想使用在接下来的几年中不受支持的工具。有哪些替代方案?

在河流的文档中,它说:

注意,JDBC 插件不仅是一条河流,还是一个独立的模块。因为 Elasticsearch River API 已被弃用,所以这是一个重要功能。

为什么它是一个重要的功能?这是否意味着尽管被弃用,我仍然可以无限期地使用它,例如使用馈线而不是河流?

0 投票
0 回答
426 浏览

elasticsearch - alternative jdbc-river and shield

My goal is that I have admin rights on kibana 4. I wish I could edit the content and save dashboard, etc... and to share its with others users. But I don't want the others users should be able to save my dashboard or to remove its, etc... Only that they have rights in reading.

I tried and I successed to install plugin shield for to have the authentication on elasticsearch but on kibana 4 essentially. I configured correctly the roles of users and admin. I arrived to save data through logstash, however, for mysql connection and through jdbc-river-plugin, I find an error with jdbc and authorization :

I explain that before without shield-plugin installation, everything was working well. I read that it's not compatible with shield-plugin and jdbc-river-plugin.

Exists it one alternative for to have a compatibility with authentication and mysql connection, so an alternative with shield-plugin or jdbc-river-plugin? And with shield-plugin, I risk to find an other error in 30 day because it's trial version.

Can I replace shield-plugin with LDAP-river-plugin or with elasticsearch-security-plugin or other? And can I replace jdbc-river-plugin with mongodb-river-plugin or with couchdb-river-plugin or other?

Thanks!

0 投票
1 回答
314 浏览

sql - 带有进纸器和批处理文件的 SQL 多行语法?

我成功配置了您的建议。用一行简单的sql,就运行起来了。

但是对于多行 SQL,它不会运行。

多行的 sql 语法是什么?

错误是:

它在换行符处解析。

0 投票
1 回答
691 浏览

jdbc - Elastic Search JDBC River 插件 SQL Server 集成安全性

因此,我一直致力于使用 JDBC River 插件实现弹性搜索,以将 SQL Server DB 中的数据获取到弹性搜索中。

我使用 SQL Server 凭据可以正常工作,但尝试使用集成安全性不起作用。它将创建索引,但其中没有数据。我一直在使用的参数是:

我已经尝试了很多东西,包括完全删除用户和密码字段,删除integratedSecurity=true,但它给出了相同的结果。我已经在他们的 github 上查看了 River 插件,它说这个问题在一月份已经修复,但它似乎仍然没有工作。

我也在使用弹性搜索版本:1.5.1 和 jdbc River 插件版本:1.4.0.10

任何帮助将非常感激

0 投票
1 回答
1828 浏览

elasticsearch - Elasticsearch standalone JDBC river feeder missing main class

I'm trying to setup the feeder following this instruction https://github.com/jprante/elasticsearch-jdbc#installation I downloaded and unzipped the feeder
I don't quite understand this step:

run script with a command that starts org.xbib.tools.JDBCImporter with the lib directory on the classpath

what am I suppposed to do?

if I try to run a sample script from bin I get:

where do I get the java classes org.xbib.elasticsearch.plugin.jdbc.feeder.Runner \ org.xbib.elasticsearch.plugin.jdbc.feeder.JDBCFeeder?

0 投票
0 回答
244 浏览

elasticsearch - Elasticsearch jdbc 按_id排序

我想让我的结果可以按 _id 排序,所以我需要添加

到我的索引,对吗?
这是我的 jdbc feeder 脚本:

我添加了

但它不起作用
我在哪里添加这个设置?

0 投票
0 回答
408 浏览

jdbc - 将 jprante elasticsearch-jdbc 导入脚本作为服务启动

这是我的脚本:

当我用 & 最后运行脚本时,它应该可以正常工作,但是有没有更好的方法来运行这个脚本?作为服务也许?

0 投票
0 回答
156 浏览

jdbc - JDBC 插件 feeder 模式在 feed 脚本中发现类错误

我正在按照此链接中的说明进行操作 - https://github.com/jprante/elasticsearch-jdbc/wiki/JDBC-plugin-feeder-mode-as-an-alternative-to-the-deprecated-Elasticsearch-River- API

  • ES - 1.7.0
  • JDBC - 1.7.0.1

我的提要脚本和所有结构如下所示:

我一直收到这个错误:

错误:无法找到或加载主类 org.xbib.elasticsearch.plugin.jdbc.feeder.Runner

0 投票
1 回答
424 浏览

elasticsearch - Elasticsearch-JDBC - 初始设置 - ClassNotFoundException - JDBCFeeder

在下载 elasticsearch-jdbc 并第一次运行一个简单的脚本后,我得到了以下异常。