hadoop dfs -cat xxxhadoop dfs -ls [xxx]hadoop dfs -rm xxx删除目录及其内容hadoop dfs -rmr xxx 查看子目录数、文件数及大小hadoop dfs -count xxx 查看目录大小hadoop dfs -du xxxhadoop...
分类:
其他好文 时间:
2014-07-12 00:22:25
阅读次数:
164
条件编译#if (PHONE_TYPE == T46_TYPE)#define LINEKEY_PERPAGE_COUNT 9#elif (PHONE_TYPE == T48_TYPE)#define LINEKEY_PERPAGE_COUNT 9#elif (PHONE_TYPE == T42_T...
分类:
其他好文 时间:
2014-07-11 23:31:57
阅读次数:
175
function repeat(str, count) { return count '; }; document.write(s);}diamond('A', 5);
分类:
Web程序 时间:
2014-07-11 23:17:14
阅读次数:
213
这道题我错了一次,主要是A跟Z边界没有考虑,其他的就是记得测试时用nextLine,因为字符串可能可能有空格。
import java.util.Scanner;
public class bigLetterCount {
public static int CalcCapital(String str){
int count=0;
for(int i=0;i<str.length()...
分类:
其他好文 时间:
2014-07-09 12:17:19
阅读次数:
279
可以稍微让代码写的好看,不用直接写双循环的话,就可以写成函数的调用,重用性也很高。
import java.util.Scanner;
public class findOnlyOnceChar {
public static boolean FindChar(String pInputString, char pChar){
int count=0;
for(int i=0;i<pI...
分类:
其他好文 时间:
2014-07-09 11:48:07
阅读次数:
397
CREATE TABLE tmp AS SELECT id FROM get_review_url WHERE (no,title,name,content) IN (SELECT no,title,name,content FROM get_review_url GROUP BY no,title,name,content HAVING
COUNT(*) > 1) AND id NOT I...
分类:
数据库 时间:
2014-07-09 11:46:16
阅读次数:
197
总所周知,mysql分页是这样写的: select * from 'yourtable' limit start,rows 现在我数据库一张表里面有9969W条数据,表名叫tweet_data
select count(*) from tweet_data
执行第一条sql语句,就查6000000条开始的10条,看查询时间
58s这得有多慢!
解决方案一、
有人立马...
分类:
数据库 时间:
2014-07-09 10:50:54
阅读次数:
290
Count the string
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4449 Accepted Submission(s): 2094
Problem Description
It is wel...
分类:
其他好文 时间:
2014-07-09 10:02:57
阅读次数:
165
explainplanforselectCFG_ID,COUNT(0)totalfromLOG_FD_VIDEO_SAMPLEawhere1=1andSERVICE_TYPE=35andFOUND_TIME>=to_date(‘2014-07-0800:00:00‘,‘yyyy-MM-ddHH24:mi:ss‘)andFOUND_TIME<=to_date(‘2014-07-0816:00:00‘,‘yyyy-MM-ddHH24:mi:ss‘)AND(cfg_idin(‘30811‘,‘30812..
分类:
数据库 时间:
2014-07-09 08:14:21
阅读次数:
298
ssh连接远程服务器,报警信息AddressX.X.X.Xmapstolocalhost,butthisdoesnotmapbacktotheaddress-POSSIBLEBREAK-INATTEMPT!如下:[root@upgirl~]#sshroot@192.168.0.203Address192.168.0.203mapstolocalhost,butthisdoesnotmapbacktotheaddress-POSSIBLEBREAK-INATTEMPT!root@19..
分类:
其他好文 时间:
2014-07-09 08:04:07
阅读次数:
241