commit | 6261c57be8df66d5f3fc3ccdaa15f8c4e1989d1d | [log] [tgz] |
---|---|---|
author | BoneAn <anhui@oppo.com> | Thu Nov 14 09:51:48 2019 +0800 |
committer | jerryshao <jerryshao@tencent.com> | Thu Nov 14 09:51:48 2019 +0800 |
tree | 295d6f848606b9fe4c2d373ac5ebb651ca9fb00a | |
parent | 7847c3fe8309dfd2d2089dac68044603745a3499 [diff] |
[LIVY-707] Add audit log for SqlJobs from ThriftServer ## What changes were proposed in this pull request? We should add audit logs in thriftServer for admin to easily to manage operations, ## How was this patch tested? An audit log example showed below, ``` 19/11/06 16:38:30 INFO ThriftServerAudit$: user: test ipAddress: 10.25.22.46 query: select count(*) from test1 beforeExecute: 1573029416951 afterExecute: 1573029510972 time spent: 94021 ``` Author: BoneAn <anhui@oppo.com> Closes #255 from huianyi/LIVY-707.
Apache Livy is an open source REST interface for interacting with Apache Spark from anywhere. It supports executing snippets of code or programs in a Spark context that runs locally or in Apache Hadoop YARN.
Pull requests are welcomed! But before you begin, please check out the Contributing section on the Community page of our website.
Guides and documentation on getting started using Livy, example code snippets, and Livy API documentation can be found at livy.incubator.apache.org.
To build Livy, you will need:
Debian/Ubuntu:
maven
package or maven3 tarball)Redhat/CentOS:
maven
package or maven3 tarball)MacOS:
Required python packages for building Livy:
To run Livy, you will also need a Spark installation. You can get Spark releases at https://spark.apache.org/downloads.html.
Livy requires Spark 2.2+. You can switch to a different version of Spark by setting the SPARK_HOME
environment variable in the Livy server process, without needing to rebuild Livy.
Livy is built using Apache Maven. To check out and build Livy, run:
git clone https://github.com/apache/incubator-livy.git cd incubator-livy mvn package
By default Livy is built against Apache Spark 2.2.0, but the version of Spark used when running Livy does not need to match the version used to build Livy. Livy internally handles the differences between different Spark versions.
The Livy package itself does not contain a Spark distribution. It will work with any supported version of Spark without needing to rebuild.