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

re-index not working #31

Open
sergii-rolskii opened this issue Jun 14, 2017 · 1 comment
Open

re-index not working #31

sergii-rolskii opened this issue Jun 14, 2017 · 1 comment

Comments

@sergii-rolskii
Copy link

Hey, I need help. I try:
elasticsearch-reindex -f http://localhost:9200/sms -t http://localhost:9200/sms-new
And I have error:

Starting reindex in 1 shards.
/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60
      throw new TypeError('Invalid hosts config. Expected a URL, an array of urls, a host config object, ' +
      ^

TypeError: Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.
    at new Transport (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60:13)
    at Object.EsApiClient (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:57:22)
    at new Client (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:101:10)
    at createClient (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:194:18)
    at Object.<anonymous> (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:212:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:390:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:505:3
worker exited with error code: 1
Reindexing completed sucessfully.

How can I fix it?
And if I try re-index with a indexer.js (include date) I have error:

Starting reindex in 4 shards.
/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60
      throw new TypeError('Invalid hosts config. Expected a URL, an array of urls, a host config object, ' +
      ^

TypeError: Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.
    at new Transport (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60:13)
    at Object.EsApiClient (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:57:22)
    at new Client (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:101:10)
    at createClient (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:194:18)
    at Object.<anonymous> (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:212:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:390:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:505:3
/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60
      throw new TypeError('Invalid hosts config. Expected a URL, an array of urls, a host config object, ' +
      ^

TypeError: Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.
    at new Transport (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60:13)
    at Object.EsApiClient (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:57:22)
    at new Client (/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/client.js:101:10)
    at createClient (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:194:18)
    at Object.<anonymous> (/usr/lib/node_modules/elasticsearch-reindex/bin/elasticsearch-reindex.js:212:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:390:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:505:3
worker exited with error code: 1
worker exited with error code: 1
/usr/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:60
      throw new TypeError('Invalid hosts config. Expected a URL, an array of urls, a host config object, ' +
      ^
@sergii-rolskii
Copy link
Author

Any ideas?

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

1 participant