elasticsearch-taste icon indicating copy to clipboard operation
elasticsearch-taste copied to clipboard

InvalidIndexNameException[[_taste] Invalid index name [_taste], must not start with '_']

Open muraree opened this issue 9 years ago • 3 comments

@marevol I have installed elasticsearch-taste(0.4.0) with elasticsearch(1.4.2)

I run first three step successfully

  1. curl -o u.data http://files.grouplens.org/datasets/movielens/ml-100k/u.data
  2. cat u.data | awk '{system("curl -XPOST localhost:9200/movielens/_taste/event?pretty -d "{\"user\":{\"id\":" $1 "},\"item\":{\"id\":" $2 "},\"value\":" $3 ",\"timestamp\":" $4 "000}"")}'
  3. curl -XGET "localhost:9200/movielens/search?q=:_&pretty"

But when run forth command to compute recommended items from users:

curl -XPOST localhost:9200/_taste/action/recommended_items_from_user -d '{ "num_of_items": 10, "data_model": { "cache": { "weight": "100m" } }, "index_info": { "index": "movielens" } }'

Getting error: {"error":"InvalidIndexNameException[[_taste] Invalid index name [taste], must not start with '']","status":400}

Could you please let me know if i missing anything Any helps is appreciated. Thanks!

muraree avatar Jun 12 '15 07:06 muraree

I think plugin installation was failed. Please check elasticsearch's log file.

marevol avatar Jun 12 '15 10:06 marevol

@marevol There is not any error found in plugin installation.

Here is elasticsearch log when restart elasticsearch service: it is loading and intialize taste service ... [2015-06-12 15:45:03,890][INFO ][node ] [Joystick] stopping ... [2015-06-12 15:45:04,043][INFO ][org.codelibs.elasticsearch.taste.service.TasteService] [Joystick] STOP TasteService [2015-06-12 15:45:04,043][INFO ][node ] [Joystick] stopped [2015-06-12 15:45:04,043][INFO ][node ] [Joystick] closing ... [2015-06-12 15:45:04,046][INFO ][org.codelibs.elasticsearch.taste.service.TasteService] [Joystick] CLOSE TasteService [2015-06-12 15:45:04,050][INFO ][node ] [Joystick] closed [2015-06-12 15:45:06,935][INFO ][node ] [Goblin Queen] version[1.4.2], pid[8491], build[927caff/2014-12-16T14:11:12Z] [2015-06-12 15:45:06,936][INFO ][node ] [Goblin Queen] initializing ... [2015-06-12 15:45:06,967][INFO ][plugins ] [Goblin Queen] loaded [TastePlugin], sites [] [2015-06-12 15:45:10,067][INFO ][org.codelibs.elasticsearch.taste.service.TasteService] [Goblin Queen] CREATE TasteService [2015-06-12 15:45:12,088][INFO ][node ] [Goblin Queen] initialized [2015-06-12 15:45:12,088][INFO ][node ] [Goblin Queen] starting ... [2015-06-12 15:45:12,124][INFO ][org.codelibs.elasticsearch.taste.service.TasteService] [Goblin Queen] START TasteService [2015-06-12 15:45:12,295][INFO ][transport ] [Goblin Queen] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/192.168.1.5:9300]} [2015-06-12 15:45:12,355][INFO ][discovery ] [Goblin Queen] elasticsearch/8tUpc0-8Tru8y2HsxGuDOg [2015-06-12 15:45:15,405][INFO ][cluster.service ] [Goblin Queen] new_master [Goblin Queen][8tUpc0-8Tru8y2HsxGuDOg][rails-dev][inet[/192.168.1.5:9300]], reason: zen-disco-join (elected_as_master) [2015-06-12 15:45:15,502][INFO ][http ] [Goblin Queen] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.1.5:9200]} [2015-06-12 15:45:15,502][INFO ][node ] [Goblin Queen] started [2015-06-12 15:45:16,829][INFO ][gateway ] [Goblin Queen] recovered [9] indices into cluster_state

muraree avatar Jun 12 '15 10:06 muraree

See https://github.com/codelibs/elasticsearch-taste/blob/master/README_river.md

marevol avatar Jun 12 '15 22:06 marevol