Shark0.9.0错误如下:
Starting the Shark Command Line Client
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/hadoop/hive/cli/CliDriver : Unsupported major.minor version 51.0...
分类:
其他好文 时间:
2014-05-15 05:42:17
阅读次数:
375
BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following erroroccurred while executing this line:G:\android\SDK\android-sdk-windows\tools\ant\build.xml:683: null returned:...
分类:
移动开发 时间:
2014-05-15 04:48:27
阅读次数:
647
【题目】
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSI...
分类:
其他好文 时间:
2014-05-15 04:30:57
阅读次数:
313
题目描述
胡大加工厂出产一种特殊零件。某天,客户到厂来查看零件。工厂生产的零件有三个质量等级从高到低分别为A、B、C,但是流水线上的零件质量参差不齐。为了给客户留下好的印象,胡大决定把流水线上的零件整理下,最前面既最左边为质量最高的A等级零件,接着为B、C等级的零件。胡大每次可以选择两个零件,互换其位置。为了节省体力,胡大想知道最少的互换次数。
输入
第一行是一个整数K,表示样例...
分类:
其他好文 时间:
2014-05-15 00:11:58
阅读次数:
310
//生成干扰线,就是画线$posLineX1 = rand(6,30);$posLineX2
= rand(30,60);for($i=0;$i<5;$i++){ $posLinY1=rand(2,10);
$posLinY2=rand(11,28); imageline($im,...
分类:
其他好文 时间:
2014-05-14 23:01:57
阅读次数:
322
1.查看程序对应进程号:ps–ef|grep进程名2.Linux下查看端口号所使用的进程号:使用lsof命令:lsof–i:端口号
分类:
系统相关 时间:
2014-05-14 22:55:34
阅读次数:
483
最近有个小项目用到了linux,需要远程登录,测试了下vncserver,搞了大半天愣是木有成功,后来换了ssh。找到一篇很不错的博文,亲测通过,链接如下:http://zhoualine.iteye.com/blog/1750569发出来分享,木有找到转载连接,所以这样啦。感谢原作者。
分类:
系统相关 时间:
2014-05-14 22:45:47
阅读次数:
409
我们可以在计算机上运行各种计算机软件程序。每一个运行的程序可能包括多个独立运行的线程(Thread)。
线程(Thread)是一份独立运行的程序,有自己专用的运行栈。线程有可能和其他线程共享一些资源,比如,内存,文件,数据库等。
当多个线程同时读写同一份共享资源的时候,可能会引起冲突。这时候,我们需...
分类:
编程语言 时间:
2014-05-14 22:18:32
阅读次数:
334
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:
其他好文 时间:
2014-05-14 16:06:25
阅读次数:
296