hive-HS2和metastore配置和启动
HS2配置
hive-site.xml
hive.server2.thrift.min.worker.threads – Minimum number of worker threads, default 5.
hive.server2.thrift.max.worker.threads – Maximum number of worker threads, default 500.
hive.server2.thrift.port – TCP port number to listen on, default 10000.
hive.server2.thrift.bind.host – TCP interface to bind to.
HS2保证
<property>
 <name>hive.server2.enable.doAs</name>
 <value>true</value>
</property>
在hadoop的core-site.xml中设置如下内容
<property>
  <name>hadoop.proxyuser.sean.groups</name>
<value>*</value>
</property>
<property>
 <name>hadoop.proxyuser.sean.hosts</name>
 <value>*</value>
</property>
beeline连接
!connect jdbc:hive2://localhost:10000/default
 
                    
                     
                    
                 
                    
                
 
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号