That worked for the oozie.wf.application.path.

However, for oozie.coord.application.path, i'm facing the same issue

The following configuration

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.coord.application.path</name>
<value>hdfs://localhost:8020/user/foo/examples/apps/map-reduce/</value>
</property>
</configuration>

does not work, for

curl -X POST -H 'Content-type:application/xml' -d @test.xml
http://localhost:11000/oozie/v1/jobs

>From the doc, oozie.coord.application.path : path to a coordinator
application file, creates a coordinator job, so i also tried, the complete
path to the application file too.
<name>oozie.coord.application.path</name>
<value>hdfs://localhost:8020/user/foo/examples/apps/map-
reduce/coordinator.xml</value>
</property>

It doesn't work either :(

Any help would be appreciated.

Thank you,
Praveen



On Mon, Mar 11, 2013 at 4:00 PM, Parrot Silk <[email protected]> wrote:

> 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
> >
>



-- 
-Praveen

Reply via email to