- 博客(7)
- 收藏
- 关注
转载 docker window7 安装使用学习笔记
Docker 包括三个基本概念:镜像(Image)容器(Container)仓库(Repository)这三部分组成了Docker的整个生命周期,如下图所示,容器是由镜像实例化而来的,这和我们学习的面向对象的概念十分相似,我们可以把镜像想象成类,把容器想象成类经过实例化后的对象,这样就非常好理解镜像和容器的关系了。 Docker镜像Docker的镜像概念类似于虚拟机里的...
2018-11-07 16:12:54
172
原创 could only be replicated to 1 nodes instead of minReplication (=2). There are 3 datanode(s) running
在一个bash中写了很多连续的hive脚本,总是跑一段时间后出现org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/hadoop-yarn/staging/mqq/.staging/job_1540025341471_0619/libjars/mail-1.4.1.jar could only be repl...
2018-10-26 00:20:39
726
原创 hadoop dead datanodes处理方法
折腾了我几天,郁闷啊 跑hive过程中出现org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/hadoop-yarn/staging/mqq/.staging/job_1539959886874_0003/libjars/commons-logging-1.1.1.jar could only be...
2018-10-20 19:16:51
4169
原创 pandas map apply applymap区别
import pandas as pdimport numpy as npdf=pd.DataFrame(np.random.randn(4,3),index=['utah','ohio','texas','ny'],columns=list('abc'))help(df.apply)# Objects passed to functions are series objects h...
2018-07-04 15:12:07
254
原创 pandas 切片,iloc,loc,ix
import pandas as pd##create a raw dataraw_data = { 'regiment': ['Nighthawks', 'Nighthawks', 'Nighthawks', 'Nighthawks', 'Dragoons', 'Dragoons', 'Dragoons', 'Dragoons', 'Scouts', 'Scouts', ...
2018-07-04 11:58:14
302
原创 python and or bool 深入分析
## and 优先级大于or##检查一个变量转换成bool后是什么用bool函数,string '', 0, []是False,其它是True##and 始终返回第一个False处的变量值,如果没有False,返回最后一个值##or 始终返回第一个True处的变量值,如果没有True,返回最后一个值bool('')bool(0)#所有变量的位操作都是通过强制转换成bool实现的...
2018-07-04 10:03:46
684
原创 python list或string按指定分段
方法一def list_cut(mylist,count): length=len(mylist) merchant=length//count re_merchant=merchant+1*(0 if length%count==0 else 1) begin=0 result_list = [] while (count>0): ...
2018-07-03 20:00:39
2331
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人