hive在hue上的配置应用(hue的应用教程---4)

1.hive的相关配置操作

修改hive-site.xml配置文件



  
  
  
  
  
    javax.jdo.option.ConnectionURL
    jdbc:mysql://localhost:3306/hive?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&useSSL=false


    javax.jdo.option.ConnectionDriverName
    com.mysql.jdbc.Driver


    javax.jdo.option.ConnectionUserName
    root


    javax.jdo.option.ConnectionPassword
    LIU123!@




  hive.server2.thrift.bind.host
  localhost



  hive.server2.long.polling.timeout
  5000



  hive.server2.authentication
  NOSASL 

 
 

2.hue.ini的相关配置

###########################################################################
# Settings to configure Beeswax with Hive
###########################################################################

[beeswax]

  # Host where HiveServer2 is running.
  # If Kerberos security is enabled, use fully-qualified domain name (FQDN).
  hive_server_host=localhost

  # Port where HiveServer2 Thrift server runs on.
  hive_server_port=10000

  # Hive configuration directory, where hive-site.xml is located
  hive_conf_dir=/usr/local/apache-hive-1.2.2-bin/conf

  # Timeout in seconds for thrift calls to Hive service
  server_conn_timeout=3600

3.启动hive的相关服务

#启动Hive metastore
$ bin/hive --service metastore &


#启动hiveserver2
$ bin/hive --service hiveserver2 &

4.启动hue

 build/env/bin/supervisor

5.打开浏览器输入localhost:8888即可操作hive

你可能感兴趣的:(hadoop,Hadoop实战学习)