`
serisboy
  • 浏览: 172114 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
package com.hadoop.sample; import java.io.IOException; import java.util.Iterator; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.h ...
package com.hadoop.sample; import java.io.IOException; import java.util.Iterator; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.h ...
package com.hadoop.sample; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import ...
package com.hadoop.sample; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import ...
package com.hadoop.sample; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Job; import ...
原文链接:http://www.searchbi.com.cn/showcontent_62856.htm   事实1:Hadoop是由多个产品组成的。   人们在谈论Hadoop的时候,常常把它当做单一产品来看待,但事实上它由多个不同的产品共同组成。   Russom说:“Hadoop是一系列开源产品的组合,这些产品都是Apache软件基金会的项目。”   一提到Hadoop,人们往往将其与MapReduce放在一起,但其实HDFS和MapReduce一样,也是Hadoop的基础。   事实2:Apache Hadoop是开源技术,但专有厂商也提供Hadoop产品。   由于Hadoo ...
在处理大文件时,如果利用普通的FileInputStream 或者FileOutputStream 抑或RandomAccessFile 来进行频繁的读写操作,都将导致进程因频繁读写外存而降低速度.如下为一个对比实验。 package com.jiubang; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAcces ...

mapper-reduce

hadoop之mapper-reduce小程序!
WHILE ( @i<=30) DO IF @i = 8 THEN SET @i = 15; END IF; IF @i = 16 THEN SET @i = 30; END IF; DEALLOCATE PREPARE s1; SET @stmt = CONCAT('INSERT INTO gotable_stayuser_copy(DATE,country,`version`,channel,day',@i,') SELECT ',DATE_FORMAT(DATE_ADD(t_data, INTERVAL -@i DAY),'%Y-%m-%d'),'t. ...
http://www.skycn.com/soft/19170.html 1.下载安装程序,完成安装 2.到安装所在目录的lib文件下替换:dbvis.jar 3.打开软件,Help --> License Key, 导入dbvis.license # DbVisualizer License dbvis.license.product = DbVisualizer dbvis.license.edition = Personal dbvis.license.version = 5.* dbvis.license.id = 1234567890 dbvis.license.name = ...
捕获hive脚本异常: echo $? 写在每条hive命令执行后的下一行,错误例子(先自定义一个监控文件,专门记录监控日志): hql="show tabls;" echo ${hql} | ${HIVE_PATH}/bin/hive echo $? >> monitor.log 正常情况下返回0,异常情况下一般返回11 监控方法:定期查看监控日志的情况,即可迅速发现异常。 http://www.programfan.com/club/showtxt.asp?id=386994 hadoop fs -get /user/hive/ware ...

oracle

create table st as( select '324' id,'黄埔' name,'220' cc from dual union all select '325','^UP','110' from dual union all select '326','^UP','小计' from dual union all select '327','萝岗','500' from dual union all select '328','^UP','220' from dual union all select '329','^UP','110' from dual union ...
我有没有欠大家五块钱?! 转载! 有一位影剧界的朋友告诉我一个生活小插曲 某次录影她打无线电计程车回家,下车时计费表上显示的是一百八十元,她拿出两百元给司机,司机默默的收了。 以台北市的计费标准,表上加十五 ...

myeclipse6.5破解

    博客分类:
  • java
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class PoJie { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc ...
oracle中使用绑定变量的好处 Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 Connected as scott SQL> set timing on; Executed in 0.468 seconds SQL> create table test(id varchar2(8)); Table created Executed in 0 seconds SQL> SQL> declare 2 s var ...
Global site tag (gtag.js) - Google Analytics