摘要:
今天用scala开发Flink的job,测试出现下边的错误 GenericType) cannot be used as key. 例子是跟着官方SocketWindowWordCount的example的结构写的,example用了WordWithCount这样一个class,我也定义了一个类似的 阅读全文
摘要:
问题描述如下:Find the first non repetitive character in a string?也就是找出字符串中第一个不重复的字符比如,字符串"asabc"中,第一个不重复的字符就是s有以下两种方法方法一:利用一个字典和一个列表解决,字典记录每个字符出现的次数,列表记录出现过... 阅读全文
摘要:
今天用sbin/start-yarn.sh启动yarn的时候,遇到下面的错误java.lang.IllegalArgumentException: Does not contain a valid host:port authority: master at org.apache.hadoop.ne... 阅读全文