The header should be -H 'Content-type: application/xml'

Thx


On Mon, Mar 11, 2013 at 3:06 PM, Praveen M <lefthandma...@gmail.com> wrote:

> I'm running into the exact same issue.  Can someone please provide some
> insight in this?
>
> Thanks,
> Praveen
>
>
> On Fri, Mar 8, 2013 at 11:17 AM, Parrot Silk <silkpar...@gmail.com> wrote:
>
> > 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
> >
>
>
>
> --
> -Praveen
>



-- 
Alejandro

Reply via email to