使用sparkStreaming与Kafka直连方式WordCount,使用redis存放中间结果
1、maven的pom.xml文件,添加jedis依赖redis.clientsjedis2.9.02、创建一个jedis连接池,条用getConnection方法,获取连接packageday01.jedised3importredis.clients.jedis.{Jedis,JedisPool,JedisPoolConfig}objectJedisConnectionPools{valcon