Elassandra“action_request_validation_exception”

Elassandra“action_request_validation_exception”
Elasticsearch DEBUG: 2019-09-23T09:23:39Z
  starting request {
    "method": "HEAD",
    "castExists": true,
    "path": "/my_keyspace",
    "query": {}
  }


Elasticsearch TRACE: 2019-09-23T09:23:39Z
  -> HEAD http://192.168.99.100:9200/my_keyspace

  <- 200


Elasticsearch DEBUG: 2019-09-23T09:23:39Z
  Request complete

Elasticsearch DEBUG: 2019-09-23T09:23:39Z
  starting request {
    "method": "PUT",
    "path": "/my_keyspace/_mapping",
    "body": {
      "discover": ".*",
      "properties": {
        "id": {
          "type": "text"
        },
        "title": {
          "type": "text"
        },
        "summary": {
          "type": "text"
        },
        "company": {
          "type": "text"
        }
      }
    },
    "query": {
      "type": "job"
    }
  }


Elasticsearch TRACE: 2019-09-23T09:23:39Z
  -> PUT http://192.168.99.100:9200/my_keyspace/_mapping?type=job
  {
    "discover": ".*",
    "properties": {
      "id": {
        "type": "text"
      },
      "title": {
        "type": "text"
      },
      "summary": {
        "type": "text"
      },
      "company": {
        "type": "text"
      }
    }
  }
  <- 400
  {
    "error": {
      "root_cause": [
        {
          "type": "action_request_validation_exception",
          "reason": "Validation Failed: 1: my_keyspace.job table does not exists;"
        }
      ],
      "type": "action_request_validation_exception",
      "reason": "Validation Failed: 1: my_keyspace.job table does not exists;"
    },
    "status": 400
  }

Elasticsearch DEBUG: 2019-09-23T09:23:39Z
  Request complete

Unhandled rejection Error: [action_request_validation_exception] Validation Failed: 1: my_keyspace.job table does not exists;
    at respond (\project\root\node_modules\elasticsearch\src\lib\transport.js:349:15)
    at checkRespForFailure (\project\root\node_modules\elasticsearch\src\lib\transport.js:306:7)
    at HttpConnector.<anonymous> (\project\root\node_modules\elasticsearch\src\lib\connectors\http.js:173:7)
    at IncomingMessage.wrapper (\project\root\node_modules\lodash\lodash.js:4929:19)
    at emitNone (events.js:111:20)
    at IncomingMessage.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

我正在尝试使用masumsoft/express-cassandra连接到最新的 Elassandra strapdata/elassandra。对话框似乎有效,但连接导致意外错误,任何指示都值得赞赏。

答案1

事实证明我必须重命名“Job”模型,因为它是 Elasticsearch/Cassandra 中的保留关键字。

相关内容