`

Hue:Configuring Hue to Store Data in MySQL

    博客分类:
  • Hue
 
阅读更多
  1. Create a new database in MySQL and grant privileges to a Hue user to manage this database.

    mysql> create database hue;
    Query OK, 1 row affected (0.01 sec)
    mysql> grant all on hue.* to 'hue'@'localhost' identified by 'secretpassword';
    Query OK, 0 rows affected (0.00 sec)
  2. Shut down Hue if it is running.
  3. To migrate your existing data to MySQL, use the following command to dump the existing database data to a text file. Note that using the ".json" extension is required.

    $ /usr/share/hue/build/env/bin/hue dumpdata > <some-temporary-file>.json
  4. Open the hue.ini file in a text editor. Directly below the [[database]] line, add the following options (and modify accordingly for your MySQL setup):

    host=localhost
    port=3306
    engine=mysql
    user=hue
    password=secretpassword
    name=hue
  5. As the Hue user, configure Hue to load the existing data and create the necessary database tables:

    $ /usr/share/hue/build/env/bin/hue syncdb --noinput
    $ mysql -uhue -psecretpassword -e "DELETE FROM hue.django_content_type;"
    $ /usr/share/hue/build/env/bin/hue loaddata <temporary-file-containing-dumped-data>.json

Your system is now configured and you can start the Hue server as normal.

 

Note: The above commands will produce some errors when the hue daemon has been installed without

mysql configuration. 

My practise is that alter the database config in hue.ini in the original tarball and then run

PREFIX=/path/to/hue-install-parent-dir make install

 

 

a. delete the old hue database in mysql

 

b.

#hue syncdb --noinput
#hue migrate

 

 

 

References

http://cloudera.github.io/hue/docs-3.5.0/manual.html

分享到:
评论

相关推荐

    cylon-hue:Phillips Hue的Cylon.js适配器驱动程序

    Cylon.js For Hue Cylon.js( )是用于机器人技术,物理计算和物联网(IoT)JavaScript框架。 该存储库包含可连接到的Cylon适配器/驱动器。 它使用创建的node-hue-api节点模块( )谢谢! 是否想在机器人上使用Ruby...

    storm-hue:适用于Apache Storm的Hue应用程序

    Storm-HUE:Apache Storm HUE应用程序Storm-HUE是一个应用程序,用于管理和管理拓扑池。特征管理操作(启动和停止拓扑,重新平衡)。 基于检索指标数据的自定义仪表板HUE启动时配置验证器要求或更高。 同一Hue服务器...

    dmx-hue:Art-Net节点通过DMX控制飞利浦Hue灯

    :horizontal_traffic_light: dmx-hue Art-Net节点通过DMX控制飞利浦Hue灯 安装 安装 ,然后打开命令提示符: npm install -g dmx-hue 用法 Usage: dmx-hue [setup] [options] Create an ArtNet DMX&lt;&gt;Hue bridge...

    Swift颜色生成器RandomColorSwift.zip

    RandomColorSwift 是从 randomColor.js 移植过来的 Swift 颜色生成器,非常迷人。代码示例:import RandomColor ...let colors = randomColorsCount(20, hue: .Value(120), luminosity: .Random)

    node-hue:与 Philips Hue API 通信的模块

    节点色调与 Philips Hue API 通信的模块安装npm install --save node-hue发现桥梁自动发现桥这将搜索桥,并使用搜索遇到的第一个有效桥 var hue = new Hue ( &lt; UserName&gt; );手动分配网桥 var hue = new Hue(, );配置...

    unity-hue:在Unity中控制Philips Hue灯

    统一色调在Unity中控制Philips Hue灯如何使用打开项目或在现有项目中导入Unity-Hue.unitypackage 在您的场景中导入Hue Bridge.prefab 按照Phillips Hue创建用户名,然后将其放在username段中。 单击“ Discover ...

    level1-module0-Pixel-Hue:GitHub Classroom创建的level1-module0-Pixel-Hue

    level1-module0-Pixel-Hue:GitHub Classroom创建的level1-module0-Pixel-Hue

    core-hue:用于Hiome的Hue适配器

    孝美顺将Hue与Hiome集成在一起,并根据Hiome的占用量直接控制Hue灯。安装git clone https://github.com/Hiome/hiome-hue.git npm install 按下色相桥上的链接按钮将其与Hiome配对npm start设置该脚本假定您拥有与...

    hue-discover:探索飞利浦Hue桥

    色相发现探索本地可用的顺化桥npm install hue-discover用法const discover = require ( 'hue-discover' ) ;discover ( ) . then ( bridges =&gt; { for ( let bridge of bridges ) { console . log ( birdge ) ; }} ) ...

    c2hue:Construct 2 的飞利浦 Hue 插件

    C2Hue C2Hue 是 Construct 2 的插件,允许在您的游戏中快速实现 Phillips Hue 灯光。当前的功能集使用 Hue 桥进行身份验证。 设置并获取色调、饱和度、亮度。 打开/关闭灯。 获取灯的当前开/关状态。安装[下载当前...

    homebridge-hue:适用于Philips Hue andor deCONZ的Homebridge插件

    适用于Philips Hue和/或deCONZ的Homebridge插件 版权所有:copyright:2016-2021 Erik Baauw。 版权所有。 介绍 这个插件向连接到Philips 桥或德累斯顿电子网关的Apple ZigBee设备(灯,插头,传感器,开关等)。 请...

    rspec-hue:飞利浦 Hue 的 RSpec 格式化程序

    首次使用时,您必须在出现提示时或在使用 Hue 格式化程序运行第一次测试之前按下 Hue 上的链接按钮。 配置 您必须使用 RSpec.configure 配置格式化程序,通常在您的 spec_helper.rb 中。 这是 RspecHue 所需的最低...

    terraform-provider-philips-hue:飞利浦Hue生态系统的Terraform提供商

    飞利浦Hue Terraform模块 关于 这是一个充满激情的项目,融合了我最喜欢的几件事-Philips Hue和“基础架构即代码”。 底层的API调用是通过lawsontyler / ghue完成的。 尚不支持所有功能,但仅够我个人使用了:D ...

    snips-skill-hue:飞利浦Hue剪裁技巧

    飞利浦Hue剪裁技巧 安装 该技能是,因此您可以使用安装: $ pip install snipshue 用法 剪技能经理 建议您与一起使用此技能。 只需将以下部分添加到您的: skills : - package_name : snipshue class_name : ...

    vim-hue:vim-hue-满足所有SREDevOps需求的多彩Vim配置和主题

    vim-hue是丰富多彩的Vim配置,可满足您所有的SRE / DevOps需求。 它具有“ vim-hue”深色Vim颜色方案和完整的Vim配置。 非常适合每天使用Vim和以下任何一种软件的任何人: 外壳(重击) 高朗 Python 地貌 Ansible...

    nuxt-hue:启发您的Nuxt应用程序

    顺化 启发您的Nuxt体验 设置全局添加nuxt-hue依赖项yarn global add nuxt-hue # or npm install --global nuxt-hue 运行安装程序命令,并让向导指导您完成操作nuxt-hue setup 你完成了! 开始与Nuxt一起开发并享受!...

    颜色随机生成脚本randomColor.zip

     hue: 'green' }); // Returns a hex code for a light blue randomColor({  luminosity: 'light',  hue: 'blue' }); // Returns a hex code for a 'truly random' color randomColor({  ...

    Apache Hue 2小时轻松搞定大数据可视化终端视频教程

    手把手视频详细讲解项目开发全... 2.Hue集成MySQL实战案例 3.Hue配置集成Oozie 4.Hue集成Oozie实战案例 5.Hue配置集成Hbase 6.Hue集成ThriftServer实战案例 7.Hue配置集成Impala-server 8.Hue集成Impala实战案例

    script.service.hue:飞利浦Hue的Kodi附加组件

    script.service.hue 飞利浦Hue的Kodi服务使用自动化音频或视频播放时的 要求 Kodi Matrix 19或更高 色相桥V2(正方形) 安装 或 特征: 创建和删除多房间LightScenes 调整灯光的颜色和亮度 场景的可选过渡时间 ...

    node-meem-hue:飞利浦 Hue 的 Meem 库

    节点meem-hue 飞利浦 Hue 的 Meem 库

Global site tag (gtag.js) - Google Analytics