hadoop基础
小胖超凶哦!
睡觉了,别学了!
展开
-
Hadoop生态系统
原创 2022-04-11 14:31:58 · 251 阅读 · 0 评论 -
MapReduce4
package com.shujia.MapReduce;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.FileSystem;import org.apache.hadoop.fs.Path;import org.apache.hadoop.io.IntWritable;import org.apache.hadoop.io.LongWritable;import org.apache.hado.原创 2022-03-27 20:48:50 · 1037 阅读 · 0 评论 -
MapReduce3
[root@master ~]# mv score.txt /usr/local/soft/data[root@master ~]# cd /usr/local/soft/data[root@master data]# lsnew_db.sql student.sql theZen.txtscore.sql students.txt wordcountscore.txt theZenOfPython.txt words.txt[root@master .原创 2022-03-26 15:48:58 · 1016 阅读 · 0 评论 -
MapReduce2
解析: 输入输出格式化的类map端处理完会先写到环形缓冲区,100M,80%溢写磁盘时会分区(哈希分区),排序(快速排序)合并(归并排序)//// Source code recreated from a .class file by IntelliJ IDEA// (powered by FernFlower decompiler)//package org.apache.hadoop.mapred.lib;import org.apache.hadoop.clas...原创 2022-03-26 09:12:42 · 941 阅读 · 0 评论 -
MapReduce1,HashCode
Java基本类型 Writable 序列化大小(字节) 布尔型(boolean) BooleanWritable 1 字节型(byte) ByteWritable 1 整型(int) IntWritable 4 VIntWritable ...原创 2022-03-25 19:36:57 · 2484 阅读 · 0 评论 -
ZooKeeper
q原创 2022-03-25 10:12:12 · 849 阅读 · 0 评论 -
zookeeper配置
[root@master packages]# cd ..[root@master soft]# ls0?? hadoop-2.7.6 redis shell01 zookeeper-3.4.6A?? jdk1.8.0_171 redis-6.2.6 showdata packages shell test.txt[root@master soft]# cd zookeeper-3.4.6/[root@master zookeeper-.原创 2022-03-24 15:24:09 · 669 阅读 · 0 评论 -
HDFS的API
package com.shijia.HDFS;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.FileSystem;import org.apache.hadoop.fs.Path;import java.io.IOException;public class Demo01TestAPI { public static void main(String[] args) throws I.原创 2022-03-23 10:40:39 · 1113 阅读 · 0 评论 -
hdfs,mapreduce
[root@master ~]# hdfs dfs -ls /Found 4 itemsdrwxr-xr-x - root supergroup 0 2022-03-21 18:41 /testHDFSshell1drwxr-xr-x - root supergroup 0 2022-03-21 18:46 /testHDFSshell2drwxr-xr-x - root supergroup 0 2022-03-21 18:46 .原创 2022-03-22 20:23:53 · 404 阅读 · 0 评论 -
hadoop配置
[root@master ~]# cd /usr/local/soft[root@master soft]# lsdata packages redis-6.2.6 shell01 test.txtjdk1.8.0_171 redis shell show[root@master soft]# ssh masterLast login: Mon Mar 21 16:34:46 2022 from fe80::e938:d89b:966:b6...原创 2022-03-21 18:55:27 · 1052 阅读 · 0 评论