Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yikf committed Oct 19, 2023
1 parent 695133d commit d2f7ea8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/security/authorization/spark/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ After a while, if everything goes well, you will get the plugin finally in two p
- The main plugin jar, which is under `./extensions/spark/kyuubi-spark-authz/target/kyuubi-spark-authz_${scala.binary.version}-${project.version}.jar`
- The least transitive dependencies needed, which are under `./extensions/spark/kyuubi-spark-authz/target/scala-${scala.binary.version}/jars`

## Build bundle jar with Apache Maven
## Build shaded jar with Apache Maven

Apache Kyuubi also provides the bundle jar for the Spark AuthZ plugin, You can run the AuthZ plugin using just a bundle jar without the additional dependency of jars,
Apache Kyuubi also provides the shaded jar for the Spark AuthZ plugin, You can run the AuthZ plugin using just a shaded jar without the additional dependency of jars,
To build it, `cd` to the root direct of kyuubi project and run:

```shell
build/mvn clean package -pl :kyuubi-spark-authz-bundle_2.12 -DskipTests -am
build/mvn clean package -pl :kyuubi-spark-authz-shaded_2.12 -DskipTests -am
```

After a while, if everything goes well, you will get the plugin finally:

- The bundle authZ plugin jar, which is under `./extensions/spark/kyuubi-spark-authz-bundle/target/kyuubi-spark-authz_${scala.binary.version}-bundle-${project.version}.jar`
- The shaded AuthZ plugin jar, which is under `./extensions/spark/kyuubi-spark-authz-shaded/target/kyuubi-spark-authz-shaded_${scala.binary.version}-${project.version}.jar`

### Build against Different Apache Spark Versions

Expand Down
2 changes: 1 addition & 1 deletion docs/security/authorization/spark/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

## Install

Use either the bundle jar `kyuubi-spark-authz-bundle_*.jar` or the `kyuubi-spark-authz_*.jar` with its transitive dependencies available for spark runtime classpath, such as
Use either the shaded jar `kyuubi-spark-authz-shaded_*.jar` or the `kyuubi-spark-authz_*.jar` with its transitive dependencies available for spark runtime classpath, such as
- Copied to `$SPARK_HOME/jars`, or
- Specified to `spark.jars` configuration

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
<relativePath>../../../pom.xml</relativePath>
</parent>

<artifactId>kyuubi-spark-authz-bundle_${scala.binary.version}</artifactId>
<artifactId>kyuubi-spark-authz-shaded_${scala.binary.version}</artifactId>
<packaging>jar</packaging>
<name>Kyuubi Dev Spark Authorization Extension Bundle</name>
<name>Kyuubi Dev Spark Authorization Extension Shaded</name>
<url>https://kyuubi.apache.org/</url>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<module>extensions/server/kyuubi-server-plugin</module>
<module>extensions/spark/kyuubi-extension-spark-jdbc-dialect</module>
<module>extensions/spark/kyuubi-spark-authz</module>
<module>extensions/spark/kyuubi-spark-authz-bundle</module>
<module>extensions/spark/kyuubi-spark-authz-shaded</module>
<module>extensions/spark/kyuubi-spark-connector-common</module>
<module>extensions/spark/kyuubi-spark-connector-tpcds</module>
<module>extensions/spark/kyuubi-spark-connector-tpch</module>
Expand Down

0 comments on commit d2f7ea8

Please sign in to comment.