pan3793 commented on code in PR #7667: URL: https://github.com/apache/kyuubi/pull/7667#discussion_r3893199877
########## docs/connector/spark/hive.md: ########## @@ -0,0 +1,172 @@ +<!-- +- 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. +--> + +# Hive + +You may know that the Apache Spark has built-in support for accessing Hive tables, it works well in most cases, +but is limited to one Hive Metastore. The Kyuubi Spark Hive connector (KSHC) implements a Hive connector based +on Spark DataSource V2 API, supports accessing multiple Hive Metastore in a single Spark application. + +## Hive Integration + +To enable the integration of Kyuubi Spark SQL engine and Hive connector through +Spark DataSource V2 API, you need to: + +- Referencing the Hive connector [dependencies](#kshc-dependencies) +- Setting the Spark catalog [configurations](#kshc-configurations) + +(kshc-dependencies)= + +### Dependencies + +The **classpath** of Kyuubi Spark SQL engine with Hive connector supported consists of + +1. kyuubi-spark-sql-engine-{{ release }}_2.12.jar, the engine jar deployed with a Kyuubi distribution +2. a copy of Spark distribution +3. kyuubi-spark-connector-hive_2.12-{{ release }}, which can be found in the [Maven Central](https://mvnrepository.com/artifact/org.apache.kyuubi/kyuubi-spark-connector-hive) Review Comment: ```suggestion 1. kyuubi-spark-sql-engine_2.12-{{ release }}.jar, the engine jar deployed with a Kyuubi distribution 2. a copy of Spark distribution 3. kyuubi-spark-connector-hive_2.12-{{ release }}.jar, which can be found in the [Maven Central](https://mvnrepository.com/artifact/org.apache.kyuubi/kyuubi-spark-connector-hive) ``` ########## docs/connector/spark/hive.md: ########## @@ -0,0 +1,172 @@ +<!-- +- 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. +--> + +# Hive + +You may know that the Apache Spark has built-in support for accessing Hive tables, it works well in most cases, +but is limited to one Hive Metastore. The Kyuubi Spark Hive connector (KSHC) implements a Hive connector based +on Spark DataSource V2 API, supports accessing multiple Hive Metastore in a single Spark application. + +## Hive Integration + +To enable the integration of Kyuubi Spark SQL engine and Hive connector through +Spark DataSource V2 API, you need to: + +- Referencing the Hive connector [dependencies](#kshc-dependencies) +- Setting the Spark catalog [configurations](#kshc-configurations) + +(kshc-dependencies)= + +### Dependencies + +The **classpath** of Kyuubi Spark SQL engine with Hive connector supported consists of + +1. kyuubi-spark-sql-engine-{{ release }}_2.12.jar, the engine jar deployed with a Kyuubi distribution +2. a copy of Spark distribution +3. kyuubi-spark-connector-hive_2.12-{{ release }}, which can be found in the [Maven Central](https://mvnrepository.com/artifact/org.apache.kyuubi/kyuubi-spark-connector-hive) + +In order to make the Hive connector packages visible for the runtime classpath of engines, we can use one of these methods: + +1. Put the Kyuubi Hive connector packages into `$SPARK_HOME/jars` directly +2. Set `spark.jars=/path/to/kyuubi-hive-connector` Review Comment: ```suggestion 2. Set `spark.jars=/path/to/kyuubi-spark-connector-hive_2.12-<version>.jar` ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
