工作原因要用到flume来采集日志,简单接触后写下来一些,随更。详细请看官网http://flume.apache.org/releases/content/1.7.0/FlumeUserGuide.html#a-simple-example flume依赖Java环境,此版本至少要1.7以上的ja ...
分类:
Web程序 时间:
2020-03-24 16:06:45
阅读次数:
115
AntPathMatcher通配符规则 官方文档:https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/util/AntPathMatcher.html 官方示例: The mappi ...
分类:
其他好文 时间:
2020-03-24 15:49:44
阅读次数:
474
1 环境准备 1.1 修改IP 1.2 修改主机名及主机名和IP地址的映射 1.3 关闭防火墙 1.4 ssh免密登录 1.5 安装JDK,配置环境变量 2 集群规划 节点名称 NN JJN DN ZKFC ZK RM NM linux1 NameNode JournalNode DataNode ...
分类:
其他好文 时间:
2020-03-24 15:39:44
阅读次数:
82
Write a function to generate the generalized abbreviations of a word. Example: Given word = “word”, return the following list (order does not matter): ...
分类:
编程语言 时间:
2020-03-24 10:52:44
阅读次数:
91
最大数。题意是给一个整数数组,请将他们拼接成字符串,返回数字最大的字符串。例子, Example 1: Input: [10,2] Output: "210" Example 2: Input: [3,30,34,5,9] Output: "9534330" 思路是需要自己写一个comparator ...
分类:
其他好文 时间:
2020-03-24 09:19:56
阅读次数:
72
题目描述 The cows are being invaded! Their republic comprises N (1 <= N <= 50,000) towns that are connected by M (1 <= M <= 100,000) undirected paths betw ...
分类:
其他好文 时间:
2020-03-24 09:16:45
阅读次数:
78
不同路径II。题意跟版本一一样,唯一的不同点在于路径上会有障碍物。依然是返回到底有多少不同的路径能从左上角走到右下角。例子, Example 1: Input: [ [0,0,0], [0,1,0], [0,0,0] ] Output: 2 Explanation: There is one obs ...
分类:
其他好文 时间:
2020-03-23 12:40:29
阅读次数:
85
3 Longest Substring Without Repeating Characters 问题描述 Given a string, find the length of the longest substring without repeating characters. Example 1 ...
分类:
其他好文 时间:
2020-03-22 19:48:22
阅读次数:
54
最小路径和。题意是给一个二维矩阵,每个格子上都有一个非负整数。请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。例子, Example: Input: [ [1,3,1], [1,5,1], [4,2,1] ] Output: 7 Explanation: Because the pat ...
分类:
其他好文 时间:
2020-03-22 12:25:55
阅读次数:
67