上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 45 下一页
摘要: def nonNegativeMod(x: Int, mod: Int): Int = { val rawMod = x % mod rawMod + (if (rawMod 0 case _ => Utils.nonNegativeMod(key.hashCode, numPartitions) } 阅读全文
posted @ 2017-08-06 11:29 牵牛花 阅读(296) 评论(0) 推荐(0)
摘要: max 函数 在hive中max函数是一个聚合函数,所以,而且返回值是double ,而且后面必须跟group by ,这个和mysql差异很大 Built-in Aggregate Functions (UDAF) DOUBLEmax(col)Returns the maximum value o 阅读全文
posted @ 2017-08-05 20:43 牵牛花 阅读(328) 评论(0) 推荐(0)
摘要: 当前MySQL服务器的版本号 使用那个命令来参看MySQL的帮助信息 帮助主题供我们查看. 命令为: ? contents 例如查看max方法的使用方法则输入? max即可 这个在navcat中是不支持的 阅读全文
posted @ 2017-08-05 20:29 牵牛花 阅读(555) 评论(0) 推荐(0)
摘要: 如果小于Int.max时他不会报错 721011081081118251528962147483647 阅读全文
posted @ 2017-08-04 16:59 牵牛花 阅读(419) 评论(0) 推荐(0)
摘要: 核心代码 阅读全文
posted @ 2017-08-04 10:05 牵牛花 阅读(898) 评论(0) 推荐(0)
摘要: http://flume.apache.org/FlumeUserGuide.html#custom-channel-selector 官方文档上channel selectors 有两种类型: Replicating Channel Selector (default) Multiplexing 阅读全文
posted @ 2017-08-04 09:44 牵牛花 阅读(780) 评论(0) 推荐(0)
摘要: 这里演示在单机fulume环境下,kafka作为source ,chanel , sink时三种情况 下面的测试都是基于下面的基本的配置文件进行修改的 kafka作为source时的配置和produce程序 kafka作为channel时 ,topic必须是一个新的topic如果topic中存在数据 阅读全文
posted @ 2017-08-03 14:57 牵牛花 阅读(351) 评论(0) 推荐(0)
摘要: http://www.acmerblog.com/median-of-two-sorted-arrays-5967.html 阅读全文
posted @ 2017-08-03 12:36 牵牛花 阅读(143) 评论(0) 推荐(0)
摘要: 链接:https://pan.baidu.com/s/1i5KKewd 密码:gjaj 阅读全文
posted @ 2017-08-03 09:25 牵牛花 阅读(252) 评论(0) 推荐(0)
摘要: java 1.7 阅读全文
posted @ 2017-08-02 13:34 牵牛花 阅读(131) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 45 下一页