上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: package com.asp;import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.Path;import org.apache.hadoop.hbase... 阅读全文
posted @ 2014-04-02 09:01 沙漠里的小鱼 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: package com.asp;import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.Path;import org.apache.hadoop.hbase... 阅读全文
posted @ 2014-03-10 16:59 沙漠里的小鱼 阅读(583) 评论(0) 推荐(0) 编辑
摘要: from thrift import Thriftfrom thrift.transport import TSocketfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocolfrom hbase import Hbasefrom hbase.ttypes import *import reimport sys import timecurrent_row=0 transport = TSocket.TSocket('192.168.106.36', 9090)tran 阅读全文
posted @ 2014-03-10 14:45 沙漠里的小鱼 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: package com.asp;import java.io.BufferedReader;import java.io.File;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOExce... 阅读全文
posted @ 2014-03-05 16:44 沙漠里的小鱼 阅读(2371) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8#!/usr/bin/pythonimport cx_Oracleimport sysimport os m=sys.argv[1]sql="select a.mobile,b.city_name from (select mobile,city_id from dw_cmmb_user_"+m+" where show_flag=1 group by mobile,city_id) a, (select * from dim_areacode where province_id=551) b where a.city_id=b.city 阅读全文
posted @ 2014-01-15 11:39 沙漠里的小鱼 阅读(1467) 评论(0) 推荐(0) 编辑
摘要: hadoop 19252 19251 0 05:00 ? 00:00:00 /bin/sh -c (sh /home/hadoop/src/renow_hive_second.sh >> /home/hadoop/src/log/renow_hive_second.log )hadoop 19253 19252 0 05:00 ? 00:00:01 sh /home/hadoop/src/renow_hive_second.shhadoop 20510 19253 0 05:09 ? 00:00:58 /apps/usr/java/jdk1.6/bin/java -Dproc_ja 阅读全文
posted @ 2014-01-15 11:05 沙漠里的小鱼 阅读(187) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python #coding: utf-8 import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText #import stmp_mail sender = 'hadoop520@126.com' receiver ='hello@126.com'subject = '数据测试' smtpserver = 'smtp.126.com' username = ' 阅读全文
posted @ 2014-01-13 15:56 沙漠里的小鱼 阅读(147) 评论(0) 推荐(0) 编辑
摘要: import ref = open("beijing1.txt", "r")t = open("beijing2.txt", "w") while True: line = f.readline() if line: if 'np' in line and 'offline' in line : m=re.split("[|]",line) r1=r".*\?IMSI=(\d+)&MOBILE=&VERSION=(.*)&CHAN 阅读全文
posted @ 2013-12-04 16:04 沙漠里的小鱼 阅读(106) 评论(0) 推荐(0) 编辑
摘要: import ref = open("1205.txt", "r") m = open("1206.txt","w") while True: line = f.readline() if line: x=re.split("[|]",line) r1=r"\w+_(renow.+Alpha).*\?IMSI=(\d+)&MOBILE=&OLD_VERSION=(.*)&CHANNELID=(.*)" s=re.search(r1,x[2]) if s 阅读全文
posted @ 2013-12-04 15:27 沙漠里的小鱼 阅读(172) 评论(0) 推荐(0) 编辑
摘要: str = "0123456"if str.find("8")!=-1 or str.find("3")!=-1: print "YES!"else: print "NO!"会输出"YES!" 阅读全文
posted @ 2013-12-04 10:31 沙漠里的小鱼 阅读(1183) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页