Coder Social home page Coder Social logo

Found 0 results about es2csv HOT 15 CLOSED

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024
Found 0 results

from es2csv.

Comments (15)

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024 1

My apologies, but es2csv currently supports only Elasticsearch 2.x and 5.x.
You can try to use es2csv-2.4.4 or downgrade to oldest one.

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

Try: es2csv -i enron_test -q '*' -o database.csv

from es2csv.

fourteenminusone avatar fourteenminusone commented on May 23, 2024

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

Please use python 2.7.

from es2csv.

fourteenminusone avatar fourteenminusone commented on May 23, 2024

I'm using python 2.7

python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

File "/usr/local/lib/python3.5/dist-packages/es2csv.py", line 237, in
Looks like pip is not.

from es2csv.

fourteenminusone avatar fourteenminusone commented on May 23, 2024

from es2csv.

fourteenminusone avatar fourteenminusone commented on May 23, 2024

How to uninstall and install again this utility?

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

How can I use python 2.7 with es2csv?

Use pip which using python 2.7 for installation es2csv.

How to uninstall and install again this utility?

pip uninstall es2csv
pip install es2csv

from es2csv.

matthewbyrne avatar matthewbyrne commented on May 23, 2024

I'm having the same problem, but im using python 2.7:

Run query [                                                              ] [0/1398742] [  0%] [0:00:00] [ETA:  --:--:--] [  0.0 s/docs]Traceback (most recent call last):
  File "/usr/local/bin/es2csv", line 11, in <module>
    load_entry_point('es2csv==5.2.1', 'console_scripts', 'es2csv')()
  File "/Library/Python/2.7/site-packages/es2csv.py", line 283, in main
    es.search_query()
  File "/Library/Python/2.7/site-packages/es2csv.py", line 40, in f_retry
    return f(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/es2csv.py", line 177, in search_query
    res = next_scroll(res['_scroll_id'])
  File "/Library/Python/2.7/site-packages/es2csv.py", line 40, in f_retry
    return f(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/es2csv.py", line 93, in next_scroll
    return self.es_conn.scroll(scroll=self.scroll_time, scroll_id=scroll_id)
  File "/Library/Python/2.7/site-packages/elasticsearch/client/utils.py", line 73, in _wrapped
    return func(*args, params=params, **kwargs)
  File "/Library/Python/2.7/site-packages/elasticsearch/client/__init__.py", line 955, in scroll
    params=params, body=body)
  File "/Library/Python/2.7/site-packages/elasticsearch/transport.py", line 318, in perform_request
    status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
  File "/Library/Python/2.7/site-packages/elasticsearch/connection/http_urllib3.py", line 128, in perform_request
    self._raise_error(response.status, raw_data)
  File "/Library/Python/2.7/site-packages/elasticsearch/connection/base.py", line 122, in _raise_error
    raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
elasticsearch.exceptions.RequestError```

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

@matthewbyrne Your request hit 1398742 results.
@RicoSpm did you fix your problem?

from es2csv.

matthewbyrne avatar matthewbyrne commented on May 23, 2024

@taraslayshchuk Yup. Proud of that. Is there a limit?

from es2csv.

taraslayshchuk avatar taraslayshchuk commented on May 23, 2024

@matthewbyrne No, please provide more information: OS, python version, es2csv version, elasticsearch version and run arguments. And it will be better to open a separate issue.

from es2csv.

matthewbyrne avatar matthewbyrne commented on May 23, 2024

Im running this dockerised ELK stack:
https://hub.docker.com/r/sebp/elk/
Using this tag version:
ELK: E1L1K4: Elasticsearch 1.7.3, Logstash 1.5.5, and Kibana 4.1.2.
OS: Running Enterprise Linux 7
Python version: Python 2.7.6
es2csv version: es2csv 5.2.1
Command:
es2csv -f field1 field2 field3 -i logstash-2017.06.19 -q 'type: nginx' -o database.csv>

from es2csv.

matthewbyrne avatar matthewbyrne commented on May 23, 2024

That looks to have got me over that hurdle.
pip install -I es2csv==2.4.4 to install the older version, and the query is running at the moment. Pulling down 5.4million records. Fun.

from es2csv.

Related Issues (20)

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.