RMT-HBase: A Distributed Framework for Trajectory Storage and Query

Cheng Yang, Jiamin Lu, Jun Feng, Dingsheng Li, S Nishimura, S Das, D, X Chen, C Zhang, B Ge, L Zhang, P Cudr -Mauroux, E Wu, S Madden, S Ranu, P Deepak, A Telang, K Zheng, B Zheng, J Xu, G Trajcevski, X Zhou, X Wang, X Ding, A Tung, S Shang, N Yuan, A Eldawy, M Mokbel, D Xie, F Li, B Yao, D Shen, J Fang, Y Han, Y Wu, X Tang, N Zhang, G Zheng, H Chen, D Zhang, C Xie, T Pei, N Du, J Zhan, M Zhao, L Van, A Takasu, T BrinkhoffProceedings of 2020 the 10th International Workshop on Computer Science and Engineering 2020

Abstract

The rapid development of science and technology has resulted in smartphones, global positioning systems and location-based services becoming immensely popular. Massive amounts of trajectory data from mobile objects have been applied in many domains. Many related trajectory storage methods based on HBase focus on design of Rowkey to adapt to different scenarios, don't fully use the unique index META table of HBase. In this paper, we propose a distributed framework RMT-HBase to support efficient trajectory storage and query processing. We redesign both the upper and lower index structure of HBase to optimize the storage of trajectory data. To improve the query efficiency of spatial-temporal data, we design three kinds of trajectory query algorithms. We compare the spatial-temporal data query performance of RMT-HBase with the RM-HBase on synthetic datasets, and experimental results show that the RMT-HBase outperforms the RM-HBase for the same query.

Introduction

As GPS and location-based services (LBS) proliferate, the volume of trajectory data—sequences of timestamps and coordinates—has exploded. Storing this data in distributed databases like HBase is common, but standard implementations face two major hurdles. First, the "Dead-Space" problem: traditional spatial indexes often divide maps into equal-sized grids, but in road networks, mobile objects are concentrated on streets, leaving vast empty areas that consume index resources. Second, inefficient indexing: most HBase-based solutions focus solely on the RowKey design and fail to utilize the database's internal META table effectively, often forcing queries to broadcast to every region server in a cluster.

The RMT-HBase Framework

RMT-HBase introduces a two-pronged redesign of HBase's architecture to address these inefficiencies. The framework is divided into two primary modules: Spatial-temporal Data Storage and Trajectory Query processing.

The high-level architecture of RMT-HBase, showing the storage redesign and query modules.

Upper Structure Redesign (The META Table)

The most significant innovation in RMT-HBase is the utilization of the HBase META table to prune the search space before a query reaches the data nodes. The system implements a two-level index within the META table:

  • Spatial Level: It uses an RN-tree, which partitions space based on actual road segments rather than arbitrary grids, eliminating the dead-space issue.
  • Temporal Level: Time is divided into one-hour segments.

By storing these mappings in the META table, the system can pinpoint exactly which HRegionServer holds the data for a specific time and place, avoiding unnecessary cluster-wide scans.

Detailed view of the indexing structure mapping space and time segments to specific Region Servers.

Lower Structure Redesign (The RowKey)

The RowKey is the primary way HBase sorts data on disk. RMT-HBase uses a specific formula: RowKey = oid (Object ID) + T (Time) + rid (Road Segment ID). This design ensures that data is stored in a "trajectory format"—lexically sorted by object and then by time—which allows for extremely fast sequential reads during trajectory reconstruction.

Query Algorithms

The framework introduces three optimized algorithms to handle common spatio-temporal requests:

  1. Object-time-based: Finds the path of a specific vehicle over a time range.
  2. Space-time-based: Finds all vehicles within a specific rectangular area and time window.
  3. Time-based: Retrieves all movement data for the entire network within a specific period.

Experimental Evaluation

The researchers evaluated the system using a synthetic trajectory dataset generated by the Thomas Brinkhoff road network generator, modeled on Oldenburg city (830,000 road segments). The data volume ranged from 40GB to 320GB to test scalability.

In head-to-head comparisons with RM-HBase, RMT-HBase showed superior performance. As data volume increased, the query time for RMT-HBase grew much more slowly than the baseline. For space-time queries, RMT-HBase maintained a significant lead even as the query window size increased. The efficiency gains are primarily attributed to the system's ability to contact only the specific HRegionServers relevant to a query's time slice, whereas RM-HBase is often forced to query all regions.

Conclusion

RMT-HBase demonstrates that redesigning internal database indexing structures to be road-network-aware and temporally partitioned can significantly enhance the performance of trajectory data management. Future work may explore dynamic temporal granularity and adapting the RN-tree for non-constrained "free-moving" objects like aircraft or hikers.

Summary updated

BibTeX
@inproceedings{yang2020rmt,
  author = {Cheng Yang and Jiamin Lu and Jun Feng and Dingsheng Li and S Nishimura and S Das and D and X Chen and C Zhang and B Ge and J Feng and D Li and J Lu and L Zhang and P Cudr -Mauroux and E Wu and S Madden and S Ranu and P Deepak and A Telang and K Zheng and B Zheng and J Xu and K Zheng and G Trajcevski and X Zhou and X Wang and X Ding and A Tung and K Zheng and S Shang and N Yuan and B Zheng and N Yuan and K Zheng and A Eldawy and M Mokbel and D Xie and F Li and B Yao and D Shen and J Fang and Y Han and Y Wu and X Tang and N Zhang and G Zheng and H Chen and X Chen and C Zhang and B Ge and D Zhang and C Xie and T Pei and N Du and J Zhan and M Zhao and L Van and A Takasu and T Brinkhoff},
  title = {{RMT-HBase: A Distributed Framework for Trajectory Storage and Query}},
  booktitle = {Proceedings of 2020 the 10th International Workshop on Computer Science and Engineering},
  year = {2020},
  doi = {10.18178/wcse.2020.06.071},
}
Figure