zoukankan      html  css  js  c++  java
  • hue 集成hive

    一、hive

    1、修改hive配置

    在hive-site.xml文件添加如下信息:

    <property>
         <name>hive.server2.thrift.port</name>
         <value>10000</value>
    </property>
    <property>
         <name>hive.server2.thrift.bind.host</name>
         <value>yjt</value>
    </property>
    
    <property>
        <name>hive.metastore.uris</name>
        <value>thrift://yjt:9083</value>
    </property>
    
    <property>
        <name>hive.server2.long.polling.timeout</name>
        <value>5000</value>
    </property>

    2、启动hive

    [hduser@yjt conf]$ hive --service metastore &
    [hduser@yjt conf]$ hive --service hiveserver2 &

    稍等片刻,看10000端口是否监听上

    [hduser@yjt conf]$ netstat -ntulp |grep 10000 
    (Not all processes could be identified, non-owned process info
     will not be shown, you would have to be root to see it all.)
    tcp        0      0 0.0.0.0:10000           0.0.0.0:*               LISTEN      31813/java          

    二、修改hue配置

    vim desktop/conf/hue.ini

    [beeswax]
    
    
       hive_server_host=yjt
    
      hive_server_port=10000
       hive_conf_dir=/data1/hadoop/hive/conf

    重启hue

    三、访问web界面

     借鉴:

    https://www.jianshu.com/p/93136579d4d4

  • 相关阅读:
    英语阅读重点单词总结
    Redis 应用
    Python 列表[::-1]翻转
    golang数据类型
    golang变量
    k8s 容器控制台日志收集
    css显示模式
    css选择器
    css样式引入
    GIL锁
  • 原文地址:https://www.cnblogs.com/yjt1993/p/13092008.html
Copyright © 2011-2022 走看看