elasticsearch
文章平均质量分 76
TracyGao01
保持专注
展开
-
elasticsearch异常报错:{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported
curl -XPOST http://localhost:9200/tracy/person/_mapping -d'{ "properties": { "content": { "type": "application/json", "analyzer": "ik_max_word",原创 2018-02-08 14:13:58 · 21322 阅读 · 0 评论 -
elasticsearch异常报错:Invalid UTF-8 middle byte
插入中文字符报错:{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse [content]"}],"type":"mapper_parsing_exception","reason":"failed t原创 2018-02-08 14:18:05 · 9850 阅读 · 0 评论 -
spark写数据到ES
1、查询ES中ID为1的记录 2、重新写入一条ID为1的数据import org.apache.spark.{SparkConf, SparkContext}import org.elasticsearch.spark.rdd.EsSparkobject WriteES { def main(args: Array[String]) { val conf = ne...原创 2018-02-23 11:26:43 · 4860 阅读 · 2 评论 -
kibana关于elasticsearch的索引权限开放
执行删除创建index pattern,报错:blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];: [cluster_block_exception] blocked by: [FORBIDDEN/12/index read-only / allow delete (api)];解决:curl -XPUT -H "Con...原创 2018-04-18 20:28:45 · 3772 阅读 · 0 评论 -
Debezium:Spark Structured Streaming将Kafka的数据写入ElasticSearch
前言:1、数据流Mysql -> Debezium -> Kafka -> Structured Streaming ->ElasticSearch2、Mysql -> Debezium -> Kafka 参考https://blog.csdn.net/u012551524/article/details/842585653、ES/Spar...原创 2018-12-28 19:27:43 · 2359 阅读 · 1 评论 -
Kibana:高德地图经纬度展示
kibana版本:6.1.2elasticsearch版本:6.1.21、kibana中文版高德地图Kibana 配置文件kibana.yml修改,添加如下内容:tilemap.url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}...原创 2019-01-03 21:08:56 · 2358 阅读 · 1 评论