spark job serverでjson形式の入力でsparkジョブを送信しようとしています。しかし、私の場合、値の1つに '!'私はそれを解析することを許可していません。これは私の入力と応答です。文字を解析できません!パラメータspark job server
入力
curl -d "{"test.input1"="abc", "test.input2"="def!"}" 'http://localhost:8090/jobs?appName=my_spark_job&classPath=com.example.spark.job.MySparkJob'
応答
"result": "Cannot parse config: String: 1: Reserved character '!' is not allowed outside quotes (if you intended '!' (Reserved character '!' is not allowed outside quotes) to be part of the value for 'test.input2', try enclosing the value in double quotes, or you may be able to rename the file .properties rather than .conf)"
"test.input2" の値は、二重引用符ですでにあります。私はシングル/二重引用符を追加しようとしましたが、依然として仕事はありませんでした。どのように私はそれを解析することができますどのような考え。
おかげ
を行う任意のエスケープ文字はありませんか?といった \?多分試してみてください!パスワードのために。その予約されたキャラクターが逃げ切っているに違いないのでここから推測してください –