{"action":"created","issue":{"url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/18","repository_url":"https://api.github.com/repos/RedisLabs/spark-redis","labels_url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/18/comments","events_url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/18/events","html_url":"https://github.com/RedisLabs/spark-redis/issues/18","id":140011234,"number":18,"title":"Strange issue when trying to connect to RedisLabs managed cluster","user":{"login":"ScottWang","id":219479,"avatar_url":"https://avatars.githubusercontent.com/u/219479?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottWang","html_url":"https://github.com/ScottWang","followers_url":"https://api.github.com/users/ScottWang/followers","following_url":"https://api.github.com/users/ScottWang/following{/other_user}","gists_url":"https://api.github.com/users/ScottWang/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottWang/subscriptions","organizations_url":"https://api.github.com/users/ScottWang/orgs","repos_url":"https://api.github.com/users/ScottWang/repos","events_url":"https://api.github.com/users/ScottWang/events{/privacy}","received_events_url":"https://api.github.com/users/ScottWang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sunheehnus","id":2889804,"avatar_url":"https://avatars.githubusercontent.com/u/2889804?v=3","gravatar_id":"","url":"https://api.github.com/users/sunheehnus","html_url":"https://github.com/sunheehnus","followers_url":"https://api.github.com/users/sunheehnus/followers","following_url":"https://api.github.com/users/sunheehnus/following{/other_user}","gists_url":"https://api.github.com/users/sunheehnus/gists{/gist_id}","starred_url":"https://api.github.com/users/sunheehnus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunheehnus/subscriptions","organizations_url":"https://api.github.com/users/sunheehnus/orgs","repos_url":"https://api.github.com/users/sunheehnus/repos","events_url":"https://api.github.com/users/sunheehnus/events{/privacy}","received_events_url":"https://api.github.com/users/sunheehnus/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-03-10T21:15:46Z","updated_at":"2016-03-15T17:20:53Z","closed_at":null,"body":"I encountered a strange issue.  When I was developing/testing with local redis server everything worked, but when I tried to connect to a cluster that managed by RedisLabs.  \r\n\r\nCode Snippets:\r\nval sc = new SparkContext(new SparkConf()\r\n      .setMaster(\"local\")\r\n      .setAppName(\"PreProcess\")\r\n      .set(\"redis.host\", \"10.10.10.10\")\r\n      .set(\"redis.port\", \"12345\")\r\n      .set(\"redis.auth\", \"xxxxxxxx\"))\r\n\r\nvalueTuple.foreach(each => sc.toRedisHASH(sc.parallelize((each._2).toList), \"h_follow_\"+each._1))\r\n\r\nI encountered the following error:\r\n============================ error log ==============================\r\nException in thread \"main\" java.lang.NegativeArraySizeException\r\n\r\nat redis.clients.jedis.Protocol.processBulkReply(Protocol.java:159)\r\n\r\nat redis.clients.jedis.Protocol.process(Protocol.java:136)\r\n\r\nat redis.clients.jedis.Protocol.read(Protocol.java:196)\r\n\r\nat redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:288)\r\n\r\nat redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:207)\r\n\r\nat redis.clients.jedis.Connection.getBulkReply(Connection.java:196)\r\n\r\nat redis.clients.jedis.BinaryJedis.info(BinaryJedis.java:2671)\r\n\r\nat com.redislabs.provider.redis.RedisConfig.clusterEnabled(RedisConfig.scala:146)\r\n\r\nat com.redislabs.provider.redis.RedisConfig.getNodes(RedisConfig.scala:252)\r\n\r\nat com.redislabs.provider.redis.RedisConfig.getHosts(RedisConfig.scala:168)\r\n\r\nat com.redislabs.provider.redis.RedisConfig.<init>(RedisConfig.scala:96)\r\n\r\nat com.redislabs.provider.redis.RedisContext.toRedisHASH$default$4(redisFunctions.scala:58)\r\n\r\nat PreProcess$$anonfun$main$6.apply(preprocess.scala:115)\r\n\r\nat PreProcess$$anonfun$main$6.apply(preprocess.scala:115)\r\n\r\nat scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)\r\n\r\nat scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)\r\n\r\nat PreProcess$.main(preprocess.scala:115)\r\n\r\nat PreProcess.main(preprocess.scala)\r\n\r\nat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\r\nat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\r\nat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\r\nat java.lang.reflect.Method.invoke(Method.java:497)\r\n\r\nat org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)\r\n\r\nat org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)\r\n\r\nat org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)\r\n\r\nat org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)\r\n\r\nat org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)"},"comment":{"url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/comments/196932877","html_url":"https://github.com/RedisLabs/spark-redis/issues/18#issuecomment-196932877","issue_url":"https://api.github.com/repos/RedisLabs/spark-redis/issues/18","id":196932877,"user":{"login":"ScottWang","id":219479,"avatar_url":"https://avatars.githubusercontent.com/u/219479?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottWang","html_url":"https://github.com/ScottWang","followers_url":"https://api.github.com/users/ScottWang/followers","following_url":"https://api.github.com/users/ScottWang/following{/other_user}","gists_url":"https://api.github.com/users/ScottWang/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottWang/subscriptions","organizations_url":"https://api.github.com/users/ScottWang/orgs","repos_url":"https://api.github.com/users/ScottWang/repos","events_url":"https://api.github.com/users/ScottWang/events{/privacy}","received_events_url":"https://api.github.com/users/ScottWang/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T17:20:53Z","updated_at":"2016-03-15T17:20:53Z","body":"I used redis-cli to access the server via:\r\n**redis-cli -h xxxxxxx.xxxx.xx -p 19066 -a xxxxxx**\r\nand was able to get to the server.\r\n\r\nAfter that I went back to the server configuration and reset the password and now everything is working, really not sure what happened.  \r\n\r\nRegardless, thank you guys for the new build and everything is working now, on with the load testing next."}}