powershell - Not able to use curl on HDInsight cluster -
i'm attempting run spark job on hdinsight cluster curl.
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.driver" }' "https://cluster-spark.azurehdinsight.net/livy/batches"
error: cannot bind parameter 'headers'. cannot convert "content-type: application/json" value of type "system.string" type "system.collections.idictionary".
Comments
Post a Comment