Support Questions
Find answers, ask questions, and share your expertise

If I want to extract hue from cdh package and use it in HDP, what should I do?

Highlighted

If I want to extract hue from cdh package and use it in HDP, what should I do?

Rising Star

I am trying to use hue in HDP in a no internet access environment, where it is difficult to compile hue from source code. 

As the hue included in CDH package is the only pre-built version I can find, I am purposing to migrate it to HDP. 

However, I meet some problem in my work.

1. I have copied a hue directory from installed CDH to /opt/hue and start it by running 'hue runserver', it seemed the hue program doesn't load my hue.ini, because none of my setting in config file works. I had set the http_host and http_port to 0.0.0.0:8001,  but I found hue running on 127.0.0.1:8000 in log  info. In the meanwhile, it initialed database as /opt/hue/desktop/desktop-test.db, rather than another db in my config file.

2. After I run syncdb to fix the database problem, it always shown some other db error, like some colomns are missing, etc.

 

So I believe maybe I should run something to initialize or clean the pre-config of the hue. If I want to use hue from cdh in HDP, what should I do? 

1 REPLY 1

Re: If I want to extract hue from cdh package and use it in HDP, what should I do?

Rising Star

Ok, I find the solution.

 

hue syncdb

hue migrate