HiveServer2 Impersonate

HiveServer2 Impersonate

使用 hadoop 用户启动hs2和hms

hive-site.xml


  
    javax.jdo.option.ConnectionURL
    jdbc:mysql://localhost:3306/metastore?useSSL=false
    the URL of the MySQL database
  
  
    javax.jdo.option.ConnectionDriverName
    com.mysql.jdbc.Driver
    Driver class name for a JDBC metastore
  
  
    javax.jdo.option.ConnectionUserName
    hive
  
  
    javax.jdo.option.ConnectionPassword
    1qaz@WSX
  
  
    hive.metastore.warehouse.dir
    /hive/warehouse
  
  

    hive.server2.enable.impersonation
    true
    Set this property to enable impersonation in Hive Server 2
  
  
    hive.metastore.execute.setugi
    true
    Set this property to enable impersonation in Hive Metastore
  
  
    hive.server2.thrift.port
    10000
  

core-site.xml


  hadoop.proxyuser.**hadoop**.hosts
  *


  hadoop.proxyuser.**hadoop**.groups
  *

你可能感兴趣的:(HiveServer2 Impersonate)