Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure how I am supposed to be using ths module #103

Open
awiley-coyote opened this issue Apr 6, 2022 · 3 comments
Open

Not sure how I am supposed to be using ths module #103

awiley-coyote opened this issue Apr 6, 2022 · 3 comments
Labels

Comments

@awiley-coyote
Copy link

I have tried using this module on the command line and in a script. All I am getting is errors.

I am on Ubuntu 20.04

@awiley-coyote
Copy link
Author

Capture
Here is the error.

The script is just:
import elasticsearch-loader

print("This works") #testing is the error is python
elasticsearch_loader --help

@stale
Copy link

stale bot commented Apr 28, 2022

This issue has been automatically marked as stale because it has not had recent activity (14 days). It will be closed if no further activity occurs in the next 7 days. Thank you for your contributions.

@stale stale bot added the stale label Apr 28, 2022
@lucafrost
Copy link

Capture Here is the error.

The script is just: import elasticsearch-loader

print("This works") #testing is the error is python elasticsearch_loader --help

If I understand correctly, you're using the module incorrectly... Here's how (theoretically) to get the package working — N.B. this will only work if you're running Elasticsearch version < 8 until my pull requests are merged: #104 #105

This is all to be done via terminal/CLI

  1. pip install elasticsearch-loader
  2. elasticsearch_loader --es-host <your elastic endpoint> --http-auth elastic:<password> --index <index name> json path_to_file.json

@awiley-coyote if you'd like to specifically do this within a .py file, let me know & I'll try my best to help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants