Hue整合Mysql数据库的安装配置
2017-07-19 17:15
288 查看
前言:在泰国,一个全新的应用程序允许查看MySQL、PostgreSQL、Oracle和Sqlite的数据。受Beeswax应用程序的启发,它允许您查询关系数据库并在表中查看它。在hue的hue.ini配置文件中添加mysql,定位到databases位置根据服务器上需要查看的数据库的信息更改响应配置。简单配置如下:###########################################################################
# Settings for the RDBMS application
###########################################################################
[librdbms]
# The RDBMS app can have any number of databases configured in the databases
# section. A database is known by its section name
# (IE sqlite, mysql, psql, and oracle in the list below).
[[databases]]
# sqlite configuration.
## [[[sqlite]]]
# Name to show in the UI.
#nice_name=SQLite
# For SQLite, name defines the path to the database.
#name=/usr/hdp/2.5.3.0-37/hue/desktop/desktop.db
# Database backend to use.
#engine=sqlite
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/ ## options={}
# mysql, oracle, or postgresql configuration.
## [[[mysql]]]
# Name to show in the UI.
nice_name="My SQL DB"
# For MySQL and PostgreSQL, name is the name of the database.
# For Oracle, Name is instance of the Oracle server. For express edition
# this is 'xe' by default.
## name=mysqldb
# Database backend to use. This can be:
# 1. mysql
# 2. postgresql
# 3. oracle
engine=mysql
# IP or hostname of the database to connect to.
host=bigdata3
# Port the database server is listening to. Defaults are:
# 1. MySQL: 3306
# 2. PostgreSQL: 5432
# 3. Oracle Express Edition: 1521
port=3306
# Username to authenticate with when connecting to the database.
user=root
# Password matching the username to authenticate with when
# connecting to the database.
password=7dYDrMECSQ
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/ ## options={}
配置完成后重启Hue,访问web界面可以对mysql数据库进行响应的操作:
# Settings for the RDBMS application
###########################################################################
[librdbms]
# The RDBMS app can have any number of databases configured in the databases
# section. A database is known by its section name
# (IE sqlite, mysql, psql, and oracle in the list below).
[[databases]]
# sqlite configuration.
## [[[sqlite]]]
# Name to show in the UI.
#nice_name=SQLite
# For SQLite, name defines the path to the database.
#name=/usr/hdp/2.5.3.0-37/hue/desktop/desktop.db
# Database backend to use.
#engine=sqlite
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/ ## options={}
# mysql, oracle, or postgresql configuration.
## [[[mysql]]]
# Name to show in the UI.
nice_name="My SQL DB"
# For MySQL and PostgreSQL, name is the name of the database.
# For Oracle, Name is instance of the Oracle server. For express edition
# this is 'xe' by default.
## name=mysqldb
# Database backend to use. This can be:
# 1. mysql
# 2. postgresql
# 3. oracle
engine=mysql
# IP or hostname of the database to connect to.
host=bigdata3
# Port the database server is listening to. Defaults are:
# 1. MySQL: 3306
# 2. PostgreSQL: 5432
# 3. Oracle Express Edition: 1521
port=3306
# Username to authenticate with when connecting to the database.
user=root
# Password matching the username to authenticate with when
# connecting to the database.
password=7dYDrMECSQ
# Database options to send to the server when connecting.
# https://docs.djangoproject.com/en/1.4/ref/databases/ ## options={}
配置完成后重启Hue,访问web界面可以对mysql数据库进行响应的操作:
相关文章推荐
- CentOS6.7下使用非root用户(普通用户)编译安装与配置mysql数据库并使用shell脚本定时任务方式实现mysql数据库服务随机自动启动
- Python之道1-环境搭建与pycharm的配置django安装及MySQL数据库配置
- Nexus OSS私服仓库的安装和配置以及与Maven整合配置
- Mysql数据库安装和配置
- Spring+SpringMVC+Mybatis整合系列(一)Maven安装与配置
- Rhel7.2Mysql数据库安装及配置
- Linux下Nginx+Tomcat整合的安装与配置
- MySQL数据库主从同步安装与配置总结
- MySQL数据库安装与配置
- mysql数据库配置安装
- FastDFS安装和配置,整合Nginx-1.13.3
- CentOS6.5安装与配置Mysql数据库
- Linux学习之CentOS--CentOS6.5下Mysql数据库的安装与配置
- HUE安装与配置
- win7-MySQL数据库安装与配置详解
- 84.MYSQL数据库安装与配置详解
- 阿里云服务器安装配置SVN并安装MySQL数据库
- CentOS下Mysql数据库的安装与配置
- Windows 下 Apache HTTP Server 安装、配置以及与 Tomcat 的整合(附图)
- MySQL数据库集群实现负载均衡的安装配置详解