{"action":"opened","issue":{"url":"https://api.github.com/repos/lucidworks/spark-solr/issues/99","repository_url":"https://api.github.com/repos/lucidworks/spark-solr","labels_url":"https://api.github.com/repos/lucidworks/spark-solr/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/lucidworks/spark-solr/issues/99/comments","events_url":"https://api.github.com/repos/lucidworks/spark-solr/issues/99/events","html_url":"https://github.com/lucidworks/spark-solr/issues/99","id":191796299,"number":99,"title":"2016-11-26 14:20:16,050 [main] WARN  SolrQuerySupport  - Can't get uniqueKey for collection1 due to: java.net.ConnectException: Connection refused: connect","user":{"login":"hafizmujadid","id":4970277,"avatar_url":"https://avatars.githubusercontent.com/u/4970277?v=3","gravatar_id":"","url":"https://api.github.com/users/hafizmujadid","html_url":"https://github.com/hafizmujadid","followers_url":"https://api.github.com/users/hafizmujadid/followers","following_url":"https://api.github.com/users/hafizmujadid/following{/other_user}","gists_url":"https://api.github.com/users/hafizmujadid/gists{/gist_id}","starred_url":"https://api.github.com/users/hafizmujadid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hafizmujadid/subscriptions","organizations_url":"https://api.github.com/users/hafizmujadid/orgs","repos_url":"https://api.github.com/users/hafizmujadid/repos","events_url":"https://api.github.com/users/hafizmujadid/events{/privacy}","received_events_url":"https://api.github.com/users/hafizmujadid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-26T09:23:27Z","updated_at":"2016-11-26T09:23:27Z","closed_at":null,"body":"Hi, I am using following piece of code to write to solr using dataframe api as follow.\r\n\r\n`val writeoptions = scala.collection.immutable.HashMap(\r\n\t\t\t\"zkhost\" -> \"192.168.23.109:2181\",\r\n\t\t\t\"collection\" -> \"collection1\",\r\n\t\t\t\"soft_commit_secs\" -> \"10\")\r\n\t\tdf.write.format(\"solr\").options(writeoptions).mode(SaveMode.Overwrite).save`\r\nBut it returns following error.\r\n\r\n`2016-11-26 14:20:16,050 [main] WARN  SolrQuerySupport  - Can't get uniqueKey for collection1 due to: java.net.ConnectException: Connection refused: connect\r\n2016-11-26 14:20:20,108 [main] ERROR SolrQuerySupport  - Can't get field type metadata from Solr url http://127.0.1.1:8983/solr/collection1/schema/fieldtypes\r\nException in thread \"main\" java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect\r\n\tat com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypeToClassMap(SolrQuerySupport.scala:506)\r\n\tat com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypes(SolrQuerySupport.scala:258)\r\n\tat com.lucidworks.spark.util.SolrQuerySupport$.getFieldTypes(SolrQuerySupport.scala:254)\r\n\tat com.lucidworks.spark.util.SolrRelationUtil$.getBaseSchema(SolrRelationUtil.scala:35)\r\n\tat com.lucidworks.spark.SolrRelation.<init>(SolrRelation.scala:83)\r\n\tat solr.DefaultSource.createRelation(DefaultSource.scala:26)`\r\nWhy it is connecting to 127.0.0.1?  Do I need to create collection before writing data into it? "}}
{"actor":{"display_login":"hafizmujadid"}}