摘要: 在macOS系统上安装tree命令通常需要使用Homebrew软件包管理器,但是如果你在安装时遇到类似于"undefined method `cellar'"的错误,可能是因为Homebrew已经升级到了新版本,而tree的配方文件(formula)尚未更新导致的。 你可以尝试以下步骤来解决这个问题 阅读全文
posted @ 2023-04-06 14:41 YF-海纳百川 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Centos中用ssh启动kafka集群或zookeeper集群出现错误: /opt/module/kafka/bin/kafka-run-class.sh: line 258: exec: java: not found 但是不是用ssh单独启动的时候是可以启动的 当我们运行ssh hadoop0 阅读全文
posted @ 2021-02-20 14:59 YF-海纳百川 阅读(535) 评论(0) 推荐(0) 编辑
摘要: mac 终端下,执行以下命令,即可安装brew: 用国内源,速度又快 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 阅读全文
posted @ 2021-02-19 11:17 YF-海纳百川 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: 1.本文的系统命令一般会在语句前加上#号,以区分系统命令及其他内容。输入命令时,无需输入#号。 # yum install vim 2.本文系统输出的信息,会在前面加上>>号。 # which python >> /usr/bin/python # 系统输出的信息 3.本文的系统命令都是在root账 阅读全文
posted @ 2020-11-26 13:57 YF-海纳百川 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 用通俗的语言解释内存管理和垃圾回收的过程,搞懂这一部分就可以去面试、去装逼了… 基于C语言源码底层,让你了解垃圾回收机制的实现 更多详细关于垃圾回收:https://pythonav.com/wiki/detail/6/88/ 1、引用计数器 1.1、环状双向链表refchain 在Python的C 阅读全文
posted @ 2020-08-24 11:26 YF-海纳百川 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 首先得需要安装elasticsearch pip install elasticsearch from elasticsearch import ElasticSearch es = ElasticSearch() 创建索引 创建索引,索引的名字是my-index,如果已经存在了,就返回个400,这 阅读全文
posted @ 2020-08-21 15:24 YF-海纳百川 阅读(1155) 评论(0) 推荐(1) 编辑
摘要: 转译:(https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_exact_values.html#_finding_exact_values) 当进行精确值查找时, 我们会使用过滤器(filters)。过滤器很重要, 阅读全文
posted @ 2020-08-21 14:22 YF-海纳百川 阅读(1417) 评论(0) 推荐(0) 编辑
摘要: es官网原文:https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#index-refresh ES在查询过程中比较多遇到符合查询,既需要多个字段过滤也需要特殊情况处理,本文简单介绍几种查询组 阅读全文
posted @ 2020-08-21 13:53 YF-海纳百川 阅读(458) 评论(0) 推荐(0) 编辑
摘要: elasticsearch7.x取消了type(类型的概念)对应数据库表的概念,指定不指定都可以 1、创建索引和文档 PUT 索引名 { "settings": { "number_of_shards": 1, "number_of_replicas": 0 } } 创建一个索引 PUT /索引名/ 阅读全文
posted @ 2020-08-21 13:40 YF-海纳百川 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 转载,原文地址:http://mageedu.blog.51cto.com/4265610/1714522?utm_source=tuicool&utm_medium=referral 下面进入正题。今天的分享共分为如下几个组成部分。不过,如果时间上来不及,可能只会聊前两个而不及其余。 1、搜索引擎 阅读全文
posted @ 2020-08-21 10:57 YF-海纳百川 阅读(748) 评论(0) 推荐(0) 编辑