摘要: 官网地址:http://hadoop.apache.org/简单学习一下hadoop的安装:1.下载 我下载的是hadoop 1.0.32.伪分布式配置: a. core-site.xml <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property></configuration>b.hdfs-site.xml 1 <?xml version... 阅读全文
posted @ 2012-09-21 10:08 witwave 阅读(237) 评论(0) 推荐(0)
摘要: public static void test() throws IOException, Exception, TException { TTransport tr = new TFramedTransport(new TSocket("localhost", 9160)); TProtocol proto = new TBinaryProtocol(tr); Cassandra.Client client = new Cassandra.Client(proto); tr.open(); String keyspace = "content"; cl 阅读全文
posted @ 2011-12-31 14:55 witwave 阅读(319) 评论(0) 推荐(0)
摘要: http://www.yiiframework.com/extension/xdateview/ 阅读全文
posted @ 2011-12-14 10:19 witwave 阅读(282) 评论(0) 推荐(0)
摘要: 详细使用方法见原文http://www.yiiframework.com/extension/excel-sheet-view/ 阅读全文
posted @ 2011-12-14 10:15 witwave 阅读(384) 评论(0) 推荐(0)
摘要: 说明:定义一个数组,使用for, while #!/bin/bashfiles=(file1 file2 file3)for file in ${files[*]};doecho filedonei=0len=${#files[*]}while [ $i -lt $len ];do echo "$i:${file[$i]}" let i++;done 阅读全文
posted @ 2011-12-14 09:59 witwave 阅读(278) 评论(0) 推荐(0)