Distributed Storage Platform for Tobacco Control System
Hive Tobacco Control · Thesis Simulation
3-Node Simulated Online
Not a Real Cluster
THESIS RUNTIME / 2024
TRACE 0001 · READY
DISTRIBUTED STORAGE / Thesis System Reproduction
Turn a single scan,into a verifiable data trail. From cigarette pack QR code to Hive user table, reproduce collection, decoding, deduplication, dual-replica storage, and querying entirely in the browser.
image/jpeg · QR target- 01SCANCigarette Pack Image
- 02DECODEOpenCV
- 03VERIFYSHA-256
- 04REPLICATEHDFS × 2
- 05QUERYHive / PyHive
Front-end interactive demo; does not connect to real Hadoop/Hive services
Design of a Distributed Storage Platform for a Hive-Based Tobacco Control System
Enter the simulated workbench to manually complete a tobacco product scan registration and trace how data flows into HDFS and Hive.
Start Simulated Session
LOCAL BROWSER STATE
Browser simulation environment · Not connected to a real Hadoop / Hive cluster
SESSION / LOCAL STORAGE
SHA-256 / WEB CRYPTO
NO SERVER WRITE
Tobacco Control Workbench
INGESTApache / PHP
DECODEOpenCV
VERIFYSHA-256
STOREHDFS × 2
QUERYHive 3.1.2
Welcome to the Tobacco Control System
Upload a cigarette pack QR code image to register; view your personal data under "My Scans." Admins can view global statistics and manage users.
Personal Information
- Username
- admin
- Account Type
- Administrator
Recent Registrations
Upload Cigarette Pack QR Code Image
Paper Data Processing Pipeline
- 1PHP Image ReceptionFormat Validation, Timestamp Naming
- 2OpenCV DecodingPython QR Content Recognition
- 3Hash DeduplicationCheck Code and Hash Existence
- 4CSV Upload to HDFSWrite User-Specific Data Files
- 5LOAD DATA into HiveFields: id / code / hash / date / user
Recent Recognition Results
My Scan Data
| ID / Tobacco name | Code / QR content | Hash | Date | User | Status |
|---|
Tobacco types and date statistics
Current ScopeAll users
Total Scans0
Tobacco Types0
Coverage Date0
Tobacco Types and Quantities
0
Scan Date Distribution
User Management
Three-Node Deployment Topology from the Paper
- HDFS
- NameNode · DataNode
- YARN
- ResourceManager · NodeManager
- Data Service
- HiveServer2 · MySQL Metastore
- HDFS
- DataNode
- YARN
- NodeManager
- YARN Resources
- 8 vCores · 8 GiB
- HDFS
- DataNode
- YARN
- NodeManager
- YARN Resources
- 8 vCores · 8 GiB
Paper Configuration Mapping
fs.defaultFShdfs://hadoop1:9000NameNode Entry Point
dfs.replication2HDFS Dual Replication
HiveServer210000PyHive Connection Port
Web Console50070 / 8088HDFS / YARN