1.host smbus controller not enable
解决:在/etc/modprobe.d/blacklist.conf
中添加blacklist i2c_piix4,重启
2.intel_rapl: no valid rapl domains found in package 0
解决:在/etc/modprobe.d/blacklist.conf
中添加blacklist intel_rapl,重启
3.安装JDK,配置环境变量之后出现bash: ./java: /lib/ld-Linux.so.2: bad ELF interpreter:
解决:主机联网,终端安装软件:
sudo yum install glibc.i686
4.修改主机名:root用户登录,
hostnamectl --static set-hostname
然后注销就可看到效果
5.安装Python3.6.1
解压:tar -zxvf Python-3.6.1.tgz
进入解压目录: cd Python-3.6.1
创建安装目录: mkdir /usr/local/python3.6.1
编译: ./configure --prefix=/usr/local/python3.6.1
安装: make && make install
备份原有python:mv /usr/bin/python /usr/bin/python_2.7.5
创建软连接:ln -s /usr/local/python3.6.1/bin/python3.6 /usr/bin/python
6.Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database /usr/local/hive/conf/metastore_db
解决办法:
ps aux | grep hive
得到hiveserver2的pid,然后通过kill -9 hive_process_id (ex: kill -9 21765)
杀掉
7.启动hiveserver2
hive --service hiveserver2 &
8.安装MariaDB
//安装
yum install mariadb-server
//启动
systemctl start mariadb
//查看状态
systemctl status mariadb
为root用户配置密码,输入mysql,进入MariaDB,然后输入
mysql_secure_installation
接着同时按住Ctrl+D,这时候会提示为root用户输入密码,输入一个密码即可。
9.MariaDB/MySQL忘记(root)密码:
vi /etc/my.cnf
加上这句话:
skip-grant-tables
保存退出,重新启动MariaDB:
USE mysql;
UPDATE user SET Password = password ( 'NewPassword' ) WHERE User = 'root' ;
flush privileges;
重启服务器
systemctl restart mariadb.service
10.kafka运行自定义的生产者、消费者
启动生产者
//bin/kafka-run-class.sh 包名+类名
bin/kafka-run-class.sh v010.Producer
启动消费者:
//bin/kafka-run-class.sh 包名+类名
bin/kafka-run-class.sh v010.Consumer
其他方法:
java -jar 绝对路径+包名+类名
11.kafka创建Topic
//创建Topic
bin/kafka-topics.sh --create --zookeeper 172.17.11.105:2181,172.17.11.106:2181,172.17.11.107:2181 --replication-factor 3 --partitions 4 --topic TOPIC-20170510
12.kafka查看单一的TOpic的信息
bin/kafka-topics.sh --describe --zookeeper 172.17.11.105:2181,172.17.11.106:2181,172.17.11.107:2181 --topic TOPIC-20170510
13.kafka查看所有的Topic名称
bin/kafka-topics.sh --list --zookeeper 172.17.11.105:2181,172.17.11.106:2181,172.17.11.107:2181
14.Centos 最小化安装的时候ifconfig command not found
centos7之后使用ip addr
代替了ifconfig
15.从Gnome进入终端模式
Ctrl+Alt+F2
16.从终端进入Gnome
startx