elasticsearch river 매개 변수 문서
JDBC River parameters
Jörg Prante edited this page on 23 Jan 2014 · 3 revisions
Pages 15
Clone this wiki locally
Clone in Desktop
Overview of the default parameter settings:
{
"jdbc" :{
"strategy" : "simple",
"url" : null,
"user" : null,
"password" : null,
"sql" : null,
"schedule" : null,
"poolsize" : 1,
"rounding" : null,
"scale" : 2,
"autocommit" : false,
"fetchsize" : 10, /* Integer.MIN for MySQL */
"max_rows" : 0,
"max_retries" : 3,
"max_retries_wait" : "30s",
"locale" : Locale.getDefault().toLanguageTag(),
"index" : "jdbc",
"type" : "jdbc",
"bulk_size" : 100,
"max_bulk_requests" : 30,
"bulk_flush_interval" : "5s",
"index_settings" : null,
"type_mapping" : null
}
}
strategy
-the strategy of the JDBC river, currently implemented: "simple", "column"url
- the JDBC URL user
- the JDBC database user password
- the JDBC database password sql
- SQL statement(s), either a string or a list. If a statement ends with .sql, the statement is looked up in the file system. Example for a list of SQL statements: "sql" : [
{
"statement" : "select ... from ... where a = ?, b = ?, c = ?",
"parameter" : [ "value for a", "value for b", "value for c" ],
"callable" : false
},
{
"statement" : ...
}
]
parameter
- bind parameters for the SQL statement (in order) callable
- boolean flag, if true, the SQL statement is interpreted as a JDBC CallableStatement (default: false) schedule
- a cron expression for scheduled execution. Syntax is equivalent to the Quartz cron expression format and is documented at http://jprante.github.io/elasticsearch-river-jdbc/apidocs/org/xbib/elasticsearch/river/jdbc/support/cron/CronExpression.html poolsize
- the pool size of the thread pool that executes the scheduled SQL statements rounding
- rounding mode for numeric values: "ceiling", "down", "floor", "halfdown", "halfeven", "halfup", "unnecessary", "up"scale
- the precision of the numeric values autocommit
- true if each statement should be automatically executed fetchsize
- the fetchsize for large result sets, most drivers implement fetchsize
to control the amount of rows in the buffer while iterating through the result set max_rows
- limit the number of rows fetches by a statement, the rest of the rows is ignored max_retries
- the number of retries to (re)connect to a database max_retries_wait
- the time that should be waited between retries locale
- the default locale (used for parsing numerical values, floating point character) index
- the Elasticsearch index used for indexing the data from JDBC type
- the Elasticsearch type of the index used for indexing the data from JDBC bulk_size
- the length of each bulk index request submitted max_bulk_requests
- the maximum number of concurrent bulk requests bulk_flush_interval
- the time period the bulk processor is flushing outstanding documents index_settings
- optional settings for the Elasticsearch index type_mapping
- optional mapping for the Elasticsearch index type 다음으로 전송:https://www.cnblogs.com/bmaker/p/5472447.html
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.