Loading

邢栋博客

大数据面试题

hadoop相关试题 1.MapTask并行机度是由什么决定的? 由切片数量决定的。 MR是干什么的? MR将用户编写的业务逻辑代码和自带的默认组件结合起来组成一个完整的分布式应用程序放到hadoop集群上运行。 MR的实例进程: driver(mr的job提交客户端) MRAppMaster MapTask ReduceTask combiner和partition的作用: combiner的意义就是对每一个maptask的输出进行局部汇总,以减小网络传输量 partition的默认实现是hashpartition,是map端将数据按照re...

centos7 执行启动邮件服务报错-systemctl start postfix

错误信息如下 Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. 解决办法 修改 /etc/postfix/main.cf的设置 inet_protocols = ipv4 inet_interfaces = all

最完美 ThinkPHP(tp) 的 Nginx 配置文件

系统 LSB Version: :....(太长了) Distributor ID: CentOS Description: CentOS Linux release 8.2.2004 (Core) Release: 8.2.2004 Codename: Core 使用官网给的没有生效 location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } } 于是 s...

centos下openresty+lua入门实践

安装openresty 1、安装依赖开发库 yum install pcre-devel openssl-devel gcc curl postgresql-devel 2、下载 + 编译 + 安装 wget https://openresty.org/download/openresty-1.19.3.1.tar.gz 我刚开始先下载的1.19.3.1版本,但是在编译时增加nginx_upstream_check_module模块,一直报错,错误信息如下 ./configure: error: the ngx_http_upstream_check_m...

[docker-es]-None of the configured nodes are available

问题: springboot连接我用docker启动的es服务时报错,None of the configured nodes are available 解决方案: 1、先通过http://localhost:9200/查看参数cluster_name 和 springboot里配置的参数cluster_name是否一致,如果不一致,要修改成一致 2、如果通过修改cluster_name参数仍然无法解决,这时候就要看下Spring Data Elasticsearch 依赖 和 Elasticsearch的版本对应关系了 Spring Data ...

推荐几个不错的Mac版微信插件(查看撤回消息、多开)

1、微信 macOS 客户端增强 Tweak 动态库 2、微信简易版助手,各种花里胡哨的功能

[java]SpingBoot修改启动文字图标

1、进入 src/main/resources 目录下,新建banner.txt 文件 2、进入字母转字符串,字母转字符串 ,制作一个你想要的,然后复制到banner.txt文件中即可,再次启动就可以看到了

[java]SpringBoot启动失败(Reason: Failed to determine a suitable driver class)

原因:启动时不需要数据源加载,但加载了数据源,数据源获取失败,异常报错,启动失败。 在启动类的@SpringBootApplication加上以下代码 @SpringBootApplication(exclude = DataSourceAutoConfiguration.class) public class SpringbootEsApplication { public static void main(String[] args) { SpringApplication.run(SpringbootEsApplicati...

docker安装es的中文分词器ik插件

两种安装方式 1、use elasticsearch-plugin to install docker exec -it elasticsearch /bin/sh cd bin/ elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.1.1/elasticsearch-analysis-ik-7.1.1.zip 执行完毕后 elasticsearch-plugin list #查看 elasticsear...

[php]PHP 两个有序数组合并成一个有序数组

<?php $a = [1,3,5,7,9,11]; $b = [2,4,6,8,10]; function test_sort($a,$b){ $c = []; $aCount = count($a); $bCount = count($b); $i = $j = 0; while($i < $aCount && $j < $bCount){ if($a[$i] > $b[$j]){ ...