上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: 题目 Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the nu 阅读全文
posted @ 2019-06-08 15:03 雨临Lewis 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 题目 You're given strings representing the types of stones that are jewels, and representing the stones you have. Each character in S is a type of stone 阅读全文
posted @ 2019-06-08 15:02 雨临Lewis 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目 Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, 阅读全文
posted @ 2019-06-08 15:01 雨临Lewis 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 题目 Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. Example 1: Example 2: Example 3: <! mor 阅读全文
posted @ 2019-06-08 15:00 雨临Lewis 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a non empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear ru 阅读全文
posted @ 2019-06-08 14:59 雨临Lewis 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 问题 有时候我们想要在Logstash里对收集到的日志等信息进行分割,并且将分割后的字符作为新的字符来index到Elasticsearch里。假定需求如下: Logstash收集到的日志字段 的值是由多个字段拼接而成的,分隔符是 ,如下: 现在想要将 的值拆分成2个新的字段:key_1、key_2 阅读全文
posted @ 2019-05-13 00:16 雨临Lewis 阅读(8795) 评论(2) 推荐(0) 编辑
摘要: 问题与分析 在使用Elasticsearch进行index数据时,发现报错如下: 从异常信息看,显然ES无法接受BigDecimal类型,经过百度,也确实如此。在一篇博文评论中解释如下: 应该是客户端代码里将查询的数值定义成了java.math.BigDecimal,而ES不支持这个类型。之所以2. 阅读全文
posted @ 2019-05-12 17:39 雨临Lewis 阅读(3930) 评论(0) 推荐(0) 编辑
摘要: 方法 Elasticsearch默认会配置1G的JVM堆的初始值和最大值,该jvm参数被配置在 里: 如果只是个人开发小项目,可以把参数改小些,比如: 这个 用来配置各种jvm参数,比如GC、GC logging、heap dumps等。 <! more 阅读全文
posted @ 2019-05-12 17:20 雨临Lewis 阅读(2750) 评论(0) 推荐(0) 编辑
摘要: 问题 Kibana在创建 的时候,可以选择某个date类型的field作为排序字段。之后在 里打开对应的index,会发现这个date类型的field的格式显示如下: 这是Kibana默认的日期格式,有两种修改的方式。 方式一:全局修改 登录 ,会进入Kibana的页面,选择 ,找到 ,如何修改这里 阅读全文
posted @ 2019-05-12 16:56 雨临Lewis 阅读(1558) 评论(0) 推荐(0) 编辑
摘要: 前言 最近公司分了个ELK相关的任务给我,在一边学习一边工作之余,总结下这些天来的学习历程和踩坑记录。 首先介绍下使用ELK的项目背景:在项目的数据库里有个表用来存储消息队列的消费日志,这些日志用于开发者日后的维护。每当客户端生产一条消息并发送到消息队列后,就会插入一条对应的记录到数据库里。当这条消 阅读全文
posted @ 2019-05-12 16:47 雨临Lewis 阅读(2484) 评论(2) 推荐(3) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页