04 2020 档案
摘要:ref:https://www.jb51.net/article/159025.htm 关键词:Python 导出成 txt csv excel 文件格式 写入txt文件 1 2 3 4 5 6 7 8 def text_save(filename, data):#filename为写入CSV文件的
阅读全文
摘要:在Python中创建二维数组应该这样写: >>> C = [[0]*3 for i in range(4)]>>> C [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]>>> C[0][1] = 2>>> C[[0, 2, 0], [0, 0, 0], [0,
阅读全文
摘要:重启记录,hadoop练习。 先熟悉一下语句: [root@bigdata hadoop]# $HADOOP_HOME/sbin/start-all.sh This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh St
阅读全文
摘要:sqoop 运行 MYSQL密码输入错误的报错示例: 20/04/13 18:47:02 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7 20/04/13 18:47:02 INFO manager.MySQLManager: Preparing to
阅读全文
摘要:[root@bigdata admin]# hadoop fs -ls / Found 4 items -rw-r--r-- 1 root staff 0 2020-04-11 18:40 /mytemp drwxr-xr-x - root staff 0 2020-04-11 20:37 /tia
阅读全文
摘要:查找文件: [root@bigdata admin]# find . -type f -name "a.txt" ./Downloads/hadoop-2.10.0/a.txt 拥有遍历文件夹功能的 查找关键字 文件、文件夹: [root@bigdata admin]# vi a [root@big
阅读全文
摘要:[root@localhost ~]#firewall-cmd --state not running [root@bigdata hadoop]# systemctl is-enabled firewalld.service;echo $? (查看服务是否开机启动) enabled 0 [root
阅读全文
摘要:ref:https://blog.csdn.net/infovisthinker/article/details/45370089 mr-jobhistory-daemon.sh命令是在${HADOOP_INSTALL}/sbin/目录下面。启动完了,用jps命令可以看到有JobHistorySer
阅读全文
摘要:ref: https://blog.csdn.net/xiaolinyouni/article/details/6943337 现在有一个表student 结构如下:id name class blood1 张三 1 A2 李四 2 C3 王五 1 B4 黄六 3 D5 朱八 2 C现在想查询出每个
阅读全文