摘要: 获取分布式文件系统 URI 对象是指向hadoop集群中的namenode 节点, 端口也是配置的 , user = “”ljs“” 用户 上传文件到hdfs文件系统 从hdfs文件系统下载文件 给hdfs文件系统创建目录s 删除某文件 给某个文件或目录改名字 阅读全文
posted @ 2018-12-04 22:19 清湾大威少 阅读(227) 评论(0) 推荐(0)
摘要: 启动hdfs 需要在namenode 节点 上 s11 启动yarn 需要在resourceManager 节点上 namenode, resourceManager 都需要在整个集群中都是可以无密登录的。 格式化文件系统:(格式化成功的条件是 删除了之前文件系统的残留文件 /tmp ${HADOO 阅读全文
posted @ 2018-12-04 18:18 清湾大威少 阅读(183) 评论(0) 推荐(0)
摘要: package cn.ljs.FristSync; import java.util.ArrayList; public class ProductorDemo { public static void main(String[] args) { Pool pool = new Pool(); Productor01 pr... 阅读全文
posted @ 2018-12-03 10:58 清湾大威少 阅读(324) 评论(0) 推荐(0)
摘要: 建立票池 阅读全文
posted @ 2018-12-02 20:08 清湾大威少 阅读(350) 评论(0) 推荐(0)
摘要: File类 构造函数: FIle file = new File(path); 常用函数: 是否存在: file.exists() 文件名: file.getName() 父目录: file.getParent() FileInputStream 类 构造方法: InputStream is = n 阅读全文
posted @ 2018-12-01 19:55 清湾大威少 阅读(158) 评论(0) 推荐(0)
摘要: servelet 容器 将前台的请求转发给后台 接受 http 表单, 后台处理操作数据库并且放回用户 。(粗劣) 手工编写第一个Servlet 手工编写第一个Servlet 1, 继承httpservlet 2, 重写 doGet() , doPost() 3, 在web.xml 中注册servl 阅读全文
posted @ 2018-11-30 23:30 清湾大威少 阅读(302) 评论(0) 推荐(0)
摘要: package cn.ljs; import java.util.Arrays; public class ArrayDemo { public static void main(String [] args){ int [] arr1 = {1,2,3}; int [] arr2 = {1,434,34,2,3}; System.... 阅读全文
posted @ 2018-11-28 20:03 清湾大威少 阅读(345) 评论(0) 推荐(0)
摘要: [/soft/hadoop/etc/hadoop] [hdfs-site.xml] [mapred-site.xml] hdfs dfsadmin refreshNodes [yarn.xml] [core-site.xml] [slaves] 阅读全文
posted @ 2018-11-28 15:24 清湾大威少 阅读(297) 评论(0) 推荐(0)
摘要: 1、 解药hadoop包 1, C:\hadoop-2.7.2\share\hadoop 提取出所有的 jar 包, 到 _lib 文件夹下 2,将有含有source 名称的jar包 剪切出来 3,再 将含有 test名称的jar包剪切出来。 4, 留下剩余的jar包, 拷贝到eclipse 中的l 阅读全文
posted @ 2018-11-28 07:11 清湾大威少 阅读(4536) 评论(0) 推荐(1)
摘要: 四台虚拟机 [/etc/hosts] s11: 192.168.59.11 s12: 192.168.59.12 s13: 192.158.59.13 s14: 192.168.59.14 ps: s11 机器,vim /etc/hostname s11 s11 作为其他三机器的管理机, 实现无密登 阅读全文
posted @ 2018-11-26 21:06 清湾大威少 阅读(146) 评论(0) 推荐(0)