http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/gcs_operator.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/gcs_operator.html b/_modules/airflow/contrib/operators/gcs_operator.html index 1d95eae..dcdee63 100644 --- a/_modules/airflow/contrib/operators/gcs_operator.html +++ b/_modules/airflow/contrib/operators/gcs_operator.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -203,10 +193,10 @@ <span class="sd"> For more information, see Bucket Naming Guidelines:</span> <span class="sd"> https://cloud.google.com/storage/docs/bucketnaming.html#requirements</span> -<span class="sd"> :param bucket_name: The name of the bucket.</span> +<span class="sd"> :param bucket_name: The name of the bucket. (templated)</span> <span class="sd"> :type bucket_name: string</span> <span class="sd"> :param storage_class: This defines how objects in the bucket are stored</span> -<span class="sd"> and determines the SLA and the cost of storage. Values include</span> +<span class="sd"> and determines the SLA and the cost of storage (templated). Values include</span> <span class="sd"> - ``MULTI_REGIONAL``</span> <span class="sd"> - ``REGIONAL``</span> @@ -216,7 +206,7 @@ <span class="sd"> If this value is not specified when the bucket is</span> <span class="sd"> created, it will default to STANDARD.</span> <span class="sd"> :type storage_class: string</span> -<span class="sd"> :param location: The location of the bucket.</span> +<span class="sd"> :param location: The location of the bucket. (templated)</span> <span class="sd"> Object data for objects in the bucket resides in physical storage</span> <span class="sd"> within this region. Defaults to US.</span> @@ -224,7 +214,7 @@ <span class="sd"> https://developers.google.com/storage/docs/bucket-locations</span> <span class="sd"> :type location: string</span> -<span class="sd"> :param project_id: The ID of the GCP Project.</span> +<span class="sd"> :param project_id: The ID of the GCP Project. (templated)</span> <span class="sd"> :type project_id: string</span> <span class="sd"> :param labels: User-provided labels, in key/value pairs.</span> <span class="sd"> :type labels: dict</span> @@ -294,9 +284,7 @@ </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -308,7 +296,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -327,6 +315,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -339,19 +328,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/gcs_to_bq.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/gcs_to_bq.html b/_modules/airflow/contrib/operators/gcs_to_bq.html index db2b756..4dabc6a 100644 --- a/_modules/airflow/contrib/operators/gcs_to_bq.html +++ b/_modules/airflow/contrib/operators/gcs_to_bq.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -205,21 +195,21 @@ <span class="sd"> point the operator to a Google cloud storage object name. The object in</span> <span class="sd"> Google cloud storage must be a JSON file with the schema fields in it.</span> -<span class="sd"> :param bucket: The bucket to load from.</span> +<span class="sd"> :param bucket: The bucket to load from. (templated)</span> <span class="sd"> :type bucket: string</span> -<span class="sd"> :param source_objects: List of Google cloud storage URIs to load from.</span> +<span class="sd"> :param source_objects: List of Google cloud storage URIs to load from. (templated)</span> <span class="sd"> If source_format is 'DATASTORE_BACKUP', the list must only contain a single URI.</span> <span class="sd"> :type object: list</span> <span class="sd"> :param destination_project_dataset_table: The dotted (<project>.)<dataset>.<table></span> -<span class="sd"> BigQuery table to load data into. If <project> is not included, project will</span> -<span class="sd"> be the project defined in the connection json.</span> +<span class="sd"> BigQuery table to load data into. If <project> is not included,</span> +<span class="sd"> project will be the project defined in the connection json. (templated)</span> <span class="sd"> :type destination_project_dataset_table: string</span> <span class="sd"> :param schema_fields: If set, the schema field list as defined here:</span> <span class="sd"> https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load</span> <span class="sd"> Should not be set when source_format is 'DATASTORE_BACKUP'.</span> <span class="sd"> :type schema_fields: list</span> <span class="sd"> :param schema_object: If set, a GCS object path pointing to a .json file that</span> -<span class="sd"> contains the schema for the table.</span> +<span class="sd"> contains the schema for the table. (templated)</span> <span class="sd"> :param schema_object: string</span> <span class="sd"> :param source_format: File format to export.</span> <span class="sd"> :type source_format: string</span> @@ -355,8 +345,9 @@ <span class="n">bq_hook</span> <span class="o">=</span> <span class="n">BigQueryHook</span><span class="p">(</span><span class="n">bigquery_conn_id</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">bigquery_conn_id</span><span class="p">,</span> <span class="n">delegate_to</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">delegate_to</span><span class="p">)</span> - <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">schema_fields</span> <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">schema_object</span> \ - <span class="ow">and</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_format</span> <span class="o">!=</span> <span class="s1">'DATASTORE_BACKUP'</span><span class="p">:</span> + <span class="k">if</span> <span class="ow">not</span> <span class="bp">self</span><span class="o">.</span><span class="n">schema_fields</span> <span class="ow">and</span> \ + <span class="bp">self</span><span class="o">.</span><span class="n">schema_object</span> <span class="ow">and</span> \ + <span class="bp">self</span><span class="o">.</span><span class="n">source_format</span> <span class="o">!=</span> <span class="s1">'DATASTORE_BACKUP'</span><span class="p">:</span> <span class="n">gcs_hook</span> <span class="o">=</span> <span class="n">GoogleCloudStorageHook</span><span class="p">(</span> <span class="n">google_cloud_storage_conn_id</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">google_cloud_storage_conn_id</span><span class="p">,</span> <span class="n">delegate_to</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">delegate_to</span><span class="p">)</span> @@ -420,9 +411,7 @@ </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -434,7 +423,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -453,6 +442,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -465,19 +455,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/gcs_to_gcs.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/gcs_to_gcs.html b/_modules/airflow/contrib/operators/gcs_to_gcs.html index 7379d8a..86acbc4 100644 --- a/_modules/airflow/contrib/operators/gcs_to_gcs.html +++ b/_modules/airflow/contrib/operators/gcs_to_gcs.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -197,10 +187,11 @@ <span class="sd">"""</span> <span class="sd"> Copies objects from a bucket to another, with renaming if requested.</span> -<span class="sd"> :param source_bucket: The source Google cloud storage bucket where the object is.</span> +<span class="sd"> :param source_bucket: The source Google cloud storage bucket where the</span> +<span class="sd"> object is. (templated)</span> <span class="sd"> :type source_bucket: string</span> <span class="sd"> :param source_object: The source name of the object to copy in the Google cloud</span> -<span class="sd"> storage bucket.</span> +<span class="sd"> storage bucket. (templated)</span> <span class="sd"> If wildcards are used in this argument:</span> <span class="sd"> You can use only one wildcard for objects (filenames) within your</span> <span class="sd"> bucket. The wildcard can appear inside the object name or at the</span> @@ -208,13 +199,18 @@ <span class="sd"> unsupported.</span> <span class="sd"> :type source_object: string</span> <span class="sd"> :param destination_bucket: The destination Google cloud storage bucket</span> -<span class="sd"> where the object should be.</span> +<span class="sd"> where the object should be. (templated)</span> <span class="sd"> :type destination_bucket: string</span> <span class="sd"> :param destination_object: The destination name of the object in the</span> -<span class="sd"> destination Google cloud</span> -<span class="sd"> storage bucket.</span> +<span class="sd"> destination Google cloud storage bucket. (templated)</span> <span class="sd"> If a wildcard is supplied in the source_object argument, this is the</span> <span class="sd"> prefix that will be prepended to the final destination objects' paths.</span> +<span class="sd"> Note that the source path's part before the wildcard will be removed;</span> +<span class="sd"> if it needs to be retained it should be appended to destination_object.</span> +<span class="sd"> For example, with prefix ``foo/*`` and destination_object `'blah/``, the</span> +<span class="sd"> file ``foo/baz`` will be copied to ``blah/baz``; to retain the prefix write</span> +<span class="sd"> the destination_object as e.g. ``blah/foo``, in which case the copied file</span> +<span class="sd"> will be named ``blah/foo/baz``.</span> <span class="sd"> :type destination_object: string</span> <span class="sd"> :param move_object: When move object is True, the object is moved instead</span> <span class="sd"> of copied to the new location.</span> @@ -228,6 +224,44 @@ <span class="sd"> For this to work, the service account making the request must have</span> <span class="sd"> domain-wide delegation enabled.</span> <span class="sd"> :type delegate_to: string</span> + +<span class="sd"> **Examples**:</span> +<span class="sd"> The following Operator would copy a single file named</span> +<span class="sd"> ``sales/sales-2017/january.avro`` in the ``data`` bucket to the file named</span> +<span class="sd"> ``copied_sales/2017/january-backup.avro` in the ``data_backup`` bucket ::</span> +<span class="sd"> copy_single_file = GoogleCloudStorageToGoogleCloudStorageOperator(</span> +<span class="sd"> task_id='copy_single_file',</span> +<span class="sd"> source_bucket='data',</span> +<span class="sd"> source_object='sales/sales-2017/january.avro',</span> +<span class="sd"> destination_bucket='data_backup',</span> +<span class="sd"> destination_object='copied_sales/2017/january-backup.avro',</span> +<span class="sd"> google_cloud_storage_conn_id=google_cloud_conn_id</span> +<span class="sd"> )</span> + +<span class="sd"> The following Operator would copy all the Avro files from ``sales/sales-2017``</span> +<span class="sd"> folder (i.e. with names starting with that prefix) in ``data`` bucket to the</span> +<span class="sd"> ``copied_sales/2017`` folder in the ``data_backup`` bucket. ::</span> +<span class="sd"> copy_files = GoogleCloudStorageToGoogleCloudStorageOperator(</span> +<span class="sd"> task_id='copy_files',</span> +<span class="sd"> source_bucket='data',</span> +<span class="sd"> source_object='sales/sales-2017/*.avro',</span> +<span class="sd"> destination_bucket='data_backup',</span> +<span class="sd"> destination_object='copied_sales/2017/',</span> +<span class="sd"> google_cloud_storage_conn_id=google_cloud_conn_id</span> +<span class="sd"> )</span> + +<span class="sd"> The following Operator would move all the Avro files from ``sales/sales-2017``</span> +<span class="sd"> folder (i.e. with names starting with that prefix) in ``data`` bucket to the</span> +<span class="sd"> same folder in the ``data_backup`` bucket, deleting the original files in the</span> +<span class="sd"> process. ::</span> +<span class="sd"> move_files = GoogleCloudStorageToGoogleCloudStorageOperator(</span> +<span class="sd"> task_id='move_files',</span> +<span class="sd"> source_bucket='data',</span> +<span class="sd"> source_object='sales/sales-2017/*.avro',</span> +<span class="sd"> destination_bucket='data_backup',</span> +<span class="sd"> move_object=True,</span> +<span class="sd"> google_cloud_storage_conn_id=google_cloud_conn_id</span> +<span class="sd"> )</span> <span class="sd"> """</span> <span class="n">template_fields</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'source_bucket'</span><span class="p">,</span> <span class="s1">'source_object'</span><span class="p">,</span> <span class="s1">'destination_bucket'</span><span class="p">,</span> <span class="s1">'destination_object'</span><span class="p">,)</span> @@ -244,8 +278,8 @@ <span class="n">delegate_to</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span> - <span class="nb">super</span><span class="p">(</span><span class="n">GoogleCloudStorageToGoogleCloudStorageOperator</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span> - <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> + <span class="nb">super</span><span class="p">(</span><span class="n">GoogleCloudStorageToGoogleCloudStorageOperator</span><span class="p">,</span> + <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span> <span class="o">=</span> <span class="n">source_bucket</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span> <span class="o">=</span> <span class="n">source_object</span> <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span> <span class="o">=</span> <span class="n">destination_bucket</span> @@ -253,6 +287,7 @@ <span class="bp">self</span><span class="o">.</span><span class="n">move_object</span> <span class="o">=</span> <span class="n">move_object</span> <span class="bp">self</span><span class="o">.</span><span class="n">google_cloud_storage_conn_id</span> <span class="o">=</span> <span class="n">google_cloud_storage_conn_id</span> <span class="bp">self</span><span class="o">.</span><span class="n">delegate_to</span> <span class="o">=</span> <span class="n">delegate_to</span> + <span class="bp">self</span><span class="o">.</span><span class="n">wildcard</span> <span class="o">=</span> <span class="s1">'*'</span> <span class="k">def</span> <span class="nf">execute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">context</span><span class="p">):</span> @@ -260,51 +295,43 @@ <span class="n">google_cloud_storage_conn_id</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">google_cloud_storage_conn_id</span><span class="p">,</span> <span class="n">delegate_to</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">delegate_to</span> <span class="p">)</span> + <span class="n">log_message</span> <span class="o">=</span> <span class="s1">'Executing copy of gs://</span><span class="si">{0}</span><span class="s1">/</span><span class="si">{1}</span><span class="s1"> to gs://</span><span class="si">{2}</span><span class="s1">/</span><span class="si">{3}</span><span class="s1">'</span> - <span class="k">if</span> <span class="s1">'*'</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">:</span> - <span class="n">wildcard_position</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="o">.</span><span class="n">index</span><span class="p">(</span><span class="s1">'*'</span><span class="p">)</span> - <span class="n">objects</span> <span class="o">=</span> <span class="n">hook</span><span class="o">.</span><span class="n">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> - <span class="n">prefix</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">[:</span><span class="n">wildcard_position</span><span class="p">],</span> - <span class="n">delimiter</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">[</span><span class="n">wildcard_position</span> <span class="o">+</span> <span class="mi">1</span><span class="p">:])</span> + <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">wildcard</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">:</span> + <span class="n">prefix</span><span class="p">,</span> <span class="n">delimiter</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">wildcard</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> + <span class="n">objects</span> <span class="o">=</span> <span class="n">hook</span><span class="o">.</span><span class="n">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="n">prefix</span><span class="o">=</span><span class="n">prefix</span><span class="p">,</span> <span class="n">delimiter</span><span class="o">=</span><span class="n">delimiter</span><span class="p">)</span> <span class="k">for</span> <span class="n">source_object</span> <span class="ow">in</span> <span class="n">objects</span><span class="p">:</span> - <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span><span class="p">:</span> - <span class="n">destination_object</span> <span class="o">=</span> <span class="s2">"</span><span class="si">{}</span><span class="s2">/</span><span class="si">{}</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span><span class="p">,</span> - <span class="n">source_object</span><span class="p">[</span><span class="n">wildcard_position</span><span class="p">:])</span> - <span class="k">else</span><span class="p">:</span> + <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span> <span class="n">destination_object</span> <span class="o">=</span> <span class="n">source_object</span> - <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'Executing copy of gs://</span><span class="si">{0}</span><span class="s1">/</span><span class="si">{1}</span><span class="s1"> to '</span> - <span class="s1">'gs://</span><span class="si">{2}</span><span class="s1">/</span><span class="si">{3}</span><span class="s1">'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> - <span class="n">source_object</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> - <span class="n">destination_object</span><span class="p">))</span> - - <span class="n">hook</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="n">source_object</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> <span class="n">destination_object</span><span class="p">)</span> + <span class="k">else</span><span class="p">:</span> + <span class="n">destination_object</span> <span class="o">=</span> <span class="n">source_object</span><span class="o">.</span><span class="n">replace</span><span class="p">(</span><span class="n">prefix</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> + <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span> + <span class="n">log_message</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="n">source_object</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> <span class="n">destination_object</span><span class="p">)</span> + <span class="p">)</span> + + <span class="n">hook</span><span class="o">.</span><span class="n">rewrite</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="n">source_object</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> <span class="n">destination_object</span><span class="p">)</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">move_object</span><span class="p">:</span> <span class="n">hook</span><span class="o">.</span><span class="n">delete</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="n">source_object</span><span class="p">)</span> <span class="k">else</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span> - <span class="s1">'Executing copy of gs://</span><span class="si">{0}</span><span class="s1">/</span><span class="si">{1}</span><span class="s1"> to '</span> - <span class="s1">'gs://</span><span class="si">{2}</span><span class="s1">/</span><span class="si">{3}</span><span class="s1">'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span> - <span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span> - <span class="p">)</span> + <span class="n">log_message</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span> <span class="ow">or</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">)</span> <span class="p">)</span> - <span class="n">hook</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">,</span> - <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span><span class="p">)</span> + <span class="n">hook</span><span class="o">.</span><span class="n">rewrite</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">,</span> + <span class="bp">self</span><span class="o">.</span><span class="n">destination_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">destination_object</span><span class="p">)</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">move_object</span><span class="p">:</span> <span class="n">hook</span><span class="o">.</span><span class="n">delete</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">source_bucket</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">source_object</span><span class="p">)</span></div> </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -316,7 +343,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -335,6 +362,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -347,19 +375,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/gcs_to_s3.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/gcs_to_s3.html b/_modules/airflow/contrib/operators/gcs_to_s3.html index 14a6549..6a0b651 100644 --- a/_modules/airflow/contrib/operators/gcs_to_s3.html +++ b/_modules/airflow/contrib/operators/gcs_to_s3.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -198,11 +188,12 @@ <span class="sd">"""</span> <span class="sd"> Synchronizes a Google Cloud Storage bucket with an S3 bucket.</span> -<span class="sd"> :param bucket: The Google Cloud Storage bucket to find the objects.</span> +<span class="sd"> :param bucket: The Google Cloud Storage bucket to find the objects. (templated)</span> <span class="sd"> :type bucket: string</span> -<span class="sd"> :param prefix: Prefix string which filters objects whose name begin with this prefix</span> +<span class="sd"> :param prefix: Prefix string which filters objects whose name begin with</span> +<span class="sd"> this prefix. (templated)</span> <span class="sd"> :type prefix: string</span> -<span class="sd"> :param delimiter: The delimiter by which you want to filter the objects.</span> +<span class="sd"> :param delimiter: The delimiter by which you want to filter the objects. (templated)</span> <span class="sd"> For e.g to lists the CSV files from in a directory in GCS you would use</span> <span class="sd"> delimiter='.csv'.</span> <span class="sd"> :type delimiter: string</span> @@ -215,7 +206,7 @@ <span class="sd"> :type delegate_to: string</span> <span class="sd"> :param dest_aws_conn_id: The destination S3 connection</span> <span class="sd"> :type dest_aws_conn_id: str</span> -<span class="sd"> :param dest_s3_key: The base S3 key to be used to store the files</span> +<span class="sd"> :param dest_s3_key: The base S3 key to be used to store the files. (templated)</span> <span class="sd"> :type dest_s3_key: str</span> <span class="sd"> """</span> <span class="n">template_fields</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'bucket'</span><span class="p">,</span> <span class="s1">'prefix'</span><span class="p">,</span> <span class="s1">'delimiter'</span><span class="p">,</span> <span class="s1">'dest_s3_key'</span><span class="p">)</span> @@ -284,9 +275,7 @@ </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -298,7 +287,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -317,6 +306,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -329,19 +319,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/hipchat_operator.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/hipchat_operator.html b/_modules/airflow/contrib/operators/hipchat_operator.html index 4f218b7..09b1eba 100644 --- a/_modules/airflow/contrib/operators/hipchat_operator.html +++ b/_modules/airflow/contrib/operators/hipchat_operator.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -253,9 +243,9 @@ <span class="sd"> Send notification to a specific HipChat room.</span> <span class="sd"> More info: https://www.hipchat.com/docs/apiv2/method/send_room_notification</span> -<span class="sd"> :param room_id: Room in which to send notification on HipChat</span> +<span class="sd"> :param room_id: Room in which to send notification on HipChat. (templated)</span> <span class="sd"> :type room_id: str</span> -<span class="sd"> :param message: The message body</span> +<span class="sd"> :param message: The message body. (templated)</span> <span class="sd"> :type message: str</span> <span class="sd"> :param frm: Label to be shown in addition to sender's name</span> <span class="sd"> :type frm: str</span> @@ -289,7 +279,7 @@ <span class="k">for</span> <span class="p">(</span><span class="n">prop</span><span class="p">,</span> <span class="n">default</span><span class="p">)</span> <span class="ow">in</span> <span class="n">default_options</span><span class="o">.</span><span class="n">items</span><span class="p">():</span> <span class="nb">setattr</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">prop</span><span class="p">,</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">prop</span><span class="p">,</span> <span class="n">default</span><span class="p">))</span> - <span class="k">def</span> <span class="nf">prepare_request</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> +<div class="viewcode-block" id="HipChatAPISendRoomNotificationOperator.prepare_request"><a class="viewcode-back" href="../../../../code.html#airflow.contrib.operators.hipchat_operator.HipChatAPISendRoomNotificationOperator.prepare_request">[docs]</a> <span class="k">def</span> <span class="nf">prepare_request</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span> <span class="n">params</span> <span class="o">=</span> <span class="p">{</span> <span class="s1">'message'</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">message</span><span class="p">,</span> <span class="s1">'message_format'</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">message_format</span><span class="p">,</span> @@ -303,13 +293,11 @@ <span class="bp">self</span><span class="o">.</span><span class="n">method</span> <span class="o">=</span> <span class="s1">'POST'</span> <span class="bp">self</span><span class="o">.</span><span class="n">url</span> <span class="o">=</span> <span class="s1">'</span><span class="si">%s</span><span class="s1">/room/</span><span class="si">%s</span><span class="s1">/notification'</span> <span class="o">%</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">base_url</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">room_id</span><span class="p">)</span> <span class="bp">self</span><span class="o">.</span><span class="n">body</span> <span class="o">=</span> <span class="n">json</span><span class="o">.</span><span class="n">dumps</span><span class="p">(</span><span class="nb">dict</span><span class="p">(</span> - <span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">k</span><span class="p">),</span> <span class="nb">str</span><span class="p">(</span><span class="n">v</span><span class="p">))</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">params</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">v</span><span class="p">))</span></div> + <span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">k</span><span class="p">),</span> <span class="nb">str</span><span class="p">(</span><span class="n">v</span><span class="p">))</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">params</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">v</span><span class="p">))</span></div></div> </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -321,7 +309,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -340,6 +328,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -352,19 +341,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/hive_to_dynamodb.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/hive_to_dynamodb.html b/_modules/airflow/contrib/operators/hive_to_dynamodb.html new file mode 100644 index 0000000..31cac1d --- /dev/null +++ b/_modules/airflow/contrib/operators/hive_to_dynamodb.html @@ -0,0 +1,327 @@ + + +<!DOCTYPE html> +<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> +<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> +<head> + <meta charset="utf-8"> + + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + + <title>airflow.contrib.operators.hive_to_dynamodb — Airflow Documentation</title> + + + + + + + + + + + + + + + + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> + + + <script src="../../../../_static/js/modernizr.min.js"></script> + +</head> + +<body class="wy-body-for-nav"> + + + <div class="wy-grid-for-nav"> + + + <nav data-toggle="wy-nav-shift" class="wy-nav-side"> + <div class="wy-side-scroll"> + <div class="wy-side-nav-search"> + + + + <a href="../../../../index.html" class="icon icon-home"> Airflow + + + + </a> + + + + + + + +<div role="search"> + <form id="rtd-search-form" class="wy-form" action="../../../../search.html" method="get"> + <input type="text" name="q" placeholder="Search docs" /> + <input type="hidden" name="check_keywords" value="yes" /> + <input type="hidden" name="area" value="default" /> + </form> +</div> + + + </div> + + <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> + + + + + + + <ul> +<li class="toctree-l1"><a class="reference internal" href="../../../../project.html">Project</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../license.html">License</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../start.html">Quick Start</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../installation.html">Installation</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../tutorial.html">Tutorial</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../howto/index.html">How-to Guides</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../ui.html">UI / Screenshots</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../concepts.html">Concepts</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../profiling.html">Data Profiling</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../cli.html">Command Line Interface</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../scheduler.html">Scheduling & Triggers</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../plugins.html">Plugins</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../security.html">Security</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../timezone.html">Time zones</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../api.html">Experimental Rest API</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../integration.html">Integration</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../lineage.html">Lineage</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../faq.html">FAQ</a></li> +<li class="toctree-l1"><a class="reference internal" href="../../../../code.html">API Reference</a></li> +</ul> + + + + </div> + </div> + </nav> + + <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> + + + <nav class="wy-nav-top" aria-label="top navigation"> + + <i data-toggle="wy-nav-top" class="fa fa-bars"></i> + <a href="../../../../index.html">Airflow</a> + + </nav> + + + <div class="wy-nav-content"> + + <div class="rst-content"> + + + + + + + + + + + + + + + + + +<div role="navigation" aria-label="breadcrumbs navigation"> + + <ul class="wy-breadcrumbs"> + + <li><a href="../../../../index.html">Docs</a> »</li> + + <li><a href="../../../index.html">Module code</a> »</li> + + <li>airflow.contrib.operators.hive_to_dynamodb</li> + + + <li class="wy-breadcrumbs-aside"> + + </li> + + </ul> + + + <hr/> +</div> + <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> + <div itemprop="articleBody"> + + <h1>Source code for airflow.contrib.operators.hive_to_dynamodb</h1><div class="highlight"><pre> +<span></span><span class="c1"># -*- coding: utf-8 -*-</span> +<span class="c1">#</span> +<span class="c1"># Licensed to the Apache Software Foundation (ASF) under one</span> +<span class="c1"># or more contributor license agreements. See the NOTICE file</span> +<span class="c1"># distributed with this work for additional information</span> +<span class="c1"># regarding copyright ownership. The ASF licenses this file</span> +<span class="c1"># to you under the Apache License, Version 2.0 (the</span> +<span class="c1"># "License"); you may not use this file except in compliance</span> +<span class="c1"># with the License. You may obtain a copy of the License at</span> +<span class="c1">#</span> +<span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> +<span class="c1">#</span> +<span class="c1"># Unless required by applicable law or agreed to in writing,</span> +<span class="c1"># software distributed under the License is distributed on an</span> +<span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> +<span class="c1"># KIND, either express or implied. See the License for the</span> +<span class="c1"># specific language governing permissions and limitations</span> +<span class="c1"># under the License.</span> + +<span class="kn">import</span> <span class="nn">json</span> + +<span class="kn">from</span> <span class="nn">airflow.contrib.hooks.aws_dynamodb_hook</span> <span class="k">import</span> <span class="n">AwsDynamoDBHook</span> +<span class="kn">from</span> <span class="nn">airflow.hooks.hive_hooks</span> <span class="k">import</span> <span class="n">HiveServer2Hook</span> +<span class="kn">from</span> <span class="nn">airflow.models</span> <span class="k">import</span> <span class="n">BaseOperator</span> +<span class="kn">from</span> <span class="nn">airflow.utils.decorators</span> <span class="k">import</span> <span class="n">apply_defaults</span> + + +<div class="viewcode-block" id="HiveToDynamoDBTransferOperator"><a class="viewcode-back" href="../../../../code.html#airflow.contrib.operators.hive_to_dynamodb.HiveToDynamoDBTransferOperator">[docs]</a><span class="k">class</span> <span class="nc">HiveToDynamoDBTransferOperator</span><span class="p">(</span><span class="n">BaseOperator</span><span class="p">):</span> + <span class="sd">"""</span> +<span class="sd"> Moves data from Hive to DynamoDB, note that for now the data is loaded</span> +<span class="sd"> into memory before being pushed to DynamoDB, so this operator should</span> +<span class="sd"> be used for smallish amount of data.</span> + +<span class="sd"> :param sql: SQL query to execute against the hive database. (templated)</span> +<span class="sd"> :type sql: str</span> +<span class="sd"> :param table_name: target DynamoDB table</span> +<span class="sd"> :type table_name: str</span> +<span class="sd"> :param table_keys: partition key and sort key</span> +<span class="sd"> :type table_keys: list</span> +<span class="sd"> :param pre_process: implement pre-processing of source data</span> +<span class="sd"> :type pre_process: function</span> +<span class="sd"> :param pre_process_args: list of pre_process function arguments</span> +<span class="sd"> :type pre_process_args: list</span> +<span class="sd"> :param pre_process_kwargs: dict of pre_process function arguments</span> +<span class="sd"> :type pre_process_kwargs: dict</span> +<span class="sd"> :param region_name: aws region name (example: us-east-1)</span> +<span class="sd"> :type region_name: str</span> +<span class="sd"> :param schema: hive database schema</span> +<span class="sd"> :type schema: str</span> +<span class="sd"> :param hiveserver2_conn_id: source hive connection</span> +<span class="sd"> :type hiveserver2_conn_id: str</span> +<span class="sd"> :param aws_conn_id: aws connection</span> +<span class="sd"> :type aws_conn_id: str</span> +<span class="sd"> """</span> + + <span class="n">template_fields</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'sql'</span><span class="p">,)</span> + <span class="n">template_ext</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'.sql'</span><span class="p">,)</span> + <span class="n">ui_color</span> <span class="o">=</span> <span class="s1">'#a0e08c'</span> + + <span class="nd">@apply_defaults</span> + <span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span> + <span class="bp">self</span><span class="p">,</span> + <span class="n">sql</span><span class="p">,</span> + <span class="n">table_name</span><span class="p">,</span> + <span class="n">table_keys</span><span class="p">,</span> + <span class="n">pre_process</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> + <span class="n">pre_process_args</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> + <span class="n">pre_process_kwargs</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> + <span class="n">region_name</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> + <span class="n">schema</span><span class="o">=</span><span class="s1">'default'</span><span class="p">,</span> + <span class="n">hiveserver2_conn_id</span><span class="o">=</span><span class="s1">'hiveserver2_default'</span><span class="p">,</span> + <span class="n">aws_conn_id</span><span class="o">=</span><span class="s1">'aws_default'</span><span class="p">,</span> + <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span> + <span class="nb">super</span><span class="p">(</span><span class="n">HiveToDynamoDBTransferOperator</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> + <span class="bp">self</span><span class="o">.</span><span class="n">sql</span> <span class="o">=</span> <span class="n">sql</span> + <span class="bp">self</span><span class="o">.</span><span class="n">table_name</span> <span class="o">=</span> <span class="n">table_name</span> + <span class="bp">self</span><span class="o">.</span><span class="n">table_keys</span> <span class="o">=</span> <span class="n">table_keys</span> + <span class="bp">self</span><span class="o">.</span><span class="n">pre_process</span> <span class="o">=</span> <span class="n">pre_process</span> + <span class="bp">self</span><span class="o">.</span><span class="n">pre_process_args</span> <span class="o">=</span> <span class="n">pre_process_args</span> + <span class="bp">self</span><span class="o">.</span><span class="n">pre_process_kwargs</span> <span class="o">=</span> <span class="n">pre_process_kwargs</span> + <span class="bp">self</span><span class="o">.</span><span class="n">region_name</span> <span class="o">=</span> <span class="n">region_name</span> + <span class="bp">self</span><span class="o">.</span><span class="n">schema</span> <span class="o">=</span> <span class="n">schema</span> + <span class="bp">self</span><span class="o">.</span><span class="n">hiveserver2_conn_id</span> <span class="o">=</span> <span class="n">hiveserver2_conn_id</span> + <span class="bp">self</span><span class="o">.</span><span class="n">aws_conn_id</span> <span class="o">=</span> <span class="n">aws_conn_id</span> + + <span class="k">def</span> <span class="nf">execute</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">context</span><span class="p">):</span> + <span class="n">hive</span> <span class="o">=</span> <span class="n">HiveServer2Hook</span><span class="p">(</span><span class="n">hiveserver2_conn_id</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">hiveserver2_conn_id</span><span class="p">)</span> + + <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'Extracting data from Hive'</span><span class="p">)</span> + <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">sql</span><span class="p">)</span> + + <span class="n">data</span> <span class="o">=</span> <span class="n">hive</span><span class="o">.</span><span class="n">get_pandas_df</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">sql</span><span class="p">,</span> <span class="n">schema</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">schema</span><span class="p">)</span> + <span class="n">dynamodb</span> <span class="o">=</span> <span class="n">AwsDynamoDBHook</span><span class="p">(</span><span class="n">aws_conn_id</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">aws_conn_id</span><span class="p">,</span> + <span class="n">table_name</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">table_name</span><span class="p">,</span> + <span class="n">table_keys</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">table_keys</span><span class="p">,</span> + <span class="n">region_name</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">region_name</span><span class="p">)</span> + + <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'Inserting rows into dynamodb'</span><span class="p">)</span> + + <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">pre_process</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span> + <span class="n">dynamodb</span><span class="o">.</span><span class="n">write_batch_data</span><span class="p">(</span> + <span class="n">json</span><span class="o">.</span><span class="n">loads</span><span class="p">(</span><span class="n">data</span><span class="o">.</span><span class="n">to_json</span><span class="p">(</span><span class="n">orient</span><span class="o">=</span><span class="s1">'records'</span><span class="p">)))</span> + <span class="k">else</span><span class="p">:</span> + <span class="n">dynamodb</span><span class="o">.</span><span class="n">write_batch_data</span><span class="p">(</span> + <span class="bp">self</span><span class="o">.</span><span class="n">pre_process</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="n">data</span><span class="p">,</span> + <span class="n">args</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">pre_process_args</span><span class="p">,</span> + <span class="n">kwargs</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">pre_process_kwargs</span><span class="p">))</span> + + <span class="bp">self</span><span class="o">.</span><span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s1">'Done.'</span><span class="p">)</span></div> +</pre></div> + + </div> + + </div> + <footer> + + + <hr/> + + <div role="contentinfo"> + <p> + + </p> + </div> + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + +</footer> + + </div> + </div> + + </section> + + </div> + + + + + + <script type="text/javascript"> + var DOCUMENTATION_OPTIONS = { + URL_ROOT:'../../../../', + VERSION:'', + LANGUAGE:'None', + COLLAPSE_INDEX:false, + FILE_SUFFIX:'.html', + HAS_SOURCE: true, + SOURCELINK_SUFFIX: '.txt' + }; + </script> + <script type="text/javascript" src="../../../../_static/jquery.js"></script> + <script type="text/javascript" src="../../../../_static/underscore.js"></script> + <script type="text/javascript" src="../../../../_static/doctools.js"></script> + + + + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> + + <script type="text/javascript"> + jQuery(function () { + SphinxRtdTheme.Navigation.enable(true); + }); + </script> + +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/jenkins_job_trigger_operator.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/jenkins_job_trigger_operator.html b/_modules/airflow/contrib/operators/jenkins_job_trigger_operator.html index 1bb3657..85c3651 100644 --- a/_modules/airflow/contrib/operators/jenkins_job_trigger_operator.html +++ b/_modules/airflow/contrib/operators/jenkins_job_trigger_operator.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -269,7 +259,7 @@ <span class="sd"> :type jenkins_connection_id: string</span> <span class="sd"> :param job_name: The name of the job to trigger</span> <span class="sd"> :type job_name: string</span> -<span class="sd"> :param parameters: The parameters block to provide to jenkins</span> +<span class="sd"> :param parameters: The parameters block to provide to jenkins. (templated)</span> <span class="sd"> :type parameters: string</span> <span class="sd"> :param sleep_time: How long will the operator sleep between each status</span> <span class="sd"> request for the job (min 1, default 10)</span> @@ -421,9 +411,7 @@ </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -435,7 +423,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -454,6 +442,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -466,19 +455,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-airflow-site/blob/7d4d7628/_modules/airflow/contrib/operators/jira_operator.html ---------------------------------------------------------------------- diff --git a/_modules/airflow/contrib/operators/jira_operator.html b/_modules/airflow/contrib/operators/jira_operator.html index 155c46d..9248a74 100644 --- a/_modules/airflow/contrib/operators/jira_operator.html +++ b/_modules/airflow/contrib/operators/jira_operator.html @@ -24,26 +24,17 @@ - - - <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> - - - - - - <link rel="index" title="Index" - href="../../../../genindex.html"/> - <link rel="search" title="Search" href="../../../../search.html"/> - <link rel="top" title="Airflow Documentation" href="../../../../index.html"/> - <link rel="up" title="Module code" href="../../../index.html"/> + <link rel="stylesheet" href="../../../../_static/css/theme.css" type="text/css" /> + <link rel="stylesheet" href="../../../../_static/pygments.css" type="text/css" /> + <link rel="index" title="Index" href="../../../../genindex.html" /> + <link rel="search" title="Search" href="../../../../search.html" /> <script src="../../../../_static/js/modernizr.min.js"></script> </head> -<body class="wy-body-for-nav" role="document"> +<body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> @@ -116,7 +107,7 @@ <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> - <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> + <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../../../../index.html">Airflow</a> @@ -124,9 +115,10 @@ </nav> - <div class="wy-nav-content"> + <div class="rst-content"> + @@ -156,8 +148,6 @@ <li class="wy-breadcrumbs-aside"> - - </li> </ul> @@ -178,9 +168,9 @@ <span class="c1"># to you under the Apache License, Version 2.0 (the</span> <span class="c1"># "License"); you may not use this file except in compliance</span> <span class="c1"># with the License. You may obtain a copy of the License at</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># http://www.apache.org/licenses/LICENSE-2.0</span> -<span class="c1"># </span> +<span class="c1">#</span> <span class="c1"># Unless required by applicable law or agreed to in writing,</span> <span class="c1"># software distributed under the License is distributed on an</span> <span class="c1"># "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span> @@ -205,7 +195,7 @@ <span class="sd"> :type jira_conn_id: str</span> <span class="sd"> :param jira_method: method name from Jira Python SDK to be called</span> <span class="sd"> :type jira_method: str</span> -<span class="sd"> :param jira_method_args: required method parameters for the jira_method</span> +<span class="sd"> :param jira_method_args: required method parameters for the jira_method. (templated)</span> <span class="sd"> :type jira_method_args: dict</span> <span class="sd"> :param result_processor: function to further process the response from Jira</span> <span class="sd"> :type result_processor: function</span> @@ -266,9 +256,7 @@ </pre></div> </div> - <div class="articleComments"> - - </div> + </div> <footer> @@ -280,7 +268,7 @@ </p> </div> - Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. + Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> @@ -299,6 +287,7 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT:'../../../../', VERSION:'', + LANGUAGE:'None', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true, @@ -311,19 +300,13 @@ - - - <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - + <script type="text/javascript" src="../../../../_static/js/theme.js"></script> - - <script type="text/javascript"> jQuery(function () { - SphinxRtdTheme.StickyNav.enable(); + SphinxRtdTheme.Navigation.enable(true); }); - </script> - + </script> </body> </html> \ No newline at end of file