Abstract
As organizations increasingly rely on cloud-based distributed storage for massive datasets, the challenge of maintaining fine-grained security becomes paramount. This paper presents a web-based system architecture that integrates Apache Hive and Hadoop with XACML policy-based access control. By introducing a dedicated security layer, the system enables secure, multi-tenant data sharing and querying without the "all-or-nothing" limitations of traditional cloud infrastructure security.
Introduction
The early 2010s witnessed a massive "data explosion" driven by social networks and e-commerce. While this data holds immense value for collaborative analysis, sharing it across organizational boundaries presents significant hurdles. Primary among these are the prohibitive costs of managing petabyte-scale storage and the lack of granular security controls in emerging cloud platforms like Hadoop. At the time, infrastructure-level security was often binary, lacking the precision to define access at the table or view level for specific users across different organizations.
This research addresses the need for fine-grained access control within distributed cloud environments, allowing administrators to manage permissions with high specificity.
System Architecture and Methodology
The proposed solution, termed Hive Access Control, is a multi-layered architecture designed to decouple security logic from the underlying storage infrastructure.
The stack is organized into four primary layers:
- Storage Layer: Utilizes the Hadoop Distributed File System (HDFS) for scalable, distributed data storage.
- Data Warehouse Layer: Employs Apache Hive to impose a relational structure (tables and views) over raw HDFS data, enabling SQL-like querying via HiveQL.
- Access Control Layer: This core innovation integrates the eXtensible Access Control Markup Language (XACML). It features an "XACML Policy Builder" for defining complex, attribute-based rules and an "Evaluator" that validates user permissions before query execution.
- Parsing and Rewriting Layer: To bridge standard SQL and HiveQL, the system implements a ZQL Parser and a query rewriting engine. This allows users to interact with the system using familiar SQL syntax, which is then translated into HiveQL while simultaneously enforcing XACML-defined access rights.
Experimental Evaluation
The system was evaluated using two distinct datasets to assess performance across different scales and query complexities:
- Freebase Dataset: A subset of structured data related to people, business, and film (up to 1.67 million tuples) was used to measure data loading times and basic selection queries.
- TPC-H Benchmark: This industry-standard benchmark for decision support systems was used to evaluate complex analytical queries involving JOINs and aggregations on datasets ranging from 1GB to 1000GB.
Results and Discussion
The evaluation revealed a trade-off between security granularity and performance, often referred to as the "security tax."
Performance Overhead
As shown in Figure 4(a), the system experiences a measurable overhead during the data loading phase. For a dataset of 1.67 million tuples, the web application required approximately 25 seconds, compared to 17 seconds for native Hive—a 47% increase. This overhead is primarily attributed to the computational cost of establishing database connections and generating XACML policies dynamically during the "CREATE and LOAD" process.
Query Efficiency
Interestingly, for simple "SELECT *" queries (Figure 4(b)), the web application outperformed the native Hive CLI. This improvement is due to the implementation of a paging mechanism that loads only 100 rows at a time, enhancing the perceived responsiveness for the end-user.
For complex analytical queries (TPC-H), the performance was nearly identical to native Hive. For instance, a heavy query (Q6) on a 1000GB dataset took approximately 6,240 seconds on both systems. This demonstrates that once the initial policy evaluation is complete, the security layer does not act as a bottleneck for large-scale distributed processing.
Conclusion and Future Work
The Hive Access Control system successfully demonstrates that fine-grained security can be integrated into cloud storage environments by abstracting security logic into a dedicated layer. This approach ensures portability across different cloud providers and provides a familiar SQL interface for users.
Future research will focus on expanding SQL keyword support (e.g., DROP, DESCRIBE), implementing more robust multi-factor authentication, and testing the system in public cloud environments like AWS and Azure to evaluate the impact of network latency on XACML evaluation. Additionally, the authors aim to optimize the query rewriting engine using materialized views to further improve performance for repetitive, complex analytical tasks.
Summary updated