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.
Tobacco package QR code sample photographed for the thesis project
Thesis Real-Photo Inputimage/jpeg · QR target
  1. 01SCANCigarette Pack Image
  2. 02DECODEOpenCV
  3. 03VERIFYSHA-256
  4. 04REPLICATEHDFS × 2
  5. 05QUERYHive / PyHive
2.9.2 Hadoop 3.1.2 Hive 3 nodes 1 Master, 2 Slaves

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

READY

Browser simulation environment · Not connected to a real Hadoop / Hive cluster

SESSION / LOCAL STORAGE SHA-256 / WEB CRYPTO NO SERVER WRITE
H
Namenode informationHadoop 2.9.2 · hadoop1
Simulated interface, not connected to a real cluster
ACTIVEhttp://192.168.18.128:50070/dfshealth.html#tab-overviewNameNode · hadoop1
Hadoop

Overview 'hadoop1:9000' (active)

Figure 5-5 data snapshot
Started:Sun May 26 11:07:48 +0800 2024
Version:2.9.2, r826afbeae31ca687bc2f8471dc841b66ed2c6704
Compiled:2018-11-13T12:14Z by root from release-2.9.2
Cluster ID:CID-cc311286-df01-4af0-81b1-a5e8a7e17652
Block Pool ID:BP-2028085156-192.168.18.128-1713836792385

Summary

Security is off.

Safemode is off.

610 files and directories, 192 blocks = 802 total filesystem object(s).

Configured Capacity:53.09 GiB
DFS Used:25.38 MiB (0.05%)
Non DFS Used:6.12 GiB
DFS Remaining:46.94 GiB (88.42%)
Block Pool Used:25.38 MiB (0.05%)
DataNodes usages% (Min/Median/Max/stdDev):0.04% / 0.05% / 0.07% / 0.01%
3 (Decommissioned: 0)
Dead Nodes0 (Decommissioned: 0)
Total Datanode Volume Failures0 (0 B)
Number of Under-Replicated Blocks0
Hadoop, 2018.
Y
ResourceManagerHadoop 2.9.2 · hadoop1
Simulated interface, not connected to a real cluster
STARTEDhttp://192.168.18.128:8088/cluster/clusterResourceManager · hadoop1

ResourceManager

Logged in as: dr.who

Cluster Metrics

Apps SubmittedApps PendingApps RunningApps CompletedContainers RunningMemory UsedMemory TotalVCores UsedVCores TotalActive NodesUnhealthy Nodes
13011222 GiB24 GiB22430

Cluster Overview

Cluster ID:1716710801674
ResourceManager state:STARTED
ResourceManager HA state:ACTIVE
ResourceManager started on:Sun May 26 11:06:41 +0800 2024
ResourceManager version:2.9.2 from 826afbeae31ca687bc2f8471dc841b66ed2c6704
Hadoop common version:2.9.2
Scheduler type:Capacity Scheduler
Hadoop 2.9.2 · ResourceManager at hadoop1
HV
HiveServer2Apache Hive 3.1.2 · hadoop1
Simulated interface, not connected to a real cluster
STARTEDhttp://192.168.18.128:10002/Web UI 10002 · PyHive Thrift 10000
Apache Hive

HiveServer2

Active Sessions

User NameIP AddressOperation CountActive Time (s)Idle Time (s)
admin192.168.18.12819,4828
sutao192.168.18.13107,024134
analytics192.168.18.12815,1050
Total number of sessions: 3

Open Queries

User NameQueryExecution EngineStateOpened TimestampOpened (s)Latency (s)Drilldown Link
analyticsSELECT user, COUNT(*) FROM scans GROUP BY usermrRUNNINGSun May 26 10:02:41 CST 202412Not finishedDrilldown
Total number of queries: 1

Last Max 25 Closed Queries

User NameQueryExecution EngineStateOpened (s)Closed TimestampLatency (s)Drilldown Link
adminSELECT id, COUNT(*) FROM sutao GROUP BY idmrFINISHED2Sun May 26 09:42:51 CST 20241Drilldown
liuchaoSELECT * FROM liuchao ORDER BY date DESC LIMIT 20mrFINISHED1Sun May 26 09:35:18 CST 20240Drilldown
Total number of queries: 2

Software Attributes

Attribute NameValueDescription
Hive Version3.1.2Hive version and revision
Hive Compiled2020-08-24, rootWhen Hive was compiled and by whom
HiveServer2 Start TimeFri May 24 19:48:12 CST 2024Date stamp of when this HiveServer2 was started
Thrift Servicehadoop1:10000PyHive / Beeline connection endpoint
Apache Hive 3.1.2 · HiveServer2 Web UI

USER MANAGEMENT

Confirm user deletion?

This will delete and its simulated scan data. This action only affects demo data in the current browser.