spark-authorizer (homepage)

An Rule of Optimization which provides SQL Standard Authorization for Apache Spark

@yaooqinn / (2)

Spark Authorizer provides you with SQL Standard Based Authorization for Apache Spark like SQL Standard Based Hive Authorization. While you are using Spark SQL or Dataset/DataFrame API to load data from tables embedded with Apache Hive metastore, this library provides row/column level fine-grained access controls with Apache Ranger.
Security is one of fundamental features for enterprise adoption. Apache Ranger offers many security plugins for many Hadoop ecosystem components, such as HDFS, Hive, HBase, Solr and Sqoop2. However, Apache Spark is not counted in yet. When a secured HDFS cluster is used as a data warehouse accessed by various users and groups via different applications wrote by Spark and Hive, it is very difficult to guarantee data management in a consistent way. Apache Spark users visit data warehouse only with Storage based access controls offered by HDFS. This library shares Ranger Hive plugin with Hive to help Spark talking to Ranger Admin.


  • 1|sql
  • 1|hive
  • 1|authorization
  • 1|ranger

How to

Include this package in your Spark Applications using:

spark-shell, pyspark, or spark-submit

> $SPARK_HOME/bin/spark-shell --packages yaooqinn:spark-authorizer:1.0.0.spark2.1


If you use the sbt-spark-package plugin, in your sbt build file, add:

spDependencies += "yaooqinn/spark-authorizer:1.0.0.spark2.1"


resolvers += "Spark Packages Repo" at ""

libraryDependencies += "yaooqinn" % "spark-authorizer" % "1.0.0.spark2.1"


In your pom.xml, add:
  <!-- list of dependencies -->
  <!-- list of other repositories -->


Version: 1.0.0.spark2.1 ( 8d6163 | zip | jar ) / Date: 2017-12-15 / License: Apache-2.0

Version: 1.0.0.spark2.2 ( 4a9fd1 | zip | jar ) / Date: 2017-12-15 / License: Apache-2.0