<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[heiiochange的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/heiiochange</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; heiiochange]]></copyright><item><title><![CDATA[MapReduce的单词统计从本地运行到集群运行]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121362356</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121362356</guid><author>heiiochange</author><pubDate>Tue, 16 Nov 2021 19:05:34 +0800</pubDate><description><![CDATA[学习记录]]></description><category></category></item><item><title><![CDATA[hadoop从零搭建一个集群]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121269683</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121269683</guid><author>heiiochange</author><pubDate>Thu, 11 Nov 2021 16:13:41 +0800</pubDate><description><![CDATA[重要说明：一切安装时基于centos7

1.linux最小化安装




安装完成linux最小化base，关闭base，重新克隆一个完整的系统，并命名为hadoop40



2.配置主机，ip，hosts等文件




启动hadoop40，用root登录
==================================================
#配置静态ip
[root@base ~]#vi/etc/sysconfig/network-scripts/ifcfg-ens33
#默认属..]]></description><category></category></item><item><title><![CDATA[linux常见查看文件的命令]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121256027</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121256027</guid><author>heiiochange</author><pubDate>Wed, 10 Nov 2021 20:32:40 +0800</pubDate><description><![CDATA[more：查看

head：查看，主要是查看前多少行

head -5 xx.txt :xx 文件的前n行

tail -n xx: 查看文件多少行

tail -f xx.txt 查看持续追加的文件

head -19 xx.txt | tail -1 : head和tail搭配使用查看第19行内容

cut -d "字符" -f n xx.txt 剪切文件，输出第几行，可以和其他命令组合使用

awk -F "字符" '{print $1}' 内容切割，分列读取，支持正则，简单的命令，可以读取文...]]></description><category></category></item><item><title><![CDATA[linux关机常用命令]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121255706</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121255706</guid><author>heiiochange</author><pubDate>Wed, 10 Nov 2021 20:08:28 +0800</pubDate><description><![CDATA[关机常用命令


Linux命令：
shutdown:
 shutdown -h now ：立即关机
 shutdown -h 1 ： 一分钟后关机
 shutdown -r now ：立即重启
halt:关机
reboot：重启

sync:内存同步
logout：注销（这个主要是针对远程登录，图形界面上是无效的）


...]]></description><category></category></item><item><title><![CDATA[常用的网络监测命令]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121236078</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121236078</guid><author>heiiochange</author><pubDate>Tue, 09 Nov 2021 20:25:19 +0800</pubDate><description><![CDATA[ps查看进程
ps -aux |grep xx   查看系统中的所有进程
ps -ef  | grep xx      查看子父进程之间的关系
==============================================
kill杀死进程
kill -9   xx 强制杀死xx进程
killall  xx（名称）
=============================================
top查看进程健康状态（实时）
===========================.]]></description><category></category></item><item><title><![CDATA[linux之shell流程控制（if,case,for,while）]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121235753</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121235753</guid><author>heiiochange</author><pubDate>Tue, 09 Nov 2021 20:13:19 +0800</pubDate><description><![CDATA[if 判断


1）基本语法
if  [ 条件判断式 ];then
  程序
fi
或者
if  [ 条件判断式 ]
  then
    程序
elif  [ 条件判断式 ]
       then
              程序
else
       程序
fi
       注意事项：
（1）[ 条件判断式 ]，中括号和条件判断式之间必须有空格
（2）if后要有空格

小案列


脚本文件：
=============================================
#!/bi..]]></description><category></category></item><item><title><![CDATA[Linux之shell 变量]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121215757</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121215757</guid><author>heiiochange</author><pubDate>Mon, 08 Nov 2021 20:41:59 +0800</pubDate><description><![CDATA[shell执行方式


执行1：sh xx.sh
执行2：bash xx.sh
执行3：需要先给文件赋予执行权限。再使用文件路径路径执行

aa.sh脚本内容：
[damo@future shelldemo]$ cat aa.sh
#!/bin/bash
echo "========================"

执行方式1:
[damo@future shelldemo]$ ll
-rw-r--r--. 1 damo shaolin   45 11月  8 20:21 aa.sh
[damo@fut]]></description><category></category></item><item><title><![CDATA[Linux压缩与解压文件]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121193248</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121193248</guid><author>heiiochange</author><pubDate>Sun, 07 Nov 2021 16:39:26 +0800</pubDate><description><![CDATA[压缩和解压类：

gzip/gunzip压缩与解压：1.不能压缩目录| 2.不保留原文件


压缩：
[root@future damo]# ll
-rwxrwxrwx. 1 root root      67 11月  7 15:57 bb.txt
[root@future damo]# gzip bb.tx
[root@future damo]# ll
-rwxrwxrwx. 1 root root      79 11月  7 15:57 bb.txt.gz

解压：
[root@future da.]]></description><category></category></item><item><title><![CDATA[Linux权限设置]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121192305</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121192305</guid><author>heiiochange</author><pubDate>Sun, 07 Nov 2021 15:48:13 +0800</pubDate><description><![CDATA[权限文件具体展示：



权限描述：


### 文件权限命令
文件类型        属主（user）           属组（group）            其他（other）
-|d             r   w   x                 r    w       x               r    w   x
r w x
1 0 0  4 : r
0 1 0  2 : w
0 0 1  1 : x
u:所有者  g:所有组  o:其他人  a:所有人(u、g、o的总.]]></description><category></category></item><item><title><![CDATA[Linux查找命令]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121192211</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121192211</guid><author>heiiochange</author><pubDate>Sun, 07 Nov 2021 15:40:13 +0800</pubDate><description><![CDATA[###查询文件命令

find目录路径 -选项（name，size，user）过滤文件


根据名称：
[root@future home]# find ./ -name a.*
./damo/a.txt
根据用户：
[root@future home]# find ./ -user damo
./damo/hello/mm.txt
./damo/b.tx
./damo/a.txt
根据文件大小：
[root@future damo]# find /home/ -size +666
/home/fut...]]></description><category></category></item><item><title><![CDATA[linux服务管理]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/121170686</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/121170686</guid><author>heiiochange</author><pubDate>Fri, 05 Nov 2021 21:12:23 +0800</pubDate><description><![CDATA[基于centos7编写的文档

服务管理


systemctl start 服务名 (开启服务)
systemctl stop  服务名  （停止服务）
systemctl restart 服务名 （重新启动服务）
systemctl status  服务名  （查看服务状态）
systemctl --type service   （查看运行的服务）

案例1：
[root@future ~]# systemctl --type service
UNIT                          ]]></description><category></category></item><item><title><![CDATA[mybatis_plus乐观锁问题：MP_OPTLOCK_VERSION_ORIGINAL]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/114491848</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/114491848</guid><author>heiiochange</author><pubDate>Sun, 07 Mar 2021 18:10:26 +0800</pubDate><description><![CDATA[Mybatis_plus 出现 MP_OPTLOCK_VERSION_ORIGINAL
乐观锁问题
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘MP_OPTLOCK_VERSION_ORIGINAL’ not found. Available parameters are [param1, et]
描述：mybatis]]></description><category></category></item><item><title><![CDATA[vagrant安装]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/114109327</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/114109327</guid><author>heiiochange</author><pubDate>Fri, 26 Feb 2021 00:26:41 +0800</pubDate><description><![CDATA[在线安装
#初始化镜像
vagrant init centos7 https://mirrors.ustc.edu.cn/centos-cloud/centos/7/vagrant/x86_64/images/CentOS-7.box
#启动镜像
vagrant up
#连接虚拟机
vagrant ssh
# 关闭虚拟机
vagrant halt

离线安装
#添加vagrant box到box list
vagrant box add centos7 CentOS-7.box（box地址）
#初始化一个虚]]></description><category></category></item><item><title><![CDATA[MySQL客户端报错 1251 -Clinent does not support authentication protocol requested by server]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/114108263</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/114108263</guid><author>heiiochange</author><pubDate>Thu, 25 Feb 2021 23:00:29 +0800</pubDate><description><![CDATA[问题：1251 -Clinent does not support authentication protocol requested by server
原因：
在网上查的是,出现这个原因是mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password, 解决问题方法有两种,一种是升级navicat驱动,一种是把mysql用户登录密码加密规则还原成mysql_native_password.

解决：方案二
#运.]]></description><category></category></item><item><title><![CDATA[Mysql压缩版安装]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/113472701</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/113472701</guid><author>heiiochange</author><pubDate>Sun, 31 Jan 2021 14:29:26 +0800</pubDate><description><![CDATA[MysqL安装
来源：学习来自于狂神
1.下载mysql服务端
下载地址：https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.33-winx64.zip
2.设置环境变量
解压mysql压缩包
添加环境变量
我的电脑-&gt;属性-&gt;高级-&gt;环境变量 ：
创建系统变量 MYSQL_HOME  D:\tools\mysql-5.7.33  将系统变量插入path中
3.my.ini文件
在mysql根目录下创建my.ini文件
[mysqld]]]></description><category></category></item><item><title><![CDATA[java 进制之间的转换 10进制转化为n进制 n进制转化为10进制 10进制小数转化为n进制小数（java）]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/106313099</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/106313099</guid><author>heiiochange</author><pubDate>Sun, 24 May 2020 12:16:21 +0800</pubDate><description><![CDATA[n进制之间转换
10机制转化为其他进制
 /**
     * 十进制转化为n进制
     * @param number（十进制数）
     * @param n（转化的机制）
     * @return
     */
    private static int conver10ToN(int number, int n) {
        int result = 0;
        StringBuilder sb = new StringBuilder();
        while]]></description><category></category></item><item><title><![CDATA[节点的时间服务器搭建]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/100640615</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/100640615</guid><author>heiiochange</author><pubDate>Sun, 08 Sep 2019 22:16:15 +0800</pubDate><description><![CDATA[时间服务器结构图



时间服务器配置

1.检查是否安装ntp时间服务器

[root@hadoop011 hadoop-2.7.2]# rpm -qa | grep ntp
ntpdate-4.2.6p5-10.el6.centos.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
ntp-4.2.6p5-10.el6.centos.x86_...]]></description><category></category></item><item><title><![CDATA[配置SSH无密登录]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/100188339</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/100188339</guid><author>heiiochange</author><pubDate>Sun, 01 Sep 2019 21:40:43 +0800</pubDate><description><![CDATA[1.生成公钥和私钥：
 [pw@hadoop010 ~]$ ssh-keygen -t rsa
 然后敲（三个回车），就会生成两个文件id_rsa（私钥）、id_rsa.pub（公钥
2.将公钥拷贝到要免密登录的目标机器上
 [pw@hadoop010 .ssh]$ ssh-copy-id hadoop010
 [pw@hadoop010 .ssh]$...]]></description><category></category></item><item><title><![CDATA[hadoop本地案例主机报错]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/98474693</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/98474693</guid><author>heiiochange</author><pubDate>Sun, 04 Aug 2019 21:34:49 +0800</pubDate><description><![CDATA[解决办法：使用 如下命令查看hostname是否一致

vim /etc/sysconfig/network
vim /etc/hosts





如果不一致，请改为一致就好了。

报错内容：

bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar grep input output 'dfs[a-...]]></description><category></category></item><item><title><![CDATA[Linux修改虚拟机的属性设置]]></title><link>https://blog.youkuaiyun.com/heiiochange/article/details/97973274</link><guid>https://blog.youkuaiyun.com/heiiochange/article/details/97973274</guid><author>heiiochange</author><pubDate>Wed, 31 Jul 2019 22:49:15 +0800</pubDate><description><![CDATA[修改虚拟机的静态ip
 命令:vim /etc/udev/rules.d/70-persistent-net.rules

得到mac地址，然后删除一块网卡





2.配置静态ip，把从上获取的mac地址替换原来的mac地址

命令：vim /etc/sysconfig/network-scripts/ifcfg-eth0





3，重启服务：service network re...]]></description><category></category></item></channel></rss>