This project was Intended to create a Secure "PIG" query execution engine under the Hadoop Environment . We used XACML implementation with minor changes to implement Role Based Access control to the files stored in the Haddop File System . A User Interface was provided to enter PIG queries which are parsed and if the user has access to all the resources needed by the query , only then is the query executed.