- 博客(12)
- 收藏
- 关注
转载 spark笔记
./bin/spark-shell--masterlocal[2]./bin/pyspark--masterlocal[2]The--masteroptionspecifiesthemasterURLforadistributedcluster,orlo...
2016-02-14 19:05:00
147
转载 linux查看是否为虚拟机
dmesg |grep vm 转载于:https://my.oschina.net/u/2510197/blog/611017
2016-01-28 17:08:00
170
转载 hive正则建表
日志如下192.168.244.35--[03/Dec/2015:23:22:11+0800]"POST/touch/appService.hotwaveHTTP/1.0"20077"-""Apache-HttpClient/4.1.3(java1.5)""-"...
2015-12-03 23:25:00
234
转载 python url解码
url='%E5%8E%BB%E5%93%AA%E5%84%BF%E6%97%85%E8%A1%8C/4.7.8.8941'printurllib.unquote(url).decode('utf-8','replace')[searcher@l-pgdata2.vc.cn5/ex...
2015-11-16 15:21:00
163
转载 shell date处理
xyang@xyang-Latitude-E5440:~$cattest.sh#!/bin/bashtoday=$(date+%F)if[-n"$1"];thentoday=$1fiyesterday=$(date-d"${today}-1day...
2015-11-11 14:39:00
178
转载 pg 异常捕获
createfunctionstring_to_json(varchar)returnsjsonas$$BEGINreturn$1::json;EXCEPTIONWHENdata_exceptionTHENreturn'{}'::json;END...
2015-11-10 10:36:00
1045
转载 python调用shell
importos,mathi=121whilei<225:outFile=str(int(math.ceil(float(str(i)+'.0')/4)))printoutFileifi%4==1:filename='2015...
2015-11-09 13:53:00
92
转载 kafka 文档学习
brokerstopics一个topic可以有多个分区,每一个分区位于一个broker上.每个topic的多个partitions都有一个称为leader的server,用于处理分区的读写请求,同时有0到多个followers,用于分区备份,如果leader失败,其中任一foll...
2015-11-06 23:58:00
130
转载 ubuntu 开机执行脚本
#在/etc/rc.local文件中添加要执行的命令,exit0结尾xyang@xyang-Latitude-E5440:~$cat/etc/rc.local#!/bin/sh-e##rc.local##Thisscriptisexecutedatthe...
2015-11-06 23:47:00
145
转载 ubuntu 无线网速很慢
#执行如下命令xyang@xyang-Latitude-E5440:~$catwifisudoifconfigwlan0downsudormmod-fath9ksudomodprobeath9knohwcrypt=1sudoifconfigwlan0up...
2015-11-06 23:27:00
122
转载 pg 数组函数
--删除数组中特定值元素mydb=#selecttypes,array_to_string(array_remove(string_to_array(types,','),'group'),',')asafter_cut_groupfromyx_support_business...
2015-11-06 23:23:00
678
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人