- 博客(11)
- 收藏
- 关注
转载 python PIL图片背景透明化
/* from: https://blog.csdn.net/swend2010/article/details/7716433 */from PIL import Imagedef transPNG(srcImageName,dstImageName): img = Image.open(srcImageName) img = img.c...
2019-09-02 16:13:00
1166
转载 迁移Eclipse的配置信息
/* from: https://blog.csdn.net/Cocoa_vip/article/details/79149522 */最简单的方法将eclipse的workspace目录下的.metadata/.plugins/org.eclipse.core.runtime/.settings/目录复制到新的workspace下转载于:https://ww...
2019-09-02 15:32:00
115
转载 一致性hash算法
/* from: https://www.cnblogs.com/lpfuture/p/5796398.htmlhttps://blog.csdn.net/cywosp/article/details/23397179 */简单的说,环形hash空间实现单调性,复制生成虚拟节点解决了负载问题,或者说实现了分散性一致性Hash性质 考虑到分布式系统每个节点都有可能...
2019-09-02 13:52:00
89
转载 Mapreduce部署与第三方依赖包管理
参考了几篇文章,总算搞定打包第三方jar了,记录一下https://segmentfault.com/a/1190000016237395https://www.cnblogs.com/Dhouse/p/6595344.htmlhttps://yq.aliyun.com/articles/308777https://blog.csdn.net/u013177446/...
2019-07-05 13:59:00
133
转载 windows10下使用spark-2.3.0-bin-without-hadoop相关问题
/* from: https://blog.csdn.net/ryanzhongj/article/details/80677281 */1、启动spark-shell报错:Error: A JNI error has occurred, please check your installation and try againException in thread ...
2019-07-04 13:50:00
512
转载 VirtualBox mount报错:/sbin/mount.vboxsf: mounting failed with the error: No such device
mount -t vboxsf tools /mnt/share报错了:/sbin/mount.vboxsf: mounting failed with the error: No such device解决办法:yum clean allyum updateyum install kernelyum install kernel-develyum install...
2019-06-26 17:36:00
2329
转载 如何重命名MongoDB中的replica set
虚拟机里的MongoDB集群全部停掉之后,使用--replSet rs2参数重新启动。mongo shell连进去之后查看状况,rs1:OTHER> rs.status(){ "operationTime" : Timestamp(1559293558, 1), "ok" : 0, "errmsg" : "Our r...
2019-06-01 13:29:00
535
转载 MongoDB开发环境Replica Set单机部署流程
Replica Set(复制集)是由一组MongoDB实例组成的集群,每个实例包含相同的数据集(除了arbiter节点)。通过Replica Set提供的数据冗余支持,提供高可用性、读写分离、自动故障转移等功能如果是正式环境,当然应该部署在单独的服务器上。但是,开发环境需要测试/学习的话,一般会部署在一台服务器中环境信息数据库:MongoDB 4.0.9操作系统:C...
2019-05-31 09:45:00
215
转载 MongoDB修改Replica Set的服务器名和端口
---恢复内容开始---也是闲的蛋疼,本来用27017/27018/27019三个端口启动了Replica Set,可是回头一想,这个和默认端口重了,还是改成别的吧。于是想改成40001/40002/40003,折腾一圈发现还是得看官方文档,就顺便在这里做个记录吧先祭出官方链接https://docs.mongodb.com/manual/tutorial/change-ho...
2019-05-31 09:28:00
497
转载 解决pyinstaller打包后运行,出现ModuleNotFoundError: No module named 'pywt._extensions._cwt'...
终于把打包问题解决了,Python打包方法——Pyinstaller CentOS下踩坑记录美滋滋,赶紧发给同事试一下居然报错Traceback (most recent call last): File "app.py", line 13, in <module> import d_opt_v0 as mp File "/usr/loc...
2019-05-28 15:54:00
2683
转载 Python打包方法——Pyinstaller CentOS下踩坑记录
各种环境各种坑,一步一搜索,终于解决了CentOS下使用的问题,记录一下安装,参考https://www.cnblogs.com/gopythoner/p/6337543.htmlwindows10, 很容易,直接pip搞定pip install pywin32pip install PyInstaller试一下。创建一个python文件from ...
2019-05-28 15:53:00
679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人