自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 HDFS的API使用

HDFS的API总体来说有两个主要的类。FileSystem 和Configuration。导入依赖<dependencies><dependency><groupId>org.apache.hadoop</groupId><artifactId>hadoop-client</artifactId><version&...

2021-11-12 16:25:12 1658

原创 2021-11-05

WordCount的实现map端public static class WordCountMapper extends Mapper<LongWritable, Text,Text, IntWritable>{protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {String[] ...

2021-11-05 15:08:59 843

原创 2021-10-29

public class MapSideJoin { public static class MapSideJoinMapper extends Mapper<LongWritable, Text, Text, NullWritable>{ private HashMap<String,String> userMap = new HashMap<>(); protected void setup(Mapper<LongWritab...

2021-10-29 19:03:29 138

原创 2021-10-22

create table worker_seq(id int,name string)stored as sequencefile;将从别的表查询的数据放入到seq中insert into worker_seqselect id,name from worker_1将查询出来的数据直接使用sequencefile保存。create table worker_seqstored as sequencefileasselect *from worker_1;

2021-10-22 16:05:48 72

原创 2021-10-15

create table t_order(orderid int,name string)row format delimitedfields terminated by ",";load data local inpath '/usr/datadir/order.txt' into table t_order;create table t_goods(goodid int,price int)row format delimitedfields term

2021-10-15 14:54:28 51

原创 2021-09-28

public class Demo2{ public static void main(String[] args){ int n = 13; decompose(n); } private static void decompose(int n){ System.out.print(n+"="); for(int i=2;i<n+1;i++){ while(n%i==0 &...

2021-09-28 15:26:09 94

原创 2021-09-28

public class Demo{ public static void main(String[] args){ int m = 1; int n = 1000; int count = 0; for(int i=m;i<n;i++){ if(isPrime(i)){ count++; System.out.prin...

2021-09-28 15:23:53 113

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除