Comments (4)
- It's not needed. ConfigSync has read/write permission for all files.
- Send POST requst to /_configsync/flush
from elasticsearch-configsync.
Thanks for you info. It seems the file content is not flushed in my setup. I use ES version 2.2.0 and install ConfigSync 2.2.0.
What i did:
- Create a file /tmp/user-dict.txt with content: "hello"
- curl -XPOST localhost:9200/configsync/file?path=test/user-dict.txt --data-binary @/tmp/user-dict.txt
- See that content in config/test/user-dict.txt is "hello"
- Change content in /tmp/user-dict.txt to "bonjour"
- curl -XPOST localhost:9200/configsync/file?path=test/user-dict.txt --data-binary @/tmp/user-dict.txt
response: {"acknowledged":true} - Check: curl -XGET localhost:9200/_configsync/file?path=test/user-dict.txt
response: "bonjour" - curl -XPOST http://localhost:9200/_configsync/flush
response: {"acknowledged":true} - Check content in config/test/user-dict.txt, it is still "hello"
In the ES log i just see a sequence of lines:
[2017-02-20 10:15:19,808][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Alex Wilder] Scheduled ConfigFileUpdater with 1m
[2017-02-20 10:16:19,812][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Alex Wilder] Scheduled ConfigFileUpdater with 1m
[2017-02-20 10:17:19,814][INFO ][org.codelibs.elasticsearch.configsync.service.ConfigSyncService] [Alex Wilder] Scheduled ConfigFileUpdater with 1m
....
Many thanks for looking at the issue.
from elasticsearch-configsync.
Maybe there is issue in logic of checking timestamp to apply the file modification.
On my machine, Zurich time zone, when the file is saved, its timestamp is the same as time on the machine: 11:50
However after 20 minutes (time on the machine is 12:10) I post new content, the content in index is:
_source": {
"path": "test/user-dict.txt",
"content": "aGFsbG8K",
"@timestamp": "2017-02-20T11:10:43.566Z"
}
So 11:10 < 11:50 => content is not modified.
from elasticsearch-configsync.
ok i see the line sdf.setTimeZone(TimeZone.getTimeZone("UTC")); is missing in the method getTimestamp compare to newest version. Could you please add that line for branch 2.2.x and make new build? Because of some constraints we cannot update our ES to version 5.x for now so we still have to use 2.2.0. Many thanks.
from elasticsearch-configsync.
Related Issues (9)
- ES 7.11 version issues HOT 4
- contains illegal permission HOT 1
- i wonder this libarary
- configsync 8.4.1.0 installation is failing HOT 1
- Fess 12.0.2 external Cluster ES 6.1.0 failed with xpack HOT 1
- Register file fail in ES 6.2.3. HOT 2
- Reflects change user dic automatically? HOT 7
- Works with Sudachi analyzer? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-configsync.