最近在做将kafka里面的业务日志写入到hbase 当中,然后要对hbase 里面的数据进行解析然后插入到数据库当中。 为了能节约磁盘空间想对hbase里面的数据进行删除,但是我们设置的rowkey是按照每小时 加日期 然后加hash码的方式组成的。例子如下: 这个地方我们没有办法通过框定一个时间范 ...
分类:
系统相关 时间:
2020-04-22 16:12:15
阅读次数:
337
Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl ...
分类:
其他好文 时间:
2020-04-21 22:26:53
阅读次数:
82
创建桶 上传文件 python上传实例代码 python创建桶的实例代码 python实例删除桶 获取cos上传临时凭证及删除 ...
分类:
编程语言 时间:
2020-04-21 13:09:51
阅读次数:
248
编译make MALLOC=libc安装到指定目录make install PREFIX=/opt/cluster/redis1 redis启动redis-server redis-confredis关闭redis-cli shutdown 配置域名映射199.232.28.133 raw.gith ...
分类:
其他好文 时间:
2020-04-19 23:42:01
阅读次数:
118
the 1 , data 2 , mining 3 , and 4 , web 2 , information 2 , system 1 , research 2 , group 1 , dmwis 1 , at 1 , college 1 , of 3 , computer 1 , science ...
分类:
其他好文 时间:
2020-04-19 14:28:53
阅读次数:
83
This is the hard version of the problem. The difference is the constraint on the sum of lengths of strings and the number of test cases. You can make ...
分类:
编程语言 时间:
2020-04-18 14:10:40
阅读次数:
87
trie 介绍算法思想 是一种字符串处理操作,是通过将重复的地方重合起来实现对内存的压缩 比如说 对于 进行合并 那么就是通过压位处理将公共部分 合并起来就行了 但是我们还是有不同的部分 那么在分开存储不同的部分就行了 想到了什么? 树!!! 没错 我们将字符串通过树的形式存储 比如说字符串 和`` ...
分类:
其他好文 时间:
2020-04-16 22:49:40
阅读次数:
159
1. String >Object // 待转化字符串 var str = '{"name":"lxh","add":"China"}'; // 字符串转化为Object var obj = eval('('+str+')'); // 判断obj类型 typeof(obj) // 获取转换后的对象 ...
分类:
Web程序 时间:
2020-04-16 22:44:29
阅读次数:
110
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adja ...
分类:
其他好文 时间:
2020-04-16 10:31:28
阅读次数:
82
好题 np. 对于20分 显然可以爆搜。 对于50分 可以发现每个字符串上的问号要么是0,要么是1.考虑枚举一个字符串当前是0还是1 这会和其他字符串产生矛盾。 所以容易 发现这是一个2 sat问题。 拆点 把任意两个产生矛盾的字符串进行连边。然后最后判矛盾即可。 n^2枚举 建图 判断矛盾时使用字 ...
分类:
其他好文 时间:
2020-04-15 18:38:31
阅读次数:
77