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

Error during import in elasticsearch #82

Open
steppo83 opened this issue Sep 29, 2022 · 1 comment
Open

Error during import in elasticsearch #82

steppo83 opened this issue Sep 29, 2022 · 1 comment
Assignees

Comments

@steppo83
Copy link

Hello,
I'm trying to import crossref-works.2019-09-09.json.xz file inside elasticsearch using the command:
node main -dump ../data/crossref-works.2019-09-09.json.xz index

I have an elasticsearch up and running with Docker (ES version 7.11.1) that is working if I go to http://localhost:9200
image

image

in my glutton.yml there is written
image

the index is created

image

but after 1 minute the procedure stops saying

image

I don't understand why the procedure can create the index but cannot import the data inside ES and, even stranger, why it says connect ETIMEDOUT 172.18.0.3:9200 instead of using localhost:9200 ?

I'm using a virtual machine with Windows 10 Pro 64 bit.

@lfoppiano lfoppiano self-assigned this Oct 3, 2022
@steppo83
Copy link
Author

I found a way to import using Docker Compose and Docker:
Docker Compose:

biblioindex:
build:
context: D:\grobid-biblio-glutton\biblio-glutton\indexing
dockerfile: DockerfileIndex
restart: always
volumes:
- C:\GrobidData:/app/data #where you have the CrossRef file

Docker file:

FROM node:14

RUN mkdir /app

WORKDIR /app

COPY package.json /app

COPY . /app

RUN npm install

CMD node main.js -dump /app/data/crossref-works.2019-09-09.json.xz index

Is loading :)
image

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

No branches or pull requests

2 participants