- 博客(287)
- 资源 (37)
- 收藏
- 关注
转载 python 调用 shell 的方法(转载)
国人一片抄,看一看老外的吧:How to Execute a Shell Command in Python [Step-by-Step]https://codefather.tech/blog/shell-command-python/
2022-04-18 15:32:12
252
原创 python多进程子进程不运行问题--未解决
在升级程序到 python3.9 后,异步非阻塞的子进程起不来了,实际代码在python3.6 版是可以运行的 :程序逻辑及相关使用方式大概是这样的def job(x): return x * xif name == “main”: pool multiprocessing.Pool() res = [pool.apply_async(target=job, (i,)) for i in range(3)] print [r.get() for r in res
2021-08-18 20:15:28
4168
5
原创 老版本Python3.6 安装踩坑
因业务需要安装老版本的python3.6.7 ,当前系统默认的 python2.7 brew 安装的 3.7brew 回退安装 3.6.* 版本的
2021-06-04 20:19:27
232
原创 wscat 安装踩坑
安装 wscat 简单npm install -g wscat$ wscat -c ws://echo.websocket.orgConnected (press CTRL+C to quit)> hi there< hi there> are you a happy parrot?< are you a happy parrot?据说可用了,但是环境报错了wscat -h
2021-05-12 12:12:06
2692
原创 一个kafka的bug:StringDeserializer could not be found ,kafka 版 2.6.6
近期用了个新版本的 spring-boot:所以 kafka 也上到了 2.6.6 ,于是乎遇到了题目上的问题,全网大部分的解决方案见下链接:https://www.it610.com/article/1294134785026891776.htmhttps://blog.csdn.net/yixiaoqi2010/article/details/88987929https://stackoverflow.com/questions/37363119/kafka-producer-org-a
2021-03-19 17:50:04
700
原创 mac Pro 的 Big Sur强迫升级~~~!!!
warning:仅代表个人观点,如有雷同不是巧合。Error:mac 版本的大升级一定要谨慎,谨慎 再谨慎!!这次是 从 10.15.* -> 11.3 所谓的 Catalina 升级到 Big Sur ,各种心酸苦闷第一部 错误点击的升级如果对版本没有特别的需求建议关闭自动更新及相关提示。Big Sur 已经发布约半年了,这过程中每次提示都点击 下次提醒。在春节这个万众喜庆的日子里,手欠欠地点了重启更新……好吧 ,在重启更新前可以先做一下相关的准备工作,比如备...
2021-02-13 23:32:40
3405
原创 swagger2 踩坑记录
1. swagger2 是用Springfox Swagger2导入的swagger2 最新版本只到 2.9.2,后面2.10 以上都是swagger3了如果要使用 swagger3 ,可以不用springfox 了,用什么,你再找一下2.swagger2 添加完注解就完事了?不是,默认不能直接访问 ***/swagger-ui.html页面依旧是空白增加个配置,映射静态文件,并且注意Interceptor 需要过滤一下url@Configurationpubli...
2020-08-19 20:26:08
1025
原创 阿里云kafka使用springboot单个项目中同时消费不同topic
本来是个简单的问题,但是复杂了。两个topic 消费方式不一样,一个使用过的是默认方式,不指定partition,另外一个,指定了特殊的partition。报错:11:10:32.888 [org.springframework.kafka.KafkaListenerEndpointContainer#1-0-C-1] ERROR o.a.k.c.c.i.ConsumerCoordinator - [Consumer clientId=futures_deal_group-1302249340
2020-08-04 15:52:10
1442
原创 java 实现 PHP password_hash() password_verify() 单向验证
近期一个 php 转 java 项目中遇到。写出来分享一下:java BCrypt 类库。https://github.com/patrickfav/bcrypt @Test public void testBCrypt() { String password = "abcd"; String bcryptHashString = BCrypt...
2019-05-08 16:29:46
2671
原创 Tmux2.6 升级到 Tmux2.8 问题
出现问题了~~问题1:invalid option : ***line具体就是 : set -g status-utf8 on 行原因:https://github.com/mattjmorrison/dotfiles/pull/30国内没人遇到?? 一个文档都没提示 问题2:.tmux.conf:174: usage: bind-key [-cnr]...
2019-01-26 16:08:22
1537
原创 Mac下Nginx无法关闭的问题
一直被困扰,没找对方法。在终端模式下,能查询到:***/bin/daemondo --label=nginx --start-cmd ***/apps/macports-2.3.4/sbin/nginx ; --pid=fileauto --pidfile ****/apps/macports-2.3.4/var/run/nginx/nginx.pid没办法通过kill ngin...
2019-01-21 21:52:06
1891
原创 Intellj 导入项目后,mvn lib无法自动识别
一般会在项目中提示各种无法定位到class,快捷键alt+enter 提示如下:Add library 'Maven: org.spring.framework:spring-beans:***' to classpath如此之后确认加入classpath后就可以正常使用了。可是很多的import使用的lib,如何解决?之前的解决方法及相关问题描述:https://stackov...
2018-12-12 16:40:11
690
原创 was unable to refresh its cache! status = Cannot execute request on any known server
一般报错会是这样的:RROR [main] c.n.d.s.t.d.RedirectingEurekaHttpClient [RedirectingEurekaHttpClient.java:83] - Request execution errorcom.sun.jersey.api.client.ClientHandlerException: java.net.ConnectExce...
2018-12-10 09:31:06
10342
1
原创 mvn打包springboot项目运行提示jar中没有主清单属性
老人遇到新问题。先参考如下几篇文章:https://blog.csdn.net/gnail_oug/article/details/80026001https://blog.csdn.net/lby0307/article/details/78796411https://blog.csdn.net/dodott/article/details/81147011如果没有解决,继续下面...
2018-12-04 20:37:58
1202
原创 mysql外键:error:1215 - Cannot add foreign key constraint
Mysql foreign key 不能添加常见原因: 个人原创转载注明出处:https://blog.csdn.net/danssion/article/details/81974867 1.检查目标指向的字段是否是主键。 2.检查是否表内已经存有数据,导致约束失败 3.检查改字段是否已经建立了索引,重复创建索引会出错,外键是一个索引。 4.检查关联的两个字段的类...
2018-08-23 09:47:06
356
原创 MacPort升级记:MacPorts Error:Current platform “darwin 17“ does not match expected platform “darwin 15“
原创文章,转载注明出处。port对于mac的用处就略过了。mac系统up up date,port 有一天就出现标题错误了。按照网络文章一般般操作,下载安装包见 https://www.macports.org/install.php,安装个最新版本后,port list installed 提示没有软件安装,这......其他各种方法,替换,pkg最新版或次新版,都如此,难道以...
2018-01-22 14:48:35
2139
转载 docker 入门
看了很多书籍和文章,这里基本是官方文档的中文翻译,不错:http://www.dubby.cn/detail.html?id=8735 相关文章
2017-10-27 18:23:00
383
原创 xhprof 的下载bug
项目中偶然会遇到需要用xhprof,经过一阵鼓弄,擦大部分网上攻略里面wget http://pecl.php.net/get/xhprof-0.9.4.tgztar -zxvf xhprof-0.9.4.tgzcd xhprof-0.9.4cd extensionphpize./configure --enable-xhprofmakemake testsudo make
2016-08-22 14:33:01
358
转载 cloudera 各个版本对于的系统类型
给选择版本有疑问的。Repository TypeLocationRepo fileTarball filesYum RHEL 6/CentOS 6 (64-bit)http://archive.cloudera.com/cm4/redhat/6/x86_64/cm/4/
2016-03-02 16:56:48
3907
原创 centos 6.8 的libmcrypt问题
mark 一个懒人安装方式:第一个命令不是必选,第二行命令无法找到对应库,就需要第一行命令yum install epel-release.noarchyum install libmcrypt libmcrypt-devel mcrypt mhash
2015-10-12 20:32:00
595
转载 eclipse常用快捷键
eclipse常用快捷键1 ctrl+shift + 上下键 跳转到上一个/下一个函数2 ctrl+shift + 左右键 选中区域(函数,变量等)3 ctrl+f find/replace4 ctrl+h find Ctrl+K Find Next Ctrl+Shift+K Find Previous 5
2014-09-24 15:51:17
622
转载 Hadoop中HDFS文件系统的Append/Hflush/Read设计文档(HDFS-265:Revisit append)
转载来自:http://blog.csdn.net/chenpingbupt/article/details/7972589
2014-08-29 12:10:08
571
原创 关于unknown terminal type.
'screen-256color': unknown terminal type.export TERM=xterm-256color
2014-07-28 11:13:54
2188
2
原创 关于hadoop使用lzo压缩的流程
1.为何要使用lzo看这里,http://blog.cloudera.com/blog/2009/11/hadoop-at-twitter-part-1-splittable-lzo-compression/脏值
2014-07-14 10:52:21
758
转载 官方给出的集群需要的配置项及说明
Configuring Environment of Hadoop DaemonsAdministrators should use the conf/hadoop-env.sh and conf/yarn-env.sh script to do site-specific customization of the Hadoop daemons' process environment.A
2014-07-03 12:19:19
1219
原创 Hadoop Exception: java.lang.IllegalArgumentException: Does not contain a valid host:port authority:
hadoop FATAL org.apache.hadoop.mapred.JobTracker: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: hadoop_master:9001at org.apache.hadoop.net.NetUtils.createSo
2014-06-30 10:38:03
7200
原创 hadoop cdh4 eclipse plugin
参考了很多mapre1 插件生成文档,大部分都是hadoop标准版本的,这里给个CDH4的,仅供参考。参考了标准hadoop生成流程:http://m.blog.csdn.net/blog/u010415792/89762611)download eclipse2)解压 eclipse3)安装与配置 Ant 修 改 /etc/profile 文件export ANT_HOME=[pa
2014-06-25 12:10:32
870
原创 linux将程序放在后台运行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div id="content" class="content mod-cs-content text-content clearfi
2014-06-25 12:10:30
9608
原创 hadoop的datanode多磁盘空间不统一…
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div id="content" class="content mod-cs-content text-content clearfi
2014-06-25 12:10:28
6830
原创 hadoop-yarn架构的内存相关设置
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div id="content" class="content mod-cs-content text-content clearfi
2014-06-25 12:10:25
724
原创 linux top (转载)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div id="content" class="content mod-cs-content text-content clearfi
2014-06-25 12:10:23
400
原创 Linux主机名Hostname详解
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><div id="content" class="content mod-cs-content text-content clearfi
2014-06-25 12:10:21
580
Symbian OS Series 60 新手编码指南
2009-05-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人