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

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

angular - Angular2 Router: Cannot find primary outlet to load 'HomeComponent' -