wzhe06/SparrowRecSys

ERR wrong number of arguments for 'hset' command

chenyf opened this issue · 1 comments

用 spark 跑那个 特征工程的时候,把结果往 redis 里面写的时候,报错了,错误信息如下:

ERR wrong number of arguments for 'hset' command

错误的代码是这行:
redisClient.hset(userKey, JavaConversions.mapAsJavaMap(valueMap))

改成 hmset 就可以了