uu直播快3平台_UU快3直播官方

elasticsearch批量导入数据注意事项

时间:2020-03-20 18:35:03 出处:uu直播快3平台_UU快3直播官方

}

          }

   "properties": {

账户信息没法 字段映射。。。

{

2.The accounts data  账户数据底部形态

    }

          }

PUT /logstash-2015.05.18

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9400/_bulk?pretty' --data-binary @logs.jsonl

  }

          }

    "play_name": "String",

Use the following command in a terminal (eg bash) to set up a mapping for the Shakespeare data set:

      }

  "mappings": {

    "play_name": {"type": "keyword"},

    "lastname": "String",

windows下的curl命令可不还里能到https://curl.haxx.se/download.html#Win64下载,解压后设置环境变量即可

}

        }

    "line_id": INT,

    "city": "String",

1.The Shakespeare data 莎士比亚文集的数据底部形态

            }

            }

{

{

以下是莎士比亚的字段映射 可不还里能用postman就让curl等发出请求~完正的url应该是localhost:9400/shakespear

{

{

      "properties": {

PUT /shakespeare

    "firstname": "String",

3.The schema for the logs data 日志数据

      }

}

    "speaker": "String",

就让初始化启动kiabna后是没法 索引的,当然,就让elasticsearch中导入过数据没法 kibana会自动匹配索引

    "geo.coordinates": "geo_point"

}

    "log": {

        "geo": {

          "properties": {

    "address": "String",

   }

现在按照官方例子开始批量给elasticsearch导入数据

            "coordinates": {

    "speaker": {"type": "keyword"},

}

    "speech_number": INT,

              "type": "geo_point"

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9400/shakespeare/doc/_bulk?pretty' --data-binary @shakespeare_6.0.json

              "type": "geo_point"

    "log": {

    "@timestamp": "date"

  "mappings": {

    }

PUT /logstash-2015.05.19

    "line_id": {"type": "integer"},

{

    "log": {

      "properties": {

还有這個~~~windows下要把命令行中的单引号再加双引号,,。。。就让会报

{

就让向elasticsearch设置字段映射

PUT /logstash-2015.05.20

curl -H 'Content-Type: application/x-ndjson' -XPOST 'localhost:9400/bank/account/_bulk?pretty' --data-binary @accounts.json

    "email": "String",

 "mappings": {

            "coordinates": {

怎么就让你当前位置是D盘~没法 哪些文件位置就要上放D盘下,就让读只有

        "geo": {

  "mappings": {

  }

    "gender": "M or F",

    "text_entry": "String",

  }

    }

}

        }

    "memory": INT,

              "type": "geo_point"

}

curl: (6) Could not resolve host: application原先的错误

    "speech_number": {"type": "integer"}

    "account_number": INT,

    "age": INT,

            }

  "doc": {

Use the following commands to establish geo_point mapping for the logs:

        }

 }

      }

现在批量导入

    "line_number": "String",

    "balance": INT,

链接如下https://www.elastic.co/guide/en/kibana/6.1/tutorial-load-dataset.html

这是 logs的字段映射

大家儿会依次导入如下 三块数据 

        "geo": {

          "properties": {

      "properties": {

            "coordinates": {

COPY AS CURLVIEW IN CONSOLE 

这里要注意的是 @accounts.json,@shakespeare_6.0.json,@logs.json哪些文件的位置应该有了你所在的当前目录,

    "state": "String"

    "employer": "String",

  }

          "properties": {

热门

热门标签