http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3/bk_reference/content/reference_chap9_2.html