Repository: incubator-falcon Updated Branches: refs/heads/master 9445d4733 -> abf17649e
FALCON-923 Remove unused xsd's. Contributed by Paul Isaychuk Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/abf17649 Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/abf17649 Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/abf17649 Branch: refs/heads/master Commit: abf17649e70e64da86449995d18cf90ceb30d3db Parents: 9445d47 Author: Ruslan Ostafiychuk <rostafiyc...@apache.org> Authored: Thu Nov 27 15:03:53 2014 +0200 Committer: Ruslan Ostafiychuk <rostafiyc...@apache.org> Committed: Thu Nov 27 15:03:53 2014 +0200 ---------------------------------------------------------------------- falcon-regression/CHANGES.txt | 4 +- .../merlin/src/test/resources/cluster-0.1.xsd | 189 ---------- .../merlin/src/test/resources/feed-0.1.xsd | 375 ------------------- .../merlin/src/test/resources/process-0.1.xsd | 355 ------------------ .../merlin/src/test/resources/xsd/bundle.xsd | 62 --- .../src/test/resources/xsd/cluster-0.1.xsd | 123 ------ .../src/test/resources/xsd/coordinator.xsd | 134 ------- .../src/test/resources/xsd/dataset-0.1.xsd | 320 ---------------- .../src/test/resources/xsd/datastore-0.1.xsd | 127 ------- .../merlin/src/test/resources/xsd/process.xsd | 185 --------- 10 files changed, 3 insertions(+), 1871 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/CHANGES.txt ---------------------------------------------------------------------- diff --git a/falcon-regression/CHANGES.txt b/falcon-regression/CHANGES.txt index 208b459..1038fa0 100644 --- a/falcon-regression/CHANGES.txt +++ b/falcon-regression/CHANGES.txt @@ -33,8 +33,10 @@ Trunk (Unreleased) via Samarth Gupta) IMPROVEMENTS + FALCON-923 Remove unused xsd's (Paul Isaychuk via Ruslan Ostafiychuk) + FALCON-699 Use APIResult and other support classes from falcon-client in falcon-regression - (Ruslan Ostafiychuk + (Ruslan Ostafiychuk) FALCON-906: Add license header where it is needed, remove deprecated inmobi references (Paul Isaychuk via Raghav Kumar Gautam) http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/cluster-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/cluster-0.1.xsd b/falcon-regression/merlin/src/test/resources/cluster-0.1.xsd deleted file mode 100644 index 9da349a..0000000 --- a/falcon-regression/merlin/src/test/resources/cluster-0.1.xsd +++ /dev/null @@ -1,189 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" - targetNamespace="uri:falcon:cluster:0.1" xmlns="uri:falcon:cluster:0.1" - xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"> - <xs:annotation> - <xs:documentation> - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version - 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied. - See the License for the specific language governing permissions and - limitations under the License. - </xs:documentation> - <xs:appinfo> - <jaxb:schemaBindings> - <jaxb:package name="org.apache.falcon.entity.v0.cluster"/> - </jaxb:schemaBindings> - </xs:appinfo> - </xs:annotation> - <xs:element name="cluster" type="cluster"> - </xs:element> - <xs:complexType name="cluster"> - <xs:annotation> - <xs:documentation>The cluster contains the definition of different - interfaces which are used by Falcon like readonly, write, workflow and messaging. - A cluster is referenced by feeds and processes which are on-boarded - to Falcon by its name. - name: the name of cluster, which must be unique. - colo: the name of the colo to which this cluster belongs to. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="KEY_VALUE_PAIR" name="tags" minOccurs="0"> - <xs:annotation> - <xs:documentation> - tags: a process specifies an optional list of comma separated tags, - Key Value Pairs, separated by comma, - which is used for classification of processes. - Example: consumer=consu...@xyz.com, owner=produ...@xyz.com, department=forecasting - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="interfaces" name="interfaces"/> - <xs:element type="locations" name="locations"/> - <xs:element type="properties" name="properties" minOccurs="0"/> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="xs:string" name="description"/> - <xs:attribute type="xs:string" name="colo" use="required"/> - </xs:complexType> - <xs:complexType name="locations"> - <xs:annotation> - <xs:documentation>A list of locations on cluster. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="location" name="location" maxOccurs="unbounded" minOccurs="1"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="property"> - <xs:annotation> - <xs:documentation> - A key-value pair, which are propagated to the - workflow engine. - Ideally the Mapred's job queue name (queueName) and - JMS impl class nameof messaging engine (brokerImplClass) - should be defined here. - </xs:documentation> - </xs:annotation> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="value" use="required"/> - </xs:complexType> - <xs:complexType name="interface"> - <xs:annotation> - <xs:documentation> - An interface specifies the interface type, Falcon uses it to schedule - entities in workflow engine, to save and read data from hadoop and to - publish messages to messaging engine. - endpoint: is the url for each interface; examples: for write it is the - url of hdfs (fs.default.name) and - for workflow it is url of workflow engine like oozie. - version: The current runtime version of each interface. - </xs:documentation> - </xs:annotation> - <xs:attribute type="interfacetype" name="type" use="required"/> - <xs:attribute type="xs:string" name="endpoint" use="required"/> - <xs:attribute type="xs:string" name="version" use="required"/> - </xs:complexType> - <xs:complexType name="properties"> - <xs:annotation> - <xs:documentation> - A list of property elements. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="property" name="property" maxOccurs="unbounded" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="location"> - <xs:annotation> - <xs:documentation> - Location has the name and the path. - name: is the type of locations like - staging, temp and working. - path: the hdfs path for each location. - Falcon would use the location to do intermediate - processing of entities in hdfs and hence Falcon - should have read/write/execute permission on these - locations. - </xs:documentation> - </xs:annotation> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="xs:string" name="path" use="required"/> - </xs:complexType> - <xs:complexType name="interfaces"> - <xs:annotation> - <xs:documentation> - A list of interfaces. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="interface" name="interface" maxOccurs="unbounded" minOccurs="3"/> - </xs:sequence> - </xs:complexType> - <xs:simpleType name="interfacetype"> - <xs:annotation> - <xs:documentation> - An interface has 6 different interface types: readonly, write, - execute, workflow, messaging, registry. - readonly specifies the hadoop's hftp address, it's endpoint is the value of - dfs.http.address.ex: hftp://corp.namenode:50070/ - write specifies the interface to write to hdfs, it's endpoint is the value - of fs.default.name.ex: hdfs://corp.namenode:8020 - execute specifies the interface for job tracker, it's endpoint is the value - of mapreduce.jobtracker.address. ex:corp.jt:8021 - workflow specifies the interface for workflow engine, example of it's - endpoint is value for OOZIE_URL.ex: http://corp.oozie:11000/oozie - messaging specifies the interface for sending feed availability messages, it's - endpoint is broker url with tcp address.ex: tcp://corp.messaging:61616?daemon=true - registry specifies the interface for Hcatalog. - </xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:enumeration value="readonly"/> - <xs:enumeration value="write"/> - <xs:enumeration value="execute"/> - <xs:enumeration value="workflow"/> - <xs:enumeration value="messaging"/> - <xs:enumeration value="registry"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="(([a-zA-Z]([\-a-zA-Z0-9])*){1,39})"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="KEY_VALUE_PAIR"> - <xs:restriction base="xs:string"> - <xs:pattern value="(\w+=[^,]+)?([,]?[ ]*[\w]+=[^,]+)*"/> - </xs:restriction> - </xs:simpleType> -</xs:schema> http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/feed-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/feed-0.1.xsd b/falcon-regression/merlin/src/test/resources/feed-0.1.xsd deleted file mode 100644 index 00b5172..0000000 --- a/falcon-regression/merlin/src/test/resources/feed-0.1.xsd +++ /dev/null @@ -1,375 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" - targetNamespace="uri:falcon:feed:0.1" xmlns="uri:falcon:feed:0.1" - xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"> - - <xs:annotation> - <xs:documentation> - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for - additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version - 2.0 - (the "License"); you may not use this file - except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in - writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied. - See the License - for the specific language governing permissions and - limitations under the License. - </xs:documentation> - <xs:appinfo> - <jaxb:schemaBindings> - <jaxb:package name="org.apache.falcon.entity.v0.feed"/> - </jaxb:schemaBindings> - </xs:appinfo> - </xs:annotation> - - <xs:element name="feed" type="feed"> - </xs:element> - <xs:complexType name="feed"> - <xs:annotation> - <xs:documentation> - name: A feed should have a unique name and this name is referenced - by processes as input or output feed. - tags: a feed specifies an optional list of comma separated tags - which is used for classification of data sets. - groups: a feed specifies a list of comma separated groups, - a group is a logical grouping of feeds and a group is said to be - available if all the feeds belonging to a group are available. - The frequency of all - the feed which belong to the same group - must be same. - availabilityFlag: specifies the name of a file which when - present/created - in a feeds data directory, the feed is - termed as available. ex: _SUCCESS, if - this element is ignored then Falcon would consider the presence of feed's - data directory as feed availability. - A feed has a - frequency and a periodicity which specifies the frequency by which - this feed is generated. ex: it can be generated every hour, every 5 minutes, daily, weekly etc. - valid frequency type for a feed are minutes, hours, days, months. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="KEY_VALUE_PAIR" name="tags" minOccurs="0"> - <xs:annotation> - <xs:documentation> - tags: a feed specifies an optional list of comma separated tags, - Key Value Pairs, separated by comma, - which is used for classification of processes. - Example: consumer=consu...@xyz.com, owner=produ...@xyz.com, department=forecasting - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="partitions" name="partitions" minOccurs="0"/> - <xs:element type="group-type" name="groups" minOccurs="0"/> - <xs:element type="xs:string" name="availabilityFlag" minOccurs="0"/> - <xs:element type="frequency-type" name="frequency"/> - <xs:element name="timezone" minOccurs="0" default="UTC"> - <xs:simpleType> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="java.util.TimeZone" parseMethod="java.util.TimeZone.getTimeZone" - printMethod="org.apache.falcon.entity.v0.SchemaHelper.getTimeZoneId"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"/> - </xs:simpleType> - </xs:element> - <xs:element type="late-arrival" name="late-arrival" minOccurs="0"/> - <xs:element type="clusters" name="clusters"/> - <xs:choice minOccurs="1" maxOccurs="1"> - <xs:element type="locations" name="locations"/> - <xs:element type="catalog-table" name="table"/> - </xs:choice> - <xs:element type="ACL" name="ACL"/> - <xs:element type="schema" name="schema"/> - <xs:element type="properties" name="properties" minOccurs="0"/> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="xs:string" name="description"/> - </xs:complexType> - - <xs:complexType name="cluster"> - <xs:annotation> - <xs:documentation> - Feed references a cluster by it's name, before submitting a feed all the - referenced cluster should be submitted to Falcon. - type: specifies whether the - referenced cluster should be treated as a - source or target for a feed. - Validity of a feed on cluster specifies duration for which this feed is - valid on this cluster. - Retention specifies how long the feed is retained on this cluster and the - action to be taken on the feed after the expiry of retention period. - The retention limit is - specified by expression frequency(times), ex: if - feed should be retained for at least 6 hours then retention's limit="hours(6)". - The field partitionExp contains - partition tags. Number of partition tags has to be equal to number of partitions specified in feed - schema. - A partition tag can be a wildcard(*), a static string or - an expression. Atleast one of the strings has to be an expression. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="validity" name="validity"/> - <xs:element type="retention" name="retention"/> - <xs:choice minOccurs="0" maxOccurs="1"> - <xs:element type="locations" name="locations" minOccurs="0"/> - <xs:element type="catalog-table" name="table"/> - </xs:choice> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="cluster-type" name="type" use="optional"/> - <xs:attribute type="xs:string" name="partition" use="optional"/> - <xs:attribute type="frequency-type" name="delay" use="optional" /> - </xs:complexType> - <xs:complexType name="partitions"> - <xs:annotation> - <xs:documentation> - A list of partition, which is the logical partition of a feed and this - is maintained in Hcatalog registry. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="partition" name="partition" maxOccurs="unbounded" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="schema"> - <xs:annotation> - <xs:documentation>A schema specifies the location of a schema file - for a feed and the provider of schema like protobuf, thrift etc. - </xs:documentation> - </xs:annotation> - <xs:attribute type="xs:string" name="location" use="required"/> - <xs:attribute type="xs:string" name="provider" use="required"/> - </xs:complexType> - <xs:complexType name="properties"> - <xs:annotation> - <xs:documentation> - A list of name-value pair of property. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="property" name="property" maxOccurs="unbounded" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="validity"> - <xs:annotation> - <xs:documentation> - A validity has a start, which is the validity start date and end the - validity - end date. ex: start="2011-11-01T00:00Z" in TZ format. - timezone can be UTC, - GMT. - Processes referring this feed would consider the validity period for - validation. - </xs:documentation> - </xs:annotation> - <xs:attribute type="date-time-type" name="start" use="required"/> - <xs:attribute type="date-time-type" name="end" use="required"/> - </xs:complexType> - <xs:complexType name="locations"> - <xs:annotation> - <xs:documentation> - A list of locations on the file system. - </xs:documentation> - </xs:annotation> - <xs:choice maxOccurs="unbounded" minOccurs="0"> - <xs:element type="location" name="location"/> - </xs:choice> - </xs:complexType> - <xs:complexType name="late-arrival"> - <xs:annotation> - <xs:documentation> - late-arrival specifies the cut-off period till which the feed is - expected to arrive late and should be honored be processes referring - to it as input - feed by rerunning the instances in case - the data arrives late with in a cut-off period. - The cut-off period is specified by expression - frequency(times), ex: if the feed - can arrive late - upto 8 hours then late-arrival's cut-off="hours(8)" - </xs:documentation> - </xs:annotation> - <xs:attribute type="frequency-type" name="cut-off" use="required"/> - </xs:complexType> - <xs:complexType name="property"> - <xs:annotation> - <xs:documentation> - A key-value pair, which are propagated to the - workflow engine. - </xs:documentation> - </xs:annotation> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="value" use="required"/> - </xs:complexType> - <xs:complexType name="clusters"> - <xs:annotation> - <xs:documentation> - A list of clusters. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="cluster" name="cluster" maxOccurs="unbounded" minOccurs="1"> - </xs:element> - </xs:sequence> - </xs:complexType> - <xs:complexType name="retention"> - <xs:attribute type="retention-type" name="type" default="instance"/> - <xs:attribute type="frequency-type" name="limit" use="required"/> - <xs:attribute type="action-type" name="action" use="required"/> - </xs:complexType> - <xs:simpleType name="retention-type"> - <xs:restriction base="xs:string"> - <xs:enumeration value="instance"/> - <!-- <xs:enumeration value="age" /> --> - </xs:restriction> - </xs:simpleType> - <xs:complexType name="location"> - <xs:annotation> - <xs:documentation> - location specifies the type of location like data, meta, stats - and the corresponding paths for them. - A feed should at least define the location for type - data, which - specifies the HDFS path pattern where the feed is generated - periodically. ex: type="data" path="/projects/TrafficHourly/${YEAR}-${MONTH}-${DAY}/traffic" - </xs:documentation> - </xs:annotation> - <xs:attribute type="location-type" name="type" use="required"/> - <xs:attribute type="xs:string" name="path" use="required"/> - </xs:complexType> - <xs:complexType name="partition"> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - </xs:complexType> - <xs:complexType name="ACL"> - <xs:annotation> - <xs:documentation> - Access control list for this feed. - </xs:documentation> - </xs:annotation> - <xs:attribute type="xs:string" name="owner"/> - <xs:attribute type="xs:string" name="group"/> - <xs:attribute type="xs:string" name="permission"/> - </xs:complexType> - <xs:simpleType name="action-type"> - <xs:restriction base="xs:string"> - <xs:annotation> - <xs:documentation> - action type specifies the action that should be taken on a feed - when the retention period of a feed expires on a cluster, - the valid - actions are - archive, delete, chown and chmod. - </xs:documentation> - </xs:annotation> - <xs:enumeration value="archive"/> - <xs:enumeration value="delete"/> - <xs:enumeration value="chown"/> - <xs:enumeration value="chmod"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="cluster-type"> - <xs:annotation> - <xs:documentation> - The clusters on feed can be either defined as source or target, - a feed - should at least have one source cluster defined. - the target clusters - are used for - replication of feed. - </xs:documentation> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:enumeration value="source"/> - <xs:enumeration value="target"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="location-type"> - <xs:restriction base="xs:string"> - <xs:enumeration value="data"/> - <xs:enumeration value="stats"/> - <xs:enumeration value="meta"/> - <xs:enumeration value="tmp"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="(([a-zA-Z]([\-a-zA-Z0-9])*){1,39})"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="frequency-type"> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="org.apache.falcon.entity.v0.Frequency" - parseMethod="org.apache.falcon.entity.v0.Frequency.fromString" - printMethod="org.apache.falcon.entity.v0.Frequency.toString"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="(minutes|hours|days|months)\([1-9]\d*\)"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="date-time-type"> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="java.util.Date" parseMethod="org.apache.falcon.entity.v0.SchemaHelper.parseDateUTC" - printMethod="org.apache.falcon.entity.v0.SchemaHelper.formatDateUTC"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern - value="((19|20)\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):([0-5][0-9]))Z"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="group-type"> - <xs:restriction base="xs:string"> - <xs:pattern value="(\w+(,\w+)*)"/> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="KEY_VALUE_PAIR"> - <xs:restriction base="xs:string"> - <xs:pattern value="(\w+=[^,]+)?([,]?[ ]*[\w]+=[^,]+)*"/> - </xs:restriction> - </xs:simpleType> - <xs:complexType name="catalog-table"> - <xs:annotation> - <xs:documentation> - catalog specifies the uri of a Hive table along with the partition spec. - uri="catalog:$database:$table#(partition-key=partition-value);+" - Example: catalog:logs-db:clicks#ds=${YEAR}-${MONTH}-${DAY} - </xs:documentation> - </xs:annotation> - <xs:attribute type="xs:string" name="uri" use="required"/> - </xs:complexType> -</xs:schema> http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/process-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/process-0.1.xsd b/falcon-regression/merlin/src/test/resources/process-0.1.xsd deleted file mode 100644 index 0d0f0e9..0000000 --- a/falcon-regression/merlin/src/test/resources/process-0.1.xsd +++ /dev/null @@ -1,355 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" - targetNamespace="uri:falcon:process:0.1" xmlns="uri:falcon:process:0.1" - xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"> - <xs:annotation> - <xs:documentation> - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version - 2.0 (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - </xs:documentation> - <xs:appinfo> - <jaxb:schemaBindings> - <jaxb:package name="org.apache.falcon.entity.v0.process"/> - </jaxb:schemaBindings> - </xs:appinfo> - </xs:annotation> - - <xs:element name="process" type="process"> - <xs:annotation> - <xs:documentation> - A process defines configuration for the workflow job like - frequency of the workflow, inputs and outputs for the workflow, how to - handle workflow failures, how to handle data that comes late and so on. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:complexType name="process"> - <xs:sequence> - <xs:element type="KEY_VALUE_PAIR" name="tags" minOccurs="0"> - <xs:annotation> - <xs:documentation> - tags: a process specifies an optional list of comma separated tags, - Key Value Pairs, separated by comma, - which is used for classification of processes. - Example: consumer=consu...@xyz.com, owner=produ...@xyz.com, department=forecasting - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="clusters" name="clusters"> - <xs:annotation> - <xs:documentation>Defines the clusters where the workflow should run - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="parallel"> - <xs:annotation> - <xs:documentation>Defines how many workflow instances can run concurrently - </xs:documentation> - </xs:annotation> - <xs:simpleType> - <xs:restriction base="xs:unsignedShort"> - <xs:minInclusive value="1"/> - <xs:maxInclusive value="12"/> - </xs:restriction> - </xs:simpleType> - </xs:element> - <xs:element type="execution-type" name="order"> - <xs:annotation> - <xs:documentation>Defines the order in which ready workflow instances should run - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="frequency-type" name="timeout" minOccurs="0"> - <xs:annotation> - <xs:documentation>Defines time after which instances will no longer be executed - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="frequency-type" name="frequency"> - <xs:annotation> - <xs:documentation>Defines workflow frequency - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element name="timezone" minOccurs="0" default="UTC"> - <xs:simpleType> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="java.util.TimeZone" parseMethod="java.util.TimeZone.getTimeZone" - printMethod="org.apache.falcon.entity.v0.SchemaHelper.getTimeZoneId"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"/> - </xs:simpleType> - </xs:element> - <xs:element type="inputs" name="inputs" minOccurs="0"> - <xs:annotation> - <xs:documentation>Defines inputs for the workflow. The workflow will run only when the scheduled - time is up and all the inputs are available - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="outputs" name="outputs" minOccurs="0"> - <xs:annotation> - <xs:documentation>Defines outputs of the workflow - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="properties" name="properties" minOccurs="0"> - </xs:element> - <xs:element type="workflow" name="workflow"> - <xs:annotation> - <xs:documentation>Defines the workflow that should run. The workflow should be defined with respect - to the workflow specification of the workflow engine. - Only - oozie workflow engine is supported as of now. The workflow path is the path on hdfs which - contains the workflow xml - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="retry" name="retry" minOccurs="0"> - <xs:annotation> - <xs:documentation>Retry defines how to handle workflow failures. Policy type - backoff, exponention - backoff along with the delay define how frequenctly - the - workflow should be re-tried. Number of attempts define how many times to re-try the failures. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="late-process" name="late-process" minOccurs="0"> - <xs:annotation> - <xs:documentation>Late process defines how the late data should be handled. Late policy - backoff, - exponential backoff, final along with delay - define how - frequently Falcon should check for late data. The late data handling can be customized for each - input separatly. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - </xs:complexType> - - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="(([a-zA-Z]([\-a-zA-Z0-9])*){1,39})"/> - </xs:restriction> - </xs:simpleType> - - <xs:complexType name="clusters"> - <xs:annotation> - <xs:documentation> - A list of clusters. - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="cluster" name="cluster" maxOccurs="unbounded" minOccurs="1"> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="cluster"> - <xs:annotation> - <xs:documentation> - Defines the cluster where the workflow should run. In addition, it also defines the validity of the - workflow on this cluster - </xs:documentation> - </xs:annotation> - <xs:sequence> - <xs:element type="validity" name="validity"/> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - </xs:complexType> - - <xs:complexType name="validity"> - <xs:annotation> - <xs:documentation> - Defines the vailidity of the workflow as start and end time - </xs:documentation> - </xs:annotation> - <xs:attribute type="date-time-type" name="start" use="required"/> - <xs:attribute type="date-time-type" name="end" use="required"/> - </xs:complexType> - - <xs:simpleType name="date-time-type"> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="java.util.Date" parseMethod="org.apache.falcon.entity.v0.SchemaHelper.parseDateUTC" - printMethod="org.apache.falcon.entity.v0.SchemaHelper.formatDateUTC"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern - value="((1|2)\d\d\d[- /.](0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):([0-5][0-9]))Z"/> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="execution-type"> - <xs:restriction base="xs:string"> - <xs:enumeration value="FIFO"/> - <xs:enumeration value="LIFO"/> - <xs:enumeration value="LAST_ONLY"/> - </xs:restriction> - </xs:simpleType> - - <xs:simpleType name="frequency-type"> - <xs:annotation> - <xs:appinfo> - <jaxb:javaType name="org.apache.falcon.entity.v0.Frequency" - parseMethod="org.apache.falcon.entity.v0.Frequency.fromString" - printMethod="org.apache.falcon.entity.v0.Frequency.toString"/> - </xs:appinfo> - </xs:annotation> - <xs:restriction base="xs:string"> - <xs:pattern value="(minutes|hours|days|months)\([1-9]\d*\)"/> - </xs:restriction> - </xs:simpleType> - - <xs:complexType name="inputs"> - <xs:sequence> - <xs:element type="input" name="input" maxOccurs="unbounded" minOccurs="1"> - <xs:annotation> - <xs:documentation>Defines input for the workflow. Each input maps to a feed. Input path and - frequency are picked from feed definition. - The input specifies the - start and end instance for the workflow. Falcon creates a property with input name which - contains paths of all input - instances between start and end. This - property will be available for the workflow to read inputs. - Input can also optionally specify the specific partition of feed that the workflow needs. - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="input"> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="IDENTIFIER" name="feed" use="required"/> - <xs:attribute type="xs:string" name="start" use="required"/> - <xs:attribute type="xs:string" name="end" use="required"/> - <xs:attribute type="xs:string" name="partition" use="optional"/> - <xs:attribute type="xs:boolean" name="optional" use="optional" default="false"/> - </xs:complexType> - - <xs:complexType name="outputs"> - <xs:sequence> - <xs:element type="output" name="output" maxOccurs="unbounded" minOccurs="1"> - <xs:annotation> - <xs:documentation>Each output maps to a feed. The Output path and frequency are picked from the - corresponding feed definition. - The output also specifies the - instance that is created in terms of EL expression. - For each output, Falcon creates a property with the output name which can be used in workflows - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="output"> - <xs:attribute type="IDENTIFIER" name="name" use="required"/> - <xs:attribute type="IDENTIFIER" name="feed" use="required"/> - <xs:attribute type="xs:string" name="instance" use="required"/> - </xs:complexType> - - <xs:complexType name="workflow"> - <xs:attribute type="xs:string" name="name" use="optional"/> - <xs:attribute type="xs:string" name="version" use="optional" default="1.0"/> - <xs:attribute type="engine-type" name="engine" use="optional" default="oozie"/> - <xs:attribute type="xs:string" name="path" use="required"/> - <xs:attribute type="xs:string" name="lib" use="optional"/> - </xs:complexType> - - <xs:simpleType name="engine-type"> - <xs:restriction base="xs:string"> - <xs:enumeration value="oozie"/> - <xs:enumeration value="pig"/> - <xs:enumeration value="hive"/> - </xs:restriction> - </xs:simpleType> - - <xs:complexType name="retry"> - <xs:attribute type="policy-type" name="policy" use="required"/> - <xs:attribute type="frequency-type" name="delay" use="required"/> - <xs:attribute name="attempts" use="required"> - <xs:simpleType> - <xs:restriction base="xs:unsignedShort"> - <xs:minInclusive value="1"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:complexType> - - <xs:simpleType name="policy-type"> - <xs:restriction base="xs:string"> - <xs:enumeration value="periodic"/> - <xs:enumeration value="exp-backoff"/> - <xs:enumeration value="final"/> - </xs:restriction> - </xs:simpleType> - - <xs:complexType name="late-process"> - <xs:sequence> - <xs:element type="late-input" name="late-input" maxOccurs="unbounded" minOccurs="1"> - <xs:annotation> - <xs:documentation> - For each input, defines the workflow that should be run when late data is detected - </xs:documentation> - </xs:annotation> - </xs:element> - </xs:sequence> - <xs:attribute type="policy-type" name="policy" use="required"/> - <xs:attribute type="frequency-type" name="delay" use="required"/> - </xs:complexType> - - <xs:complexType name="late-input"> - <xs:attribute type="IDENTIFIER" name="input" use="required"/> - <xs:attribute type="xs:string" name="workflow-path" use="required"/> - </xs:complexType> - - <xs:complexType name="properties"> - <xs:sequence> - <xs:element type="property" name="property" maxOccurs="unbounded" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="property"> - <xs:attribute type="xs:string" name="name" use="required"/> - <xs:attribute type="xs:string" name="value" use="required"/> - </xs:complexType> - - <xs:simpleType name="KEY_VALUE_PAIR"> - <xs:restriction base="xs:string"> - <xs:pattern value="(\w+=[^,]+)?([,]?[ ]*[\w]+=[^,]+)*"/> - </xs:restriction> - </xs:simpleType> -</xs:schema> http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/bundle.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/bundle.xsd b/falcon-regression/merlin/src/test/resources/xsd/bundle.xsd deleted file mode 100644 index 095127d..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/bundle.xsd +++ /dev/null @@ -1,62 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bundle="uri:oozie:bundle:0.1" - elementFormDefault="qualified" targetNamespace="uri:oozie:bundle:0.1"> - - <xs:element name="bundle-app" type="bundle:BUNDLE-APP"/> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="([a-zA-Z]([\-_a-zA-Z0-9])*){1,39})"/> - </xs:restriction> - </xs:simpleType> - <xs:complexType name="BUNDLE-APP"> - <xs:sequence> - <xs:element name="controls" type="bundle:CONTROLS" minOccurs="0" maxOccurs="1"/> - <xs:element name="coordinator" type="bundle:COORDINATOR" minOccurs="1" maxOccurs="unbounded"/> - </xs:sequence> - <xs:attribute name="name" type="bundle:IDENTIFIER" use="required"/> - </xs:complexType> - <xs:complexType name="CONTROLS"> - <xs:sequence minOccurs="0" maxOccurs="1"> - <xs:element name="kick-off-time" type="xs:string" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="COORDINATOR"> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="app-path" type="xs:string" minOccurs="1" maxOccurs="1"/> - <xs:element name="configuration" type="bundle:CONFIGURATION" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" type="bundle:IDENTIFIER" use="required"/> - <xs:attribute name="critical" type="xs:string" use="optional"/> - </xs:complexType> - <xs:complexType name="CONFIGURATION"> - <xs:sequence> - <xs:element name="property" minOccurs="1" maxOccurs="unbounded"> - <xs:complexType> - <xs:sequence> - <xs:element name="name" minOccurs="1" maxOccurs="1" type="xs:string"/> - <xs:element name="value" minOccurs="1" maxOccurs="1" type="xs:string"/> - <xs:element name="description" minOccurs="0" maxOccurs="1" type="xs:string"/> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> -</xs:schema> - http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/cluster-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/cluster-0.1.xsd b/falcon-regression/merlin/src/test/resources/xsd/cluster-0.1.xsd deleted file mode 100644 index 35cf408..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/cluster-0.1.xsd +++ /dev/null @@ -1,123 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="uri:ivory:cluster:0.1" xmlns="uri:ivory:cluster:0.1"> - - <xs:element name="cluster" type="cluster"> - <xs:annotation> - <xs:documentation>~ Licensed to the Apache Software Foundation (ASF) - under one - ~ or more contributor license agreements. See the NOTICE - file - ~ distributed with this work for additional information - ~ - regarding copyright ownership. The ASF licenses this file - ~ to you - under the Apache License, Version 2.0 (the - ~ "License"); you may not - use this file except in compliance - ~ with the License. You may obtain - a copy of the License at - ~ - ~ - http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by - applicable law or agreed to in writing, software - ~ distributed under - the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES - OR CONDITIONS OF ANY KIND, either express or - implied. - ~ See the - License for the specific language governing permissions and - ~ - limitations under the License. - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:complexType name="locations"> - <xs:sequence> - <xs:element type="location" name="location" maxOccurs="unbounded" - minOccurs="1" /> - </xs:sequence> - </xs:complexType> - <xs:complexType name="cluster"> - <xs:sequence> - <xs:element type="interfaces" name="interfaces" /> - <xs:element type="locations" name="locations" /> - <xs:element type="properties" name="properties" /> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" /> - <xs:attribute type="xs:string" name="description" /> - <xs:attribute type="xs:string" name="colo" /> - </xs:complexType> - <xs:complexType name="property"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="name" use="required" /> - <xs:attribute type="xs:string" name="value" use="required" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="interface"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="interfacetype" name="type" use="required" /> - <xs:attribute type="xs:string" name="endpoint" use="required" /> - <xs:attribute type="xs:string" name="version" use="required" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="properties"> - <xs:sequence> - <xs:element type="property" name="property" maxOccurs="unbounded" - minOccurs="0" /> - </xs:sequence> - </xs:complexType> - <xs:complexType name="location"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="name" use="required" /> - <xs:attribute type="xs:string" name="path" use="required" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="interfaces"> - <xs:sequence> - <xs:element type="interface" name="interface" maxOccurs="unbounded" - minOccurs="3" /> - </xs:sequence> - </xs:complexType> - <xs:simpleType name="interfacetype"> - <xs:restriction base="xs:string"> - <xs:enumeration value="readonly" /> - <xs:enumeration value="write" /> - <xs:enumeration value="execute" /> - <xs:enumeration value="workflow" /> - <xs:enumeration value="messaging" /> - <xs:enumeration value="registry" /> - </xs:restriction> - </xs:simpleType> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="([a-zA-Z]([\-_a-zA-Z0-9])*){1,39})" /> - </xs:restriction> - </xs:simpleType> -</xs:schema> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/coordinator.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/coordinator.xsd b/falcon-regression/merlin/src/test/resources/xsd/coordinator.xsd deleted file mode 100644 index c70cd26..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/coordinator.xsd +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:coordinator="uri:oozie:coordinator:0.2" - elementFormDefault="qualified" targetNamespace="uri:oozie:coordinator:0.2"> - - <xs:element name="coordinator-app" type="coordinator:COORDINATOR-APP"/> - <xs:element name="datasets" type="coordinator:DATASETS"/> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="([a-zA-Z]([\-_a-zA-Z0-9])*){1,39})"/> - </xs:restriction> - </xs:simpleType> - <xs:complexType name="COORDINATOR-APP"> - <xs:sequence> - <xs:element name="controls" type="coordinator:CONTROLS" minOccurs="0" maxOccurs="1"/> - <xs:element name="datasets" type="coordinator:DATASETS" minOccurs="0" maxOccurs="1"/> - <xs:element name="input-events" type="coordinator:INPUTEVENTS" minOccurs="0" maxOccurs="1"/> - <xs:element name="output-events" type="coordinator:OUTPUTEVENTS" minOccurs="0" maxOccurs="1"/> - <xs:element name="action" type="coordinator:ACTION" minOccurs="1" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" type="xs:string" use="required"/> - <xs:attribute name="frequency" type="xs:string" use="required"/> - <xs:attribute name="start" type="xs:string" use="required"/> - <xs:attribute name="end" type="xs:string" use="required"/> - <xs:attribute name="timezone" type="xs:string" use="required"/> - </xs:complexType> - <xs:complexType name="CONTROLS"> - <xs:sequence minOccurs="0" maxOccurs="1"> - <xs:element name="timeout" type="xs:string" minOccurs="0" maxOccurs="1"/> - <xs:element name="concurrency" type="xs:string" minOccurs="0" maxOccurs="1"/> - <xs:element name="execution" type="xs:string" minOccurs="0" maxOccurs="1"/> - <xs:element name="throttle" type="xs:string" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="DATASETS"> - <xs:sequence minOccurs="0" maxOccurs="1"> - <xs:element name="include" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> - <xs:choice minOccurs="0" maxOccurs="unbounded"> - <xs:element name="dataset" type="coordinator:SYNCDATASET" minOccurs="0" maxOccurs="1"/> - <xs:element name="async-dataset" type="coordinator:ASYNCDATASET" minOccurs="0" maxOccurs="1"/> - </xs:choice> - </xs:sequence> - </xs:complexType> - <xs:complexType name="SYNCDATASET"> - <xs:sequence> - <xs:element name="uri-template" type="xs:string" minOccurs="1" maxOccurs="1"/> - <xs:element name="done-flag" type="xs:string" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" type="coordinator:IDENTIFIER" use="required"/> - <xs:attribute name="frequency" type="xs:string" use="required"/> - <xs:attribute name="initial-instance" type="xs:string" use="required"/> - <xs:attribute name="timezone" type="xs:string" use="required"/> - </xs:complexType> - <xs:complexType name="ASYNCDATASET"> - <xs:sequence> - <xs:element name="uri-template" type="xs:string" minOccurs="1" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" type="coordinator:IDENTIFIER" use="required"/> - <xs:attribute name="sequence-type" type="xs:string" use="required"/> - <xs:attribute name="initial-version" type="xs:string" use="required"/> - </xs:complexType> - <xs:complexType name="INPUTEVENTS"> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="data-in" type="coordinator:DATAIN" minOccurs="1" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="DATAIN"> - <xs:choice minOccurs="1" maxOccurs="1"> - <xs:element name="instance" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="start-instance" type="xs:string" minOccurs="1" maxOccurs="1"/> - <xs:element name="end-instance" type="xs:string" minOccurs="1" maxOccurs="1"/> - </xs:sequence> - </xs:choice> - <xs:attribute name="name" type="coordinator:IDENTIFIER" use="required"/> - <xs:attribute name="dataset" type="coordinator:IDENTIFIER" use="required"/> - </xs:complexType> - <xs:complexType name="OUTPUTEVENTS"> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="data-out" type="coordinator:DATAOUT" minOccurs="1" maxOccurs="unbounded"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="DATAOUT"> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="instance" type="xs:string" minOccurs="1" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" type="coordinator:IDENTIFIER" use="required"/> - <xs:attribute name="dataset" type="coordinator:IDENTIFIER" use="required"/> - </xs:complexType> - <xs:complexType name="ACTION"> - <xs:sequence minOccurs="1" maxOccurs="1"> - <xs:element name="workflow" type="coordinator:WORKFLOW" minOccurs="1" maxOccurs="1"/> - <xs:any namespace="uri:oozie:sla:0.1" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="WORKFLOW"> - <xs:sequence> - <xs:element name="app-path" type="xs:string" minOccurs="1" maxOccurs="1"/> - <xs:element name="configuration" type="coordinator:CONFIGURATION" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - </xs:complexType> - - <xs:complexType name="FLAG"/> - <xs:complexType name="CONFIGURATION"> - <xs:sequence> - <xs:element name="property" minOccurs="1" maxOccurs="unbounded"> - <xs:complexType> - <xs:sequence> - <xs:element name="name" minOccurs="1" maxOccurs="1" type="xs:string"/> - <xs:element name="value" minOccurs="1" maxOccurs="1" type="xs:string"/> - <xs:element name="description" minOccurs="0" maxOccurs="1" type="xs:string"/> - </xs:sequence> - </xs:complexType> - </xs:element> - </xs:sequence> - </xs:complexType> -</xs:schema> - http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/dataset-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/dataset-0.1.xsd b/falcon-regression/merlin/src/test/resources/xsd/dataset-0.1.xsd deleted file mode 100644 index c5d048c..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/dataset-0.1.xsd +++ /dev/null @@ -1,320 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="uri:ivory:dataset:0.1" xmlns="uri:ivory:dataset:0.1"> - <xs:element name="Dataset"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Comments" minOccurs="0"/> - <xs:element ref="Status" minOccurs="0"/> - <xs:element ref="Priority" minOccurs="0"/> - <xs:element ref="Type" minOccurs="0"/> - <xs:element ref="MetaInfo" minOccurs="0"/> - <xs:element ref="Partition"/> - <xs:element ref="SourceDataDefinition" minOccurs="0"/> - <xs:element ref="Defaults" minOccurs="0"/> - <xs:element ref="Datastores"/> - <xs:element ref="DataFlow" minOccurs="0"/> - <xs:element ref="CustomCode" minOccurs="0"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="catalog" use="required" type="xs:string"/> - <xs:attribute name="description" use="required" type="xs:string"/> - <xs:attribute name="gdmversion" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Comments" type="xs:string"/> - <xs:element name="Status" type="xs:string"/> - <xs:element name="Priority" type="xs:string"/> - <xs:element name="Type" type="xs:string"/> - <xs:element name="MetaInfo"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Owner" minOccurs="0"/> - <xs:element ref="Consumers" minOccurs="0"/> - <xs:element ref="Tags" minOccurs="0"/> - <xs:element ref="Parameters" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Owner"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="BU" use="required" type="xs:string"/> - <xs:attribute name="admin-email" use="required" type="xs:string"/> - <xs:attribute name="user-email" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Consumers"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Consumer"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Consumer"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="BU" use="required" type="xs:string"/> - <xs:attribute name="email" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Tags" type="xs:string"/> - <xs:element name="Parameters"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="parameter"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="parameter"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="value" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Partition"> - <xs:complexType> - <xs:sequence> - <xs:element ref="SubPartition" minOccurs="0"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="type" use="required" type="xs:string"/> - <xs:attribute name="format" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="SubPartition"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="type" use="required" type="xs:string"/> - <xs:attribute name="values" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="SourceDataDefinition"> - <xs:complexType> - <xs:sequence> - <xs:element ref="DataInputFormat"/> - <xs:element ref="Schema" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="DataInputFormat" type="xs:string"/> - <xs:element name="Schema"> - <xs:complexType> - <xs:attribute name="location" use="required" type="xs:anyURI"/> - <xs:attribute name="provider" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Defaults"> - <xs:complexType> - <xs:sequence> - <xs:element ref="ACL" minOccurs="0"/> - <xs:element ref="Authentication" minOccurs="0"/> - <xs:element ref="DateRange" minOccurs="0" /> - <xs:element type="xs:string" name="Frequency" /> - <xs:element type="xs:int" name="Periodicity" /> - <xs:element type="xs:string" name="Timezone" /> - <xs:element ref="Paths" /> - <xs:element ref="Policies" minOccurs="0"/> - <xs:element ref="Configuration" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Authentication"> - <xs:complexType> - <xs:sequence> - <xs:element ref="AuthScheme"/> - <xs:element ref="CredentialProvider"/> - <xs:element ref="Configuration" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="AuthScheme" type="xs:string"/> - <xs:element name="CredentialProvider" type="xs:string"/> - <xs:element name="Datastores"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Datastore"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Datastore"> - <xs:complexType> - <xs:sequence minOccurs="0"> - <xs:element ref="ACL"/> - <xs:element ref="Authentication" minOccurs="0"/> - <xs:element ref="DateRange"/> - <xs:element ref="Paths"/> - <xs:element ref="Policies"/> - <xs:element ref="IgnorePolicies"/> - <xs:element ref="Configuration"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="active" type="xs:boolean"/> - </xs:complexType> - </xs:element> - <xs:element name="IgnorePolicies" type="xs:string"/> - <xs:element name="DataFlow"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Import"/> - <xs:element maxOccurs="unbounded" ref="Copy"/> - <xs:element maxOccurs="unbounded" ref="Export"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Import"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Discovery"/> - <xs:element ref="Source"/> - <xs:element maxOccurs="unbounded" ref="Target"/> - <xs:element ref="Load" minOccurs="0"/> - <xs:element ref="Transform" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Load"> - <xs:complexType> - <xs:attribute name="numMaps" use="optional" type="xs:int"/> - <xs:attribute name="strategy" use="optional" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Transform"> - <xs:complexType> - <xs:sequence> - <xs:element ref="DataOutputFormat" minOccurs="0"/> - <xs:element ref="SortKey" minOccurs="0"/> - <xs:element ref="PartitionKey" minOccurs="0"/> - </xs:sequence> - <xs:attribute name="numMaps" use="optional" type="xs:int"/> - <xs:attribute name="numReduce" use="optional" type="xs:int"/> - </xs:complexType> - </xs:element> - <xs:element name="DataOutputFormat" type="xs:string"/> - <xs:element name="SortKey" type="xs:string"/> - <xs:element name="PartitionKey" type="xs:string"/> - <xs:element name="Copy"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Discovery"/> - <xs:element ref="Source"/> - <xs:element maxOccurs="unbounded" ref="Target"/> - <xs:element ref="Replicate" minOccurs="0"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Replicate"> - <xs:complexType> - <xs:attribute name="numMaps" use="optional" type="xs:int"/> - <xs:attribute name="strategy" use="optional" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Export"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Discovery"/> - <xs:element ref="Source"/> - <xs:element maxOccurs="unbounded" ref="Target"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="CustomCode"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Configuration"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="ACL"> - <xs:complexType> - <xs:attribute name="group" use="required" type="xs:string"/> - <xs:attribute name="permission" use="required" type="xs:int"/> - </xs:complexType> - </xs:element> - <xs:element name="Configuration"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="property"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="property"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="value" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="DateRange"> - <xs:complexType> - <xs:attribute name="start" use="required" type="xs:string"/> - <xs:attribute name="end" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Paths"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Path"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Path"> - <xs:complexType> - <xs:attribute name="location" use="required" type="xs:string"/> - <xs:attribute name="type" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Policies"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Policy"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Policy"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" ref="Configuration"/> - </xs:sequence> - <xs:attribute name="type" use="required" type="xs:string"/> - <xs:attribute name="condition" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Discovery"> - <xs:complexType> - <xs:attribute name="interface" use="required" type="xs:string"/> - <xs:attribute name="start" use="required" type="xs:string"/> - <xs:attribute name="frequency" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Source"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="bcp" use="optional" type="xs:string"/> - <xs:attribute name="use-bcp" use="optional" type="xs:boolean"/> - <xs:attribute name="sla" use="required" type="xs:int"/> - </xs:complexType> - </xs:element> - <xs:element name="Target"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="sla" use="required" type="xs:int"/> - </xs:complexType> - </xs:element> -</xs:schema> http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/datastore-0.1.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/datastore-0.1.xsd b/falcon-regression/merlin/src/test/resources/xsd/datastore-0.1.xsd deleted file mode 100644 index 7d9e2d8..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/datastore-0.1.xsd +++ /dev/null @@ -1,127 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="uri:ivory:datastore:0.1" xmlns="uri:ivory:datastore:0.1"> - <xs:element name="Datastore"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Comments" minOccurs="0" maxOccurs="1"/> - <xs:element ref="Source" minOccurs="0" maxOccurs="1"/> - <xs:element ref="Sink" minOccurs="0" maxOccurs="1"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="type" use="required" type="xs:string"/> - <xs:attribute name="colo" use="required" type="xs:string"/> - <xs:attribute name="description" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Comments" type="xs:string"/> - <xs:element name="Source"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Configuration" minOccurs="0" maxOccurs="1"/> - <xs:element ref="Interfaces"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Sink"> - <xs:complexType> - <xs:sequence> - <xs:element ref="Configuration" minOccurs="0" maxOccurs="1"/> - <xs:element ref="Interfaces"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Configuration"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" maxOccurs="unbounded" ref="property"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="property"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="value" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Interfaces"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Interface"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Interface"> - <xs:complexType> - <xs:sequence> - <xs:element minOccurs="0" ref="Proxy"/> - <xs:element maxOccurs="unbounded" ref="Command"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="type" use="required" type="xs:string"/> - <xs:attribute name="version" use="required" type="xs:decimal"/> - </xs:complexType> - </xs:element> - <xs:element name="Proxy"> - <xs:complexType> - <xs:attribute name="host" use="required" type="xs:string"/> - <xs:attribute name="port" use="required" type="xs:int"/> - <xs:attribute name="type" use="required" type="xs:string"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:enumeration value="HTTP"/> - </xs:restriction> - </xs:simpleType> - </xs:attribute> - </xs:complexType> - </xs:element> - <xs:element name="Command"> - <xs:complexType> - <xs:sequence minOccurs="0"> - <xs:element ref="Arguments"/> - <xs:element ref="Options"/> - </xs:sequence> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="url" use="required" type="xs:anyURI"/> - <xs:attribute name="command" type="xs:string"/> - </xs:complexType> - </xs:element> - <xs:element name="Arguments"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Argument"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Argument" type="xs:string"/> - <xs:element name="Options"> - <xs:complexType> - <xs:sequence> - <xs:element maxOccurs="unbounded" ref="Option"/> - </xs:sequence> - </xs:complexType> - </xs:element> - <xs:element name="Option"> - <xs:complexType> - <xs:attribute name="name" use="required" type="xs:string"/> - <xs:attribute name="value" use="required" type="xs:string"/> - </xs:complexType> - </xs:element> -</xs:schema> http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/abf17649/falcon-regression/merlin/src/test/resources/xsd/process.xsd ---------------------------------------------------------------------- diff --git a/falcon-regression/merlin/src/test/resources/xsd/process.xsd b/falcon-regression/merlin/src/test/resources/xsd/process.xsd deleted file mode 100644 index a432ad8..0000000 --- a/falcon-regression/merlin/src/test/resources/xsd/process.xsd +++ /dev/null @@ -1,185 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - --> - -<xs:schema attributeFormDefault="unqualified" - elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:element name="process" type="processType"> - <xs:annotation> - <xs:documentation>/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - </xs:documentation> - </xs:annotation> - </xs:element> - <xs:simpleType name="IDENTIFIER"> - <xs:restriction base="xs:string"> - <xs:pattern value="([a-zA-Z]([\-_a-zA-Z0-9])*){1,39})" /> - </xs:restriction> - </xs:simpleType> - <xs:complexType name="clusterType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="name" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="late-processType"> - <xs:sequence> - <xs:element type="late-inputType" name="late-input" - maxOccurs="unbounded" minOccurs="0" /> - </xs:sequence> - <xs:attribute type="xs:string" name="policy" /> - <xs:attribute type="xs:string" name="delay" /> - <xs:attribute type="xs:string" name="delayUnit" /> - </xs:complexType> - <xs:complexType name="propertiesType"> - <xs:sequence> - <xs:element type="propertyType" name="property" maxOccurs="unbounded" - minOccurs="0" /> - </xs:sequence> - </xs:complexType> - <xs:complexType name="late-inputType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="feed" use="optional" /> - <xs:attribute type="xs:string" name="workflow-path" - use="optional" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="validityType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="start" /> - <xs:attribute type="xs:string" name="end" /> - <xs:attribute type="xs:string" name="timezone" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="retryType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="policy" /> - <xs:attribute type="xs:string" name="delay" /> - <xs:attribute type="xs:string" name="delayUnit" /> - <xs:attribute type="xs:string" name="attempts" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="processType"> - <xs:sequence> - <xs:element type="clustersType" name="clusters"> - <xs:annotation> - <xs:documentation>where</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="xs:string" name="concurrency"> - <xs:annotation> - <xs:documentation>when</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="xs:string" name="execution" /> - <xs:element type="xs:string" name="frequency" /> - <xs:element type="xs:string" name="periodicity" /> - <xs:element type="validityType" name="validity" /> - <xs:element type="inputsType" name="inputs"> - </xs:element> - <xs:element type="outputsType" name="outputs" /> - <xs:element type="propertiesType" name="properties"> - <xs:annotation> - <xs:documentation>how</xs:documentation> - </xs:annotation> - </xs:element> - <xs:element type="workflowType" name="workflow" /> - <xs:element type="retryType" name="retry" /> - <xs:element type="late-processType" name="late-process" /> - </xs:sequence> - <xs:attribute type="IDENTIFIER" name="name" /> - </xs:complexType> - <xs:complexType name="inputsType"> - <xs:sequence> - <xs:element type="inputType" name="input" maxOccurs="unbounded" - minOccurs="0" /> - </xs:sequence> - </xs:complexType> - <xs:complexType name="propertyType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="name" use="optional" /> - <xs:attribute type="xs:string" name="value" use="optional" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="clustersType"> - <xs:sequence> - <xs:element type="clusterType" name="cluster" maxOccurs="unbounded" - minOccurs="0"/> - </xs:sequence> - </xs:complexType> - <xs:complexType name="inputType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="IDENTIFIER" name="name" use="optional" /> - <xs:attribute type="xs:string" name="feed" use="optional" /> - <xs:attribute type="xs:string" name="start-instance" - use="optional" /> - <xs:attribute type="xs:string" name="end-instance" use="optional" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="outputType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="IDENTIFIER" name="name" use="optional" /> - <xs:attribute type="xs:string" name="feed" use="optional" /> - <xs:attribute type="xs:string" name="instance" use="optional" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="workflowType"> - <xs:simpleContent> - <xs:extension base="xs:string"> - <xs:attribute type="xs:string" name="engine" /> - <xs:attribute type="xs:string" name="path" /> - <xs:attribute type="xs:string" name="libpath" /> - </xs:extension> - </xs:simpleContent> - </xs:complexType> - <xs:complexType name="outputsType"> - <xs:sequence> - <xs:element type="outputType" name="output" maxOccurs="unbounded" - minOccurs="0" /> - </xs:sequence> - </xs:complexType> -</xs:schema> \ No newline at end of file