¿Cómo enviar un trabajo a través de la API REST?

Estoy usando Datastax Enterprise 4.8.3. Estoy tratando de implementar una aplicación basada en Quartz para enviar trabajos de Spark de forma remota. Durante mi investigación me topé con los siguientes enlaces:

API REST oculta de Apache SparkFunción Spark: proporciona una puerta de enlace de envío de aplicaciones estable en modo de clúster independiente

Para probar la teoría, intenté ejecutar el fragmento de código siguiente en el nodo maestro (IP: "spark-master-ip"; directamente en el shell) de mi clúster de 2 nodos (como se proporciona en el enlace n. ° 1 anterior):

curl -X POST http://spark-master-ip:6066/v1/submissions/create --header "Content-Type:application/json;charset=UTF-8" --data '{
    "action" : "CreateSubmissionRequest",
    "appArgs" : [ "myAppArgument1" ],
    "appResource" : "file:/home/local/sparkjob.jar",
    "clientSparkVersion" : "1.4.2",
    "environmentVariables" : {
    "SPARK_ENV_LOADED" : "1"
  },
  "mainClass" : "com.spark.job.Launcher",
  "sparkProperties" : {
      "spark.jars" : "file:/home/local/sparkjob.jar",
      "spark.driver.supervise" : "false",
      "spark.app.name" : "MyJob",
      "spark.eventLog.enabled": "true",
      "spark.submit.deployMode" : "cluster",
      "spark.master" : "spark://spark-master-ip:6066"
  }
}'

Pero al ejecutar el código obtengo una respuesta html con el siguiente texto:

This Page Cannot Be Displayed
The system cannot communicate with the external server (spark-master-ip).
The Internet server may be busy, may be permanently down, or may be unreachable because of network problems.
Please check the spelling of the Internet address entered.
If it is correct, try this request later.

If you have questions, please contact your organization's network administrator and provide the codes shown below.

Date: Fri, 11 Dec 2015 13:19:15 GMT
Username: 
Source IP: spark-master-ip
URL: POST http://spark-master-ip/v1/submissions/create
Category: Uncategorized URLs
Reason: UNKNOWN
Notification: GATEWAY_TIMEOUT

Respuestas a la pregunta(1)

Su respuesta a la pregunta