{"action":"created","issue":{"url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/147","repository_url":"https://api.github.com/repos/Stratio/Spark-MongoDB","labels_url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/147/comments","events_url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/147/events","html_url":"https://github.com/Stratio/Spark-MongoDB/issues/147","id":163081750,"number":147,"title":"Caused by: java.lang.IllegalArgumentException: state should be: w >= 0","user":{"login":"a4712020502","id":8382257,"avatar_url":"https://avatars.githubusercontent.com/u/8382257?v=3","gravatar_id":"","url":"https://api.github.com/users/a4712020502","html_url":"https://github.com/a4712020502","followers_url":"https://api.github.com/users/a4712020502/followers","following_url":"https://api.github.com/users/a4712020502/following{/other_user}","gists_url":"https://api.github.com/users/a4712020502/gists{/gist_id}","starred_url":"https://api.github.com/users/a4712020502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a4712020502/subscriptions","organizations_url":"https://api.github.com/users/a4712020502/orgs","repos_url":"https://api.github.com/users/a4712020502/repos","events_url":"https://api.github.com/users/a4712020502/events{/privacy}","received_events_url":"https://api.github.com/users/a4712020502/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-30T05:07:07Z","updated_at":"2016-07-12T11:00:34Z","closed_at":null,"body":"2016-06-30 13:04:56 WARN  NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable\r\nException in thread \"main\" java.lang.ExceptionInInitializerError\r\n\tat com.mongodb.casbah.BaseImports$class.$init$(Implicits.scala:162)\r\n\tat com.mongodb.casbah.Imports$.<init>(Implicits.scala:142)\r\n\tat com.mongodb.casbah.Imports$.<clinit>(Implicits.scala)\r\n\tat com.mongodb.casbah.MongoClient.apply(MongoClient.scala:219)\r\n\tat com.stratio.datasource.mongodb.partitioner.MongodbPartitioner.isShardedCollection(MongodbPartitioner.scala:78)\r\n\tat com.stratio.datasource.mongodb.partitioner.MongodbPartitioner$$anonfun$computePartitions$1.apply(MongodbPartitioner.scala:67)\r\n\tat com.stratio.datasource.mongodb.partitioner.MongodbPartitioner$$anonfun$computePartitions$1.apply(MongodbPartitioner.scala:66)\r\n\tat com.stratio.datasource.util.using$.apply(using.scala:38)\r\n\tat com.stratio.datasource.mongodb.partitioner.MongodbPartitioner.computePartitions(MongodbPartitioner.scala:66)\r\n\tat com.stratio.datasource.mongodb.rdd.MongodbRDD.getPartitions(MongodbRDD.scala:42)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)\r\n\tat scala.Option.getOrElse(Option.scala:120)\r\n\tat org.apache.spark.rdd.RDD.partitions(RDD.scala:237)\r\n\tat org.apache.spark.rdd.MapPartitionsRDD.getPartitions(MapPartitionsRDD.scala:35)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:239)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$partitions$2.apply(RDD.scala:237)\r\n\tat scala.Option.getOrElse(Option.scala:120)\r\n\tat org.apache.spark.rdd.RDD.partitions(RDD.scala:237)\r\n\tat org.apache.spark.Partitioner$.defaultPartitioner(Partitioner.scala:65)\r\n\tat org.apache.spark.rdd.PairRDDFunctions$$anonfun$reduceByKey$3.apply(PairRDDFunctions.scala:331)\r\n\tat org.apache.spark.rdd.PairRDDFunctions$$anonfun$reduceByKey$3.apply(PairRDDFunctions.scala:331)\r\n\tat org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)\r\n\tat org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)\r\n\tat org.apache.spark.rdd.RDD.withScope(RDD.scala:316)\r\n\tat org.apache.spark.rdd.PairRDDFunctions.reduceByKey(PairRDDFunctions.scala:330)\r\n\tat com.stratio.datasource.mongodb.schema.MongodbSchema.schema(MongodbSchema.scala:47)\r\n\tat com.stratio.datasource.mongodb.MongodbRelation.com$stratio$datasource$mongodb$MongodbRelation$$lazySchema$lzycompute(MongodbRelation.scala:63)\r\n\tat com.stratio.datasource.mongodb.MongodbRelation.com$stratio$datasource$mongodb$MongodbRelation$$lazySchema(MongodbRelation.scala:60)\r\n\tat com.stratio.datasource.mongodb.MongodbRelation$$anonfun$1.apply(MongodbRelation.scala:65)\r\n\tat com.stratio.datasource.mongodb.MongodbRelation$$anonfun$1.apply(MongodbRelation.scala:65)\r\n\tat scala.Option.getOrElse(Option.scala:120)\r\n\tat com.stratio.datasource.mongodb.MongodbRelation.<init>(MongodbRelation.scala:65)\r\n\tat com.stratio.datasource.mongodb.DefaultSource.createRelation(DefaultSource.scala:36)\r\n\tat org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158)\r\n\tat org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)\r\n\tat com.askingdata.test.TestSpark.main(TestSpark.java:23)\r\nCaused by: java.lang.IllegalArgumentException: state should be: w >= 0\r\n\tat com.mongodb.assertions.Assertions.isTrueArgument(Assertions.java:99)\r\n\tat com.mongodb.WriteConcern.<init>(WriteConcern.java:316)\r\n\tat com.mongodb.WriteConcern.<init>(WriteConcern.java:227)\r\n\tat com.mongodb.casbah.WriteConcern$.<init>(WriteConcern.scala:41)\r\n\tat com.mongodb.casbah.WriteConcern$.<clinit>(WriteConcern.scala)\r\n\t... 37 more"},"comment":{"url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/comments/232007394","html_url":"https://github.com/Stratio/Spark-MongoDB/issues/147#issuecomment-232007394","issue_url":"https://api.github.com/repos/Stratio/Spark-MongoDB/issues/147","id":232007394,"user":{"login":"ishare","id":1309607,"avatar_url":"https://avatars.githubusercontent.com/u/1309607?v=3","gravatar_id":"","url":"https://api.github.com/users/ishare","html_url":"https://github.com/ishare","followers_url":"https://api.github.com/users/ishare/followers","following_url":"https://api.github.com/users/ishare/following{/other_user}","gists_url":"https://api.github.com/users/ishare/gists{/gist_id}","starred_url":"https://api.github.com/users/ishare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishare/subscriptions","organizations_url":"https://api.github.com/users/ishare/orgs","repos_url":"https://api.github.com/users/ishare/repos","events_url":"https://api.github.com/users/ishare/events{/privacy}","received_events_url":"https://api.github.com/users/ishare/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T11:00:34Z","updated_at":"2016-07-12T11:00:34Z","body":"It seems stratio mgo is not compatible with the new official mgo driver. \r\nI try to remove the offical driver dependency, then it works. I wanna is there any other way to make both available?"}}
{"actor":{"display_login":"ishare"}}