我尝试使用curl在HDInsight群集上运行spark作业。
curl -k --user" admin:password" -v -H' Content-Type:application / json' -X POST -d' {" file":" https://storage.blob.core.windows.net/spark-container/sparkjob-jar-with-dependencies.jar"," className":" io.spark。驱动器" }' " https://cluster-spark.azurehdinsight.net/livy/batches"
错误: 无法绑定参数'标题'。无法转换"内容类型:application / json"类型的价值 " System.String"输入" System.Collections.IDictionary"。