Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Help Center/ MapReduce Service/ User Guide (ME-Abu Dhabi Region)/ FAQs/ Big Data Service Development/ How Do I View the Hive Table Created by Another User?

How Do I View the Hive Table Created by Another User?

Updated on 2022-12-08 GMT+08:00

Versions earlier than MRS 3.x:

  1. Log in to MRS Manager and choose System > Permission > Manage Role.
  2. Click Create Role, and set Role Name and Description.
  3. In the Permission table, choose Hive > Hive Read Write Privileges.
  4. In the database list, click the name of the database where the table created by user B is stored. The table is displayed.
  5. In the Permission column of the table created by user B, select SELECT.
  6. Click OK, and return to the Role page.
  7. Choose System > Manage User. Locate the row containing user A, click Modify to bind the new role to user A, and click OK. After about 5 minutes, user A can access the table created by user B.

MRS 3.x or later:

  1. Log in to FusionInsight Manager and choose Cluster > Services. On the page that is displayed, choose Hive. On the displayed page, choose More, and check whether Enable Ranger is grayed out.
    • If yes, go to 9.
    • If no, perform 2 to 8.
  2. Log in to FusionInsight Manager and choose System > Permission > Role.
  3. Click Create Role, and set Role Name and Description.
  4. In the Configure Resource Permission table, choose Name of the desired cluster > Hive > Hive Read Write Privileges.
  5. In the database list, click the name of the database where the table created by user B is stored. The table is displayed.
  6. In the Permission column of the table created by user B, select Select.
  7. Click OK, and return to the Role page.
  8. Choose Permission > User. On the Local User page that is displayed, locate the row containing user A, click Modify in the Operation column to bind the new role to user A, and click OK. After about 5 minutes, user A can access the table created by user B.
  9. Perform the following steps to add the Ranger access permission policy of Hive:
    1. Log in to FusionInsight Manager as a Hive administrator and choose Cluster > Services. On the page that is displayed, choose Ranger. On the displayed page, click the URL next to Ranger WebUI to go to the Ranger management page.
    2. On the home page, click the component plug-in name in the HADOOP SQL area, for example, Hive.
    3. On the Access tab page, click Add New Policy to add a Hive permission control policy.
    4. In the Create Policy dialog box that is displayed, set the following parameters:
      • Policy Name: Enter a policy name, for example, table_test_hive.
      • database: Enter or select the database where the table created by user B is stored, for example, default.
      • table: Enter or select the table created by user B, for example, test.
      • column: Enter and select a column, for example, *.
      • In the Allow Conditions area, click Select User, select user A, click Add Permissions, and select select.
      • Click Add.
  10. Perform the following steps to add the Ranger access permission policy of HDFS:
    1. Log in to FusionInsight Manager as user rangeradmin and choose Cluster > Services. On the page that is displayed, choose Ranger. On the displayed page, click the URL next to Ranger WebUI to go to the Ranger management page.
    2. On the home page, click the component plug-in name in the HDFS area, for example, hacluster.
    3. Click Add New Policy to add a HDFS permission control policy.
    4. In the Create Policy dialog box that is displayed, set the following parameters:
      • Policy Name: Enter a policy name, for example, tablehdfs_test.
      • Resource Path: Set this parameter to the HDFS path where the table created by user B is stored, for example, /user/hive/warehouse/Database name/Table name.
      • In the Allow Conditions area, select user A for Select User, click Add Permissions in the Permissions column, and select Read and Execute.
      • Click Add.
  11. View basic information about the policy in the policy list. After the policy takes effect, user A can view the table created by user B.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback