摘要: 1. 配置文件修改 - 修改local库的位置 - 配置源mirror,推荐很流畅的一个阿里源2017.3.30流畅可用 2. maven的几个基础概念 创建工程 形成的目录 3. pom.xml 标签说明 如果添加httpclient,http://mvnrepository.com/中搜索htt 阅读全文
posted @ 2017-03-30 22:26 AlexBai326 阅读(544) 评论(0) 推荐(0) 编辑
摘要: requests 提供的authen方式有HTTPBasicAuth,HTTPDigestAuth,OAuth等 同时requests提供继承AuthBase,来自定义authen 例如,登录时使用post,使用登录内容为json 自定义authen类,继承AuthBase,将__call__中的r 阅读全文
posted @ 2017-01-23 14:22 AlexBai326 阅读(3402) 评论(0) 推荐(0) 编辑
摘要: 1 1 FOREIGN KEY reference PRIMARY KEY 插入数据,sub表的rootid使用root表中id的值 插入数据,sub表的rootid使用非root表中id的值 FOREIGN KEY reference UNIQUE KEY not primary FOREIGN 阅读全文
posted @ 2017-01-11 22:02 AlexBai326 阅读(325) 评论(0) 推荐(0) 编辑
摘要: MYSQL JOIN 内联结 内联结 外连接 2. left join where 2.right join 3. 模拟full out join 文视图展示 阅读全文
posted @ 2017-01-03 22:27 AlexBai326 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 唯一索引 创建唯一索引的目的不是为了提高访问速度,而只是为了避免数据出现重复。唯一索引可以有多个但索引列的值必须唯一,索引列的值允许有空值。如果能确定某个数据列将只包含彼此各不相同的值,在为这个数据列创建索引的时候就应该使用关键字UNIQUE 索引列的值必须唯一,但允许有空值。如果是组合索引,则列值 阅读全文
posted @ 2016-12-20 15:30 AlexBai326 阅读(3262) 评论(0) 推荐(0) 编辑
摘要: 年纪大了 记不住命令了 常用LINUX备忘录 1. netstat netstat -tulnp -t tcp -u udp -l listen 仅侦听,而非活动已建立的连接 -n 按编号而非名称显示主机和端口 -p 显示端口号的本地进程 -p, --programShow the PID and 阅读全文
posted @ 2016-12-14 15:10 AlexBai326 阅读(285) 评论(0) 推荐(0) 编辑
摘要: nose_parameterized使unitTest支持参数化 GIT https://github.com/wolever/nose-parameterized And @parameterized.expand can be used to generate test methods in s 阅读全文
posted @ 2016-12-13 14:58 AlexBai326 阅读(3434) 评论(0) 推荐(0) 编辑
摘要: 参考phoenix 官网quickStart 1. 创建us_population.sql,定义phoenix表 主键是state 与 city 2. 创建csv文件用于存放带插入数据 3. 通过phoenix-psql.py执行sql脚本并且向phoenix中插入数据 4. 通过C:\phoeni 阅读全文
posted @ 2016-12-05 20:43 AlexBai326 阅读(2297) 评论(0) 推荐(0) 编辑
摘要: ZOOKEEPER zkServer.sh查看基本信息 status zkCli.sh client连接server zookeeper cli的所有命令 zookeeper cli demo 查看hbase的znode信息 阅读全文
posted @ 2016-11-29 10:20 AlexBai326 阅读(570) 评论(0) 推荐(0) 编辑
摘要: delete from 单表语法 delete from 多表语法 delete from 简单示例 delete from 与 select 子查询 阅读全文
posted @ 2016-11-10 10:39 AlexBai326 阅读(2219) 评论(0) 推荐(0) 编辑