Thank you. That works!

2013/3/8 Parrot Silk <[email protected]>

> Hi,
>
>    I tried to send job submission request via curl. However, whatever I
> did, I just get "The request sent by the client was syntactically
> incorrect". Can someone give an example?
>
> What I have done is:
>
> 1. I create a file called "oozie_wf_sample.xml". It contains the following
> text:
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <property>
> <name>user.name</name>
>  <value>foo</value>
> </property>
> <property>
>  <name>oozie.wf.application.path</name>
> <value>hdfs://localhost:8020/user/foo/examples/apps/map-reduce/</value>
>  </property>
> </configuration>
>
> 2. I tried the following curl commands:
> curl -X POST -H 'Content-type/xml' -d @oozie_wf_sample.xml
> http://192.168.220.129:11000/oozie/v1/jobs
>
> curl -X POST -d @oozie_wf_sample.xml
> http://192.168.220.129:11000/oozie/v1/jobs
>
> curl -u foo:bar -X POST -d @oozie_wf_sample.xml
> http://192.168.220.129:11000/oozie/v1/jobs
>
> Thanks
> Ryan
>

Reply via email to