Adding support for basic authentication credentials Something like val solrRDD = new SolrRDD("localhost:2181/solr","collection",username,password,sc,query,rows) Thanks