大数据可视化工具Hue安装使用

  • Hue功能 及编译
    1)安装系统包

    yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi gcc gcc-c++ krb5-devel 
    libtidy libxml2-devel libxslt-devel openldap-devel python-devel sqlite-devel 
    openssl-devel mysql-devel gmp-devel
    

    2)编译hue

    切换到hue目录下执行命令:make apps

    3)修改hue.ini文件

    secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn<qW5o
    
    
    # Webserver listens on this address and port
    
    http_host=bigdata.eclipse.com
    http_port=8888
    
    
    # Time zone name
    
    time_zone=Asia/Shanghai
  • Hue与 HDFS、YARN 集成配置与测试 集成配置与测试
    1)hdfs-site.xml 文件配置

    <property>
     <name>dfs.webhdfs.enabled</name>
      <value>true</value>
    </property>

    2)core-site.xml 文件配置

    <property>
      <name>hadoop.proxyuser.hue.hosts</name>
      <value>*</value>
    </property>
    <property>
      <name>hadoop.proxyuser.hue.groups</name>
      <value>*</value>
    </property>

    3) hue.ini 文件配置

    [hadoop]
    
      # Configuration for HDFS NameNode
      # ------------------------------------------------------------------------
      [[hdfs_clusters]]
        # HA support by using HttpFs
    
        [[[default]]]
          # Enter the filesystem uri
          fs_defaultfs=hdfs://bigdata.eclipse.com:8020
    
          # NameNode logical name.
          ## logical_name=
    
          # Use WebHdfs/HttpFs as the communication mechanism.
          # Domain should be the NameNode or HttpFs host.
          # Default port is 14000 for HttpFs.
           webhdfs_url=http://bigdata.eclipse.com:50070/webhdfs/v1
    
          # Change this if your HDFS cluster is Kerberos-secured
          ## security_enabled=false
    
          # Default umask for file and directory creation, specified in an octal value.
          ## umask=022
    
          # This is the home of your Hadoop HDFS installation 
          hadoop_hdfs_home=/opt/app/cdh5.3.6/hadoop-2.5.0-cdh5.3.6
    
          #Use this as the HDFS Hadoop launcher scrip
          hadoop_bin=/opt/app/cdh5.3.6/hadoop-2.5.0-cdh5.3.6/bin
    
          # Directory of the Hadoop configuration
          hadoop_conf_dir=/opt/app/cdh5.3.6/hadoop-2.5.0-cdh5.3.6/etc/hadoop
    
      # Configuration for YARN (MR2)
      # ------------------------------------------------------------------------
      [[yarn_clusters]]
    
        [[[default]]]
          # Enter the host on which you are running the ResourceManager
          resourcemanager_host=bigdata.eclipse.com
    
          # The port where the ResourceManager IPC listens on
          resourcemanager_port=8032
    
          # Whether to submit jobs to this cluster
          submit_to=True
    
          # Resource Manager logical name (required for HA)
          ## logical_name=
    
          # Change this if your YARN cluster is Kerberos-secured
          ## security_enabled=false
    
          # URL of the ResourceManager API
          resourcemanager_api_url=http://bigdata.eclipse.com:8088
    
          # URL of the ProxyServer API
          proxy_api_url=http://bigdata.eclipse.com:8088
    
          # URL of the HistoryServer API
          history_server_api_url=http://bigdata.eclipse.com:19888

    4)集成结果页面显示
    大数据可视化工具Hue安装使用_第1张图片

  • Hue 与 Hive、RDBMS 集成 配置 与测试

你可能感兴趣的:(大数据可视化工具Hue安装使用)