package cn.itcast.hadoop.mr;import java.io.IOException;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.Path;import org.apache. ...
分类:
其他好文 时间:
2020-02-02 23:19:55
阅读次数:
98
今天去面试,总结一下的笔试的题目第一题问:每3s读取input.txt的内容并打印到控制台中,分别用同步和于异步的方法答:1234567891011const fs = require('fs');const path = require('path');let contentSync = fs.r... ...
分类:
其他好文 时间:
2020-02-02 12:20:49
阅读次数:
98
1 引入命名空间 using system.IO 2写入文件文件 [1] 创建文件流 FileStream fs=new FileStream("G:\\myfile.txt",FileMode.Create); [2]创建写入器 StramWriter sw=new streamWriter(fs ...
分类:
其他好文 时间:
2020-02-01 13:00:41
阅读次数:
101
1、Http2优势 信道复用 分帧传输 Server Push 如下图: 上面是http1,下面是http2 2、搭建http2 1)配置前端 文件结构 server.js const http = require('http'); const fs = require('fs') http.cre ...
分类:
Web程序 时间:
2020-01-29 17:39:37
阅读次数:
96
node 的`fs`文档密密麻麻的 api 非常多,毕竟全面支持对文件系统的操作。文档组织的很好,操作基本分为文件操作、目录操作、文件信息、流这个大方面,编程方式也支持同步、异步和 Promise。
本文记录了几个文档中没详细描写的问题,可以更好地串联`fs`文档思路:
- 文件描述符
- ... ...
分类:
Web程序 时间:
2020-01-29 12:37:49
阅读次数:
91
一、回顾 1、lvm2 lvm:边界动态扩展或收缩;快照; pv --> vg --> lv PE: LE: 2、dd:复制 二、btrfs文件系统:(技术预览版) 1、Btrfs(B-tree,Butter FS,Better FS),GPL,Oracle从2007年左右开始研发,使用写时复制机制 ...
分类:
系统相关 时间:
2020-01-28 11:05:14
阅读次数:
122
解压缩zip文件 import zipfile import os.path import os class ZFile(object): """ 文件压缩 """ def zip_file(self, fs_name, fz_name): """ 从压缩文件 :param fs_name: 源文件 ...
分类:
编程语言 时间:
2020-01-22 18:36:43
阅读次数:
126
1、《巴菲特从100元到160亿》 下载链接:https://u12517748.ctfile.com/fs/12517748-227599453 2、《巴菲特致股东的信—股份公司教程》 下载链接:https://u12517748.ctfile.com/fs/12517748-227599461 ...
分类:
其他好文 时间:
2020-01-19 12:30:03
阅读次数:
73
1 #include<stdio.h> 2 int main() 3 { 4 int n,i,j,p; 5 scanf("%d",&n); 6 for(i=1;i<=n;i++){ 7 int sum=0,fs[i],N=0; 8 for(j=1;j<i;j++){ 9 if(i%j==0){ 10 ...
分类:
其他好文 时间:
2020-01-17 09:19:14
阅读次数:
50
1.基本语法 bin/hadoop fs 具体命令 OR bin/hdfs dfs 具体命令 dfs是fs的实现类。 2.命令大全 [root@hadoop002 hadoop-2.7.2]# hdfs dfs Usage: hadoop fs [generic options] [-appendT ...
分类:
系统相关 时间:
2020-01-16 01:06:44
阅读次数:
92