Code Monkey home page Code Monkey logo

estools's People

Contributors

mkocikowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

estools's Issues

Record metrics

after upload, record metrics (data size, time) as a single line, possibly appending to a log file, like siege does.

make rackspace support optional

downloads a ton of crap, user should have the option to install pyrax, and, if it is installed, then then rack cloud download functionality should be available

Aliases not removed properly with ES 2.x

Following an upload, the sequence was: close the 'old' index, remove the alias, assign the alias to new index. This doesn't work with 2.x: after the index is closed, the alias can't be removed, and so it then points to multiple indexes. So the solution here is to not close the old index (hack, but works; the tools will be rewritten from the ground up any way soon-ish). Version bump to 0.3.3

RuntimeError when running against elasticsearch5 cluster

when running esdump against an elasticseach5 cluster I get the following output:

Traceback (most recent call last):
  File "/usr/local/bin/esdump", line 9, in <module>
    load_entry_point('estools==0.3.4', 'console_scripts', 'esdump')()
  File "/usr/local/lib/python2.7/dist-packages/estools/dump/dump.py", line 54, in main
    for doc in run(params=args, session=requests.Session()):
  File "/usr/local/lib/python2.7/dist-packages/estools/common/api.py", line 164, in scan
    url, response = _scan_query(params=params, query=query)
  File "/usr/local/lib/python2.7/dist-packages/estools/common/api.py", line 30, in wrapper
    raise RuntimeError("status code %i returned by es call" % response.status_code)
RuntimeError: status code 400 returned by es call

option to retry on input EOF / error with esload

When an input file reaches EOF / closes for some other reason, there should be an option to reopen / retry that file; I need that for reading from named pipes, where the producer can terminate, and then another producer can start writing - I want the loader to have the option to continue reading from that file. Specifically, this comes up for me when a kafka consumer is writing to a named pipe, and it dies / quits / another consumer comes up.

basic 'esdump' tool

Dump data and / or mapping. Make it so that it can be piped straight into 'esload' for easy copying of indexes.

Change idpath to id-field

This lets you specify which of document's fields should be used as the doc id. It should be --id-field ('path' is a misnomer).

Remove Kafka, Rax

Make this a simple, single purpose tool. Doesn't matter where the data is coming from / going to: this is what pipes are for.

Batch uploads

Need --batch-size and --optimize-segments flags. For now, --follow should disable batching / optimization, but down the line these should work together.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.