forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change spark connection form and add spark connections docs (apache#3…
…6419) * change spark connection form and add spark connections docs * make SQL letter upercase in spark-sql connection header * rename from spark to spark-submit and add default values in connection form
- Loading branch information
Showing
11 changed files
with
214 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
docs/apache-airflow-providers-apache-spark/connections/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. 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. | ||
Apache Spark Connections | ||
======================== | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
* |
54 changes: 54 additions & 0 deletions
54
docs/apache-airflow-providers-apache-spark/connections/spark-connect.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.. 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. | ||
.. _howto/connection:spark-connect: | ||
|
||
Apache Spark Connect Connection | ||
=============================== | ||
|
||
The Apache Spark Connect connection type enables connection to Apache Spark via the Spark connect interface. | ||
|
||
Default Connection IDs | ||
---------------------- | ||
|
||
The Spark Connect hook uses ``spark_connect_default`` by default. | ||
|
||
Configuring the Connection | ||
-------------------------- | ||
Host (required) | ||
The host to connect to, should be a valid hostname. | ||
|
||
Port (optional) | ||
Specify the port in case of host be an URL. | ||
|
||
User ID (optional, only applies to Spark Connect) | ||
The user ID to authenticate with the proxy. | ||
|
||
Token (optional, only applies to Spark Connect) | ||
The token to authenticate with the proxy. | ||
|
||
Use SSL (optional, only applies to Spark Connect) | ||
Whether to use SSL when connecting. | ||
|
||
.. warning:: | ||
|
||
Make sure you trust your users with the ability to configure the host settings as it may enable the connection to | ||
establish communication with external servers. It's crucial to understand that directing the connection towards a | ||
malicious server can lead to significant security vulnerabilities, including the risk of encountering | ||
Remote Code Execution (RCE) attacks. |
48 changes: 48 additions & 0 deletions
48
docs/apache-airflow-providers-apache-spark/connections/spark-sql.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.. 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. | ||
.. _howto/connection:spark-sql: | ||
|
||
Apache Spark SQL Connection | ||
=========================== | ||
|
||
The Apache Spark SQL connection type enables connection to Apache Spark via the ``spark-sql`` command. | ||
|
||
Default Connection IDs | ||
---------------------- | ||
|
||
SparkSqlHook uses ``spark_sql_default`` by default. | ||
|
||
Configuring the Connection | ||
-------------------------- | ||
Host (required) | ||
The host to connect to, it can be ``local``, ``yarn`` or an URL. | ||
|
||
Port (optional) | ||
Specify the port in case of host be an URL. | ||
|
||
YARN Queue | ||
The name of the YARN queue to which the application is submitted. | ||
|
||
.. warning:: | ||
|
||
Make sure you trust your users with the ability to configure the host settings as it may enable the connection to | ||
establish communication with external servers. It's crucial to understand that directing the connection towards a | ||
malicious server can lead to significant security vulnerabilities, including the risk of encountering | ||
Remote Code Execution (RCE) attacks. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters