编辑
2020-02-26
编程
00

netty-概述

1.总体概述

1.1 描述

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.

  • asynchronous 异步的
  • event-driven 事件驱动
  • network application framework 网络应用框架
  • high performance 高性能的

1.2 架构

1-components.png

编辑
2020-02-01
读书笔记
00

0. 引言

0.1 读书无用论与学习能力

  • 读书无用论的本质是,学习者不具备使学习有用的能力
  • 有些书读来是为了解决问题或者提升能力,我们称之为“致用类阅读
  • 读书需要先确定自己的目的:(从全科到分科,从笼而统之到分门别类,这是一门学问进化的必然
    • 致用类图书不用在乎是否读完,作者逻辑等,而应拆为己用,联系个人经验加以运用
    • 小说或诗集,正读或跳读都无所谓,懂或不懂也无影响,沉浸其中,物我两忘
编辑
2019-12-24
编程
00

awk

1. 语法构造

BEGIN {awk-commands} {awk-commands} END {awk-commands}

  • BDGIN 语句块: BEGIN {awk-commands}
    • 初始化变量,只执行一次
    • BEGIN 关键字,必须大写
    • 可选的(非必须的)
  • BODY语句块: {awk-commands}
    • 每一行输入执行一次
    • 没有关键字
    • 通过模式来控制
  • END语句块: END {awk-commands}
    • 程序最后执行
    • END 关键字,必须为大写
    • 可选的
编辑
2019-12-19
编程
00

arthas 快速入门

1.启动

  • java -jar arthas-boot.jar
bat
D:\software\arthas-packaging-3.1.0-bin>java -jar arthas-boot.jar [INFO] arthas-boot version: 3.1.0 [INFO] Found existing java process, please choose one and hit RETURN. * [1]: 5924 [2]: 11560 org.jetbrains.idea.maven.server.RemoteMavenServer [3]: 1580 com.yui.demo.arthas.ArthasApplication

选择一个进程启动 arthas

编辑
2019-07-12
编程
00

HDFS Shell操作

文件操作

1.查看帮助文档 -help

[root@server01 /]# hdfs dfs -help ls

-ls [-C] [-d] [-h] [-q] [-R] [-t] [-S] [-r] [-u] [<path> ...] : List the contents that match the specified file pattern. If path is not specified, the contents of /user/<currentUser> will be listed. For a directory a list of its direct children is returned (unless -d option is specified). Directory entries are of the form: permissions - userId groupId sizeOfDirectory(in bytes) modificationDate(yyyy-MM-dd HH:mm) directoryName and file entries are of the form: permissions numberOfReplicas userId groupId sizeOfFile(in bytes) modificationDate(yyyy-MM-dd HH:mm) fileName -C Display the paths of files and directories only. -d Directories are listed as plain files. -h Formats the sizes of files in a human-readable fashion rather than a number of bytes. -q Print ? instead of non-printable characters. -R Recursively list the contents of directories. -t Sort files by modification time (most recent first). -S Sort files by size. -r Reverse the order of the sort. -u Use time of last access instead of modification for display and sorting.