摘要: /* from: https://stackoverflow.com/questions/37920923/how-to-check-whether-kafka-server-is-running */ 使用Kafka的AdminClient Properties properties = new 阅读全文
posted @ 2019-12-18 15:22 jerryzh2019 阅读(6106) 评论(0) 推荐(0) 编辑
摘要: 使用java程序判断HDFS文件是否存在 public static boolean isPathExist(String server, String path) throws IOException { Configuration conf = new Configuration(); conf 阅读全文
posted @ 2019-12-18 14:51 jerryzh2019 阅读(3389) 评论(0) 推荐(0) 编辑
摘要: /* from: https://blog.csdn.net/Cocoa_vip/article/details/79149522 */ 最简单的方法 将eclipse的workspace目录下的 .metadata/.plugins/org.eclipse.core.runtime/.settin 阅读全文
posted @ 2019-09-02 15:32 jerryzh2019 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 简单的说,环形hash空间实现单调性,复制生成虚拟节点解决了负载问题,或者说实现了分散性 阅读全文
posted @ 2019-09-02 13:52 jerryzh2019 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 参考了几篇文章,总算搞定打包第三方jar了,记录一下 https://segmentfault.com/a/1190000016237395 https://www.cnblogs.com/Dhouse/p/6595344.html https://yq.aliyun.com/articles/30 阅读全文
posted @ 2019-07-05 13:59 jerryzh2019 阅读(343) 评论(0) 推荐(0) 编辑
摘要: /* from: https://blog.csdn.net/ryanzhongj/article/details/80677281 */ 1、启动spark-shell报错: 需要在%SPARK_HOME%\conf目录下新建spark-env.cmd文件,添加内容:# for语句用在批处理命令中 阅读全文
posted @ 2019-07-04 13:50 jerryzh2019 阅读(1519) 评论(0) 推荐(0) 编辑
摘要: mount -t vboxsf tools /mnt/share 报错了:/sbin/mount.vboxsf: mounting failed with the error: No such device 解决办法: yum clean allyum updateyum install kerne 阅读全文
posted @ 2019-06-26 17:36 jerryzh2019 阅读(5228) 评论(0) 推荐(0) 编辑
摘要: 虚拟机里的MongoDB集群全部停掉之后,使用--replSet rs2参数重新启动。mongo shell连进去之后查看状况, 重新初始化,还是不行,rs.status()还是老样子 配置信息看起来还正常 看一下log,有这么一段 2019-06-01T11:03:17.078+0800 W RE 阅读全文
posted @ 2019-06-01 13:29 jerryzh2019 阅读(3156) 评论(1) 推荐(0) 编辑
摘要: Replica Set(复制集)是由一组MongoDB实例组成的集群,每个实例包含相同的数据集(除了arbiter节点)。通过Replica Set提供的数据冗余支持,提供高可用性、读写分离、自动故障转移等功能 如果是正式环境,当然应该部署在单独的服务器上。但是,开发环境需要测试/学习的话,一般会部 阅读全文
posted @ 2019-05-31 09:45 jerryzh2019 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 也是闲的蛋疼,本来用27017/27018/27019三个端口启动了Replica Set,可是回头一想,这个和默认端口重了,还是改成别的吧。于是想改成40001/40002/40003,折腾一圈发现还是得看官方文档,就顺便在这里做个记录吧 先祭出官方链接 https://docs.m 阅读全文
posted @ 2019-05-31 09:28 jerryzh2019 阅读(1411) 评论(0) 推荐(0) 编辑