Elasticsearch ver 1.4.2轮询配置不起作用。为什么?

时间:2015-06-07 06:49:53

标签: sql-server elasticsearch polling

您好'我试图每5秒轮询一次表数据,但它不起作用

POST /_river/mytest_river/_meta
{
    "type":"jdbc",
    "jdbc": 
    {
        "driver":"com.microsoft.sqlserver.jdbc.SQLServerDriver",
        "url":"jdbc:sqlserver://[my_ip];databaseName=mega",
        "user":"sa","password":"******",
        "sql":"SELECT [OrderID],[CustomerName],[UserFullName],[Status]  FROM [Orders_Table]",
        "poll":"5s",
        "index": "mega",
        "type": "orders_table"     
    }
}

我的配置有什么问题?

1 个答案:

答案 0 :(得分:0)

您需要使用"schedule"参数,如下所述: Time scheduled execution of JDBC river