[
https://issues.apache.org/jira/browse/OOZIE-942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430706#comment-13430706
]
Robert Kanter commented on OOZIE-942:
-------------------------------------
The reason its doing that is that the xml (the str variable) says that you need
to have a parameter named "" (empty string), but the conf only has a property
named "hello". I tried doing what you did but changing the previous line to be
conf.set("", "planet") instead of conf.set("hello", "planet") and it doesn't
throw E0738. However, afterwards conf.size() returns 2 instead of 1; which is
really weird because I printed out the conf (conf.writeXml(System.out)) and it
only seems to have one property in there:
{code}
<?xml version="1.0" encoding="UTF-8" standalone="no"?><configuration>
<property><name/><value>planet</value></property>
</configuration>
{code}
Do you have any ideas why its being weird? (unless I simply missed something)
I guess we should not allow empty names then. I could just make a new error
for that?
> Add formal Parameters to bundle XML
> -----------------------------------
>
> Key: OOZIE-942
> URL: https://issues.apache.org/jira/browse/OOZIE-942
> Project: Oozie
> Issue Type: Improvement
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Attachments: OOZIE-942.patch
>
>
> Just like OOZIE-239 but add formal parameters to Bundle jobs too.
> There's also a minor bug in OOZIE-239 that will prevent Oozie from printing a
> warning when a user submits a coordinator job using schema >= 0.4 without a
> <parameters> section.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira