RedisLabs / spark-redis

A connector for Spark that allows reading and writing to/from Redis cluster
BSD 3-Clause "New" or "Revised" License
936 stars 367 forks source link

mvn clean package -DskipTests ERROR #377

Open Anonymous-cxb opened 11 months ago

Anonymous-cxb commented 11 months ago

In mvn clean package-DskipTests, I encountered an error that said:

[ERROR] D:\code\spark-redis-master\spark-redis-master\src\main\scala\com\redislabs\provider\redis\ConnectionPool.scala:28: error: overloaded method constructor JedisPool with alternatives:
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: java.net.URI,x$3: Int,x$4: Int,x$5: Int,x$6: javax.net.ssl.SSLSocketFactory,x$7: javax.net.ssl.SSLParameters,x$8: javax.net.ssl.HostnameVerifier)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: Int,x$6: String,x$7: Int,x$8: String)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: Int,x$7: String,x$8: Boolean)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: String,x$7: Int,x$8: String)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: String,x$6: String,x$7: Int,x$8: Boolean)redis.clients.jedis.JedisPool <and>
[ERROR]   (x$1: org.apache.commons.pool2.impl.GenericObjectPoolConfig[redis.clients.jedis.Jedis],x$2: String,x$3: Int,x$4: Int,x$5: Boolean,x$6: javax.net.ssl.SSLSocketFactory,x$7: javax.net.ssl.SSLParameters,x$8: javax.net.ssl.HostnameVerifier)redis.clients.jedis.JedisPool
[ERROR]  cannot be applied to (redis.clients.jedis.JedisPoolConfig, String, Int, Int, String, String, Int, Boolean)
[ERROR]         new JedisPool(poolConfig, re.host, re.port, re.timeout, re.user, re.auth, re.dbNum, re.ssl)
[ERROR]         ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

I find this very strange, in the source code new JedisPool(poolConfig, re.host, re.port, re.timeout, re.user, re.auth, re.dbNum, re.ssl) the construct fuction is:

    public JedisPool(GenericObjectPoolConfig<Jedis> poolConfig, String host, int port, int timeout, String user, String password, int database, boolean ssl) {
        this(poolConfig, host, port, timeout, user, password, database, (String)null, ssl);
    }

anything to help?thanks!!!