Skip to content

Instantly share code, notes, and snippets.

@bcajes
bcajes / acl.md
Created June 23, 2017 14:58 — forked from sameeragarwal/acl.md
SQL ACLs in Databricks

SQL ACLs in Databricks

We support fine-grained access control via the SparkSQL interface in Databricks. In this context, access can be restricted on any securable objects, e.g. tables, views, databases or functions. Fine-grained level access control (i.e. on rows or columns matching specific conditions) can be accomplished via access control on derived views that can contain arbitrary queries. These access control policies are enforced by the SQL query analyzer at runtime. Fine-grained access control can be enabled on a Databricks Spark 2.1+ cluster by setting a custom spark config on the cluster creation page:

spark.databricks.acl.enabled true

Privileges

@bcajes
bcajes / install_tensorflow_on_ec2_g2.sh
Last active July 10, 2016 01:56 — forked from nobuf/install_tensorflow_on_ec2_g2.sh
Install TensorFlow 0.8 GPU enabled on Ubuntu 14.04 EC2 g2.2xlarge
# you need to sign-up https://developer.nvidia.com/rdp/cudnn-download
#scp cudnn-7.0-linux-x64-v4.0-prod.tgz ubuntu@your-ec2-instance:~/
#ssh ubuntu@your-ec2-instance
wget <DOWNLOAD_URL>/cudnn-7.0-linux-x64-v4.0-prod.tgz
curl -O http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
# see http://tleyden.github.io/blog/2015/11/22/cuda-7-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
sudo apt-get install -y linux-image-extra-`uname -r` linux-head