创建全文索引失败(-1005:fulltext index get failed )

es 8.2.3
nebula 3.1.0

按照文档中的全文索引操作的,然后当在tag上创建全文索引的时候报错

粘贴下自己的相关配置
1 es 索引

PUT /_template/nebula_index_template
{
  "index_patterns": [
    "nebula*"
  ],
  "settings": {
    "index": {
      "number_of_shards": 3,
      "number_of_replicas": 1
    }
  },
  "mappings": {
    "properties": {
      "tag_id": {
        "type": "long"
      },
      "column_id": {
        "type": "text"
      },
      "value": {
        "type": "keyword"
      }
    }
  }
}

2 nebula-storaged-listener.conf 配置

########## nebula-storaged-listener ###########
########## basics ##########
# Whether to run as a daemon process
--daemonize=true
# The file to host the process id
--pid_file=pids_listener/nebula-storaged.pid
# Whether to use the configuration obtained from the configuration file
--local_config=true

########## logging ##########
# The directory to host logging files
--log_dir=logs_listener
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=0
# Verbose log level, 1, 2, 3, 4, the higher of the level, the more verbose of the logging
--v=0
# Maximum seconds to buffer the log messages
--logbufsecs=0
# Whether to redirect stdout and stderr to separate output files
--redirect_stdout=true
# Destination filename of stdout and stderr, which will also reside in log_dir.
--stdout_log_file=storaged-stdout.log
--stderr_log_file=storaged-stderr.log
# Copy log messages at or above this level to stderr in addition to logfiles. The numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively.
--stderrthreshold=2
# Wether logging files' name contain timestamp.
--timestamp_in_logfile_name=true

########## networking ##########
# Meta server address
--meta_server_addrs=10.0.59.65:9559
# Local ip
--local_ip=10.0.59.65
# Storage daemon listening port
--port=9789
# HTTP service ip
--ws_ip=10.0.59.65
# HTTP service port
--ws_http_port=19789
# heartbeat with meta service
--heartbeat_interval_secs=10

########## storage ##########
# Listener wal directory. only one path is allowed.
--listener_path=data/listener
# This parameter can be ignored for compatibility. let's fill A default value of "data"
--data_path=data
# The type of part manager, [memory | meta]
--part_man_type=memory
# The default reserved bytes for one batch operation
--rocksdb_batch_size=4096
# The default block cache size used in BlockBasedTable.
# The unit is MB.
--rocksdb_block_cache=4
# The type of storage engine, `rocksdb', `memory', etc.
--engine_type=rocksdb
# The type of part, `simple', `consensus'...
--part_type=simple

3 执行过的主要ngl语句

ADD LISTENER ELASTICSEARCH 10.0.59.65:9789;
SHOW LISTENER
CREATE FULLTEXT TAG INDEX nebula_index_1 ON player(name); # 执行出错的语句

4 具体出错位置

5 nehula日志

E20220629 09:49:46.723256  6472 ESGraphAdapter.cpp:228] Http GET Failed: /usr/bin/curl -H "Content-Type: application/json; charset=utf-8" -XGET -k "http://127.0.0.1:9200/_cat/indices/nebula_index_1?format=json"
E20220629 09:49:46.723356  6472 QueryInstance.cpp:137] fulltext index get failed : nebula_index_1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (52) Empty reply from server
E20220629 10:16:08.914326  6471 ESGraphAdapter.cpp:228] Http GET Failed: /usr/bin/curl -H "Content-Type: application/json; charset=utf-8" -XGET -k "http://127.0.0.1:9200/_cat/indices/nebula_index_1?format=json"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (52) Empty reply from server
E20220629 10:16:08.945683  6471 ESGraphAdapter.cpp:228] Http GET Failed: /usr/bin/curl -H "Content-Type: application/json; charset=utf-8" -XGET -k "http://127.0.0.1:9200/_cat/indices/nebula_index_1?format=json"
E20220629 10:16:08.945798  6471 QueryInstance.cpp:137] fulltext index get failed : nebula_index_1

listener是否运行了呢?看一下listener的日志呢?


这样算运行成功不

全文索引客户端也看一下? SHOW TEXT SEARCH CLIENTS;

有创建原生索引吗?全文索引依赖原生索引

1 个赞
//创建图空间。
nebula> CREATE SPACE IF NOT EXISTS basketballplayer (partition_num=3,replica_factor=1, vid_type=fixed_string(30));

//登录文本搜索客户端。
nebula> SIGN IN TEXT SERVICE (127.0.0.1:9200, HTTP);

//切换图空间。
nebula> USE basketballplayer;

//添加 listener 到 Nebula Graph 集群。
nebula> ADD LISTENER ELASTICSEARCH 192.168.8.5:9789;

//创建 Tag。
nebula> CREATE TAG IF NOT EXISTS player(name string, age int);

//创建原生索引。
nebula> CREATE TAG INDEX IF NOT EXISTS name ON player(name(20));

//重建原生索引。
nebula> REBUILD TAG INDEX;

//创建全文索引,索引名称需要以 nebula 开头。
nebula> CREATE FULLTEXT TAG INDEX nebula_index_1 ON player(name);

就是这个执行顺序

改为es7 立马就好使了,坑!~!!!

1 个赞

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。

浙ICP备20010487号