kermitt2 / biblio-glutton

A high performance bibliographic information service: https://biblio-glutton.readthedocs.io
117 stars 15 forks source link

Error during import in elasticsearch #82

Open steppo83 opened 1 year ago

steppo83 commented 1 year ago

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.

steppo83 commented 1 year ago

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:

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