HDInsight Spark <-> CosmosDB This repo contains step by step guide showcasing how to connect Spark to COSMOSDB. Please refer SPARK TO COSMOSDB.pdf Supporting jars are uploaded to JARFILES.zip Make sure of refering correct jar files while initiating a spark context.