airflow 实战

摘要: def print_hello(*a,**b): print a print " " print b print 'Hello world!' raise ValueError("pre_paths or find_svr is null") return {"hello":"Hello world 阅读全文
posted @ 2018-03-08 20:18 我和你并没有不同 阅读(1023) 评论(0) 推荐(0) 编辑

python 常见异常

摘要: 上面是查看异常的类型 ,知道了异常的类型,才知道怎么捕获这种异常 AttributeError 不存在属性 IoError 输入或输出异常 ImportError 无法引入模块或包。(一般是路径问题或模块名称有误) IndentationError 语法错误(SyntaxError子类),一般是代码 阅读全文
posted @ 2018-03-04 21:19 我和你并没有不同 阅读(147) 评论(0) 推荐(0) 编辑

oplog

摘要: 参考资料:https://www.cnblogs.com/ruizhang3/p/6539730.html http://www.jb51.net/article/113432.htm :insert Raw data {u'h': 0L, u'ts': Timestamp(1519780847, 阅读全文
posted @ 2018-02-28 10:38 我和你并没有不同 阅读(223) 评论(0) 推荐(0) 编辑

airflow笔记

摘要: 官网:http://airflow.incubator.apache.org/project.html Here we pass a string that defines the dag_id, which serves as a unique identifier for your DAG. T 阅读全文
posted @ 2018-02-27 17:29 我和你并没有不同 阅读(620) 评论(0) 推荐(0) 编辑

airflow

摘要: 教程:https://airflow.apache.org/docs/stable/index.html 官网: http://airflow.incubator.apache.org/index.html airflow源码:https://github.com/apache/incubator- 阅读全文
posted @ 2018-02-07 16:05 我和你并没有不同 阅读(8993) 评论(0) 推荐(1) 编辑

grpc protobuf

摘要: rpc和http的比较: http://www.ccutu.com/244407.html http通信时带报文头,增加了传输成本 RPC主要是基于TCP/IP协议的,而HTTP服务主要是基于HTTP协议的【HTTP是应用层协议,而TCP是传输层协议,HTTP协议是在传输层协议TCP之上的,所以效率 阅读全文
posted @ 2018-02-01 13:42 我和你并没有不同 阅读(289) 评论(0) 推荐(0) 编辑

modbus

摘要: 《MODBUS通讯协议中文版.pdf》 RS485是一个物理接口,简单的说是硬件。 MODBUS是一种国际标准的通讯协议,用于不同厂商之间的设备交换数据(一般是工业用途);所谓协议,也可以理解为上面有人说的“语言”吧,简单的说是软件。 MODBUS协议又分MODBUS RTU,MODBUS ASCI 阅读全文
posted @ 2017-12-31 17:58 我和你并没有不同 阅读(2969) 评论(0) 推荐(0) 编辑

Kafka无法外网访问问题

该文被密码保护。 阅读全文
posted @ 2017-12-17 10:04 我和你并没有不同 阅读(5) 评论(0) 推荐(0) 编辑

Linux 工具,一本好书 大牛的博客

摘要: http://linuxtools-rst.readthedocs.io/zh_CN/latest/base/index.html http://design-patterns.readthedocs.io/zh_CN/latest/read_uml.html#id3 大牛的博客: http://w 阅读全文
posted @ 2017-12-14 13:51 我和你并没有不同 阅读(203) 评论(0) 推荐(0) 编辑

struct modbus是大端的

摘要: https://www.cnblogs.com/coser/archive/2011/12/17/2291160.html https://www.cnblogs.com/gala/archive/2011/09/22/2184801.html struct :将某些特定的结构体类型打包成二进制流的 阅读全文
posted @ 2017-12-13 12:30 我和你并没有不同 阅读(1318) 评论(0) 推荐(0) 编辑