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

New Cloudera installation: Hue - Bad Request (400)

after a new cloudera installation (exactelly the same way I've already installed several times) when I try to access hue, I get the following error: Bad Request (400)

 

I've inserted (not helping) allowed_hosts=* in hue.ini.

In cloudera manager the hue service is shown as green.

With netstat -tunlp | grep 8888 => everything is fine:

tcp        0      0 10.132.0.2:8888         0.0.0.0:*               LISTEN      10519/python2.7

 

 

ps -ax | grep 8592
8592 ? Sl 0:09 python2.7 /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/bin/hue runcherrypyserver
14500 pts/0 S+ 0:00 grep --color=auto 8592

 

Installtion is in google cloud Ubuntu 14.04 LTS with one master (4cpu 26gb) one node (2cpu 13gb) 

 

Any advice would be appreciated

Best regards

Georges-Louis

 

 

 

56 REPLIES 56

on /var/log/hue/error.log I have  the following:

 

[03/Feb/2017 03:19:10 -0800] models ERROR error syncing beeswax
Traceback (most recent call last):
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/desktop/core/src/desktop/models.py", line 419, in sync
for job in find_jobs_with_no_doc(SavedQuery):
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/query.py", line 96, in __i
ter__
self._fetch_all()
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/query.py", line 857, in _f
etch_all
self._result_cache = list(self.iterator())
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/query.py", line 220, in it
erator
for row in compiler.results_iter():
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/sql/compiler.py", line 713
, in results_iter
for rows in self.execute_sql(MULTI):
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/sql/compiler.py", line 786
, in execute_sql
cursor.execute(sql, params)
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/util.py", line 53, in ex
ecute
return self.cursor.execute(sql, params)
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/utils.py", line 99, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/backends/util.py", line 53, in ex
ecute
return self.cursor.execute(sql, params)
ProgrammingError: column beeswax_savedquery.is_redacted does not exist
LINE 1: ...ry"."is_auto", "beeswax_savedquery"."is_trashed", "beeswax_s...

Champion

@georgeslouis

 

1. Can you try the below command in your linux box and check everything is ok for the ip & port
$telnet ipaddress 8888

 

2. beeswax error refers to the Hue interaction with Hive has some problem. Pls check your hive configuration and make sure everything is good with hive, especially metadata
[03/Feb/2017 03:19:10 -0800] models ERROR error syncing beeswax

hi Saranvisa,

 

thanks for your suggestion.

 

hereby the answers:

1. telnet 10.132.0.2 8888
Trying 10.132.0.2...
Connected to 10.132.0.2.
Escape character is '^]'.
Connection closed by foreign host. => got the same answer on a cluster with hue working.

I've inkstalled elinks on the master node, and going on port 8888 got exactely the same answer: Bad request (400)

 

2. I've seen also this hue-error on an other cloudera cluster, on which hue interface is perfectly working 

 

Do you have any other ideas?

 

Thanks again for your help

 

Champion

@georgeslouis

 

 

1. Not sure you are directly accessing hue from the IE/Chrome by typing ip:8888 and if you have not tried this already, pls try Cloudera Manager -> Hue -> Web UI -> Hue Web UI

2. make sure all the instances are good: Cloudera Manager -> Hue -> Instances
3. Click on an instance -> Process -> check the process status (It should be running)
4. Check the firewall
5. Also change your brower and try

 

if nothing works, then it seems something went wrong with hue configuration, pls stop & remove the Hue service and try to configure again

hi saranvisa,

 

thx for your reply.

 

1 => tried with chrome & explorer

2&3 => yes, hue's instance and processes all all ok and running correctly

4 => firewall checked. I even installed elinks (linux console text browser) and accessed the internal ip => same result: Bad request (400)

5 => done in pos 1

 

I shold deinstall hue and reinstall it? Any other idea how to check the content / log of hue?

 

Best regards

Georges-Louis

 

 

Champion

@georgeslouis

 

To check the hue logs from CM

Cloudera Manager -> Hue -> Instances -> select an instance -> Log Files

hue role log file:

Feb 3, 11:19:18 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:19:19 AMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 11:19:21 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:19:23 AMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 11:19:23 AMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 11:19:23 AMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 11:19:23 AMINFOdecorators
AXES: BEGIN LOG
Feb 3, 11:19:23 AMINFOdecorators
Using django-axes 1.5.0
Feb 3, 11:19:23 AMWARNINGfsmanager
Filesystem not configured for s3a
[03/Feb/2017 11:23:44 ] settings     INFO     Welcome to Hue 3.9.0
Feb 3, 11:23:46 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:23:47 AMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 11:23:48 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:23:51 AMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 11:23:51 AMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 11:23:51 AMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 11:23:51 AMINFOdecorators
AXES: BEGIN LOG
Feb 3, 11:23:51 AMINFOdecorators
Using django-axes 1.5.0
Feb 3, 11:23:58 AMWARNINGfsmanager
Filesystem not configured for s3a
[03/Feb/2017 11:30:21 ] settings     INFO     Welcome to Hue 3.9.0
Feb 3, 11:30:23 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:30:23 AMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 11:30:25 AMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 11:30:34 AMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 11:30:34 AMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 11:30:34 AMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 11:30:35 AMINFOdecorators
AXES: BEGIN LOG
Feb 3, 11:30:35 AMINFOdecorators
Using django-axes 1.5.0
Feb 3, 11:30:35 AMWARNINGfsmanager
Filesystem not configured for s3a
[03/Feb/2017 12:16:01 ] settings     INFO     Welcome to Hue 3.9.0
Feb 3, 12:16:03 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:16:03 PMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 12:16:05 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:16:14 PMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 12:16:14 PMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 12:16:14 PMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 12:16:15 PMINFOdecorators
AXES: BEGIN LOG
Feb 3, 12:16:15 PMINFOdecorators
Using django-axes 1.5.0
Feb 3, 12:16:15 PMWARNINGfsmanager
Filesystem not configured for s3a
[03/Feb/2017 12:33:58 ] settings     INFO     Welcome to Hue 3.9.0
Feb 3, 12:34:00 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:34:01 PMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 12:34:03 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:34:12 PMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 12:34:12 PMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 12:34:12 PMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 12:34:12 PMINFOdecorators
AXES: BEGIN LOG
Feb 3, 12:34:12 PMINFOdecorators
Using django-axes 1.5.0
Feb 3, 12:34:12 PMWARNINGfsmanager
Filesystem not configured for s3a
[03/Feb/2017 12:47:25 ] settings     INFO     Welcome to Hue 3.9.0
Feb 3, 12:47:27 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:47:28 PMINFOsettings
Welcome to Hue 3.9.0
Feb 3, 12:47:30 PMINFO__init__
Couldn't import snappy. Support for snappy compression disabled.
Feb 3, 12:47:38 PMWARNINGmiddleware
Failed to import tidylib (for debugging). Is libtidy installed?
Feb 3, 12:47:38 PMINFOmiddleware
Unloading SpnegoMiddleware
Feb 3, 12:47:38 PMINFOmiddleware
Unloading HueRemoteUserMiddleware
Feb 3, 12:47:38 PMINFOdecorators
AXES: BEGIN LOG
Feb 3, 12:47:38 PMINFOdecorators
Using django-axes 1.5.0
Feb 3, 12:47:38 PMWARNINGfsmanager
Filesystem not configured for s3a

 

 

hue stdout

 

Fri Feb  3 12:47:16 UTC 2017
JAVA_HOME=/usr/lib/jvm/java-7-oracle-cloudera
HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
HUE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf
HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
HIVE_DEFAULT_XML=/etc/hive/conf.dist/hive-default.xml
HIVE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hive-conf
HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
HBASE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf
CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
CMF_CONF_DIR=/etc/cloudera-scm-agent
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

Synced:
 > django.contrib.auth
 > django_openid_auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.staticfiles
 > django.contrib.admin
 > south
 > axes
 > about
 > filebrowser
 > help
 > impala
 > jobbrowser
 > metastore
 > proxy
 > rdbms
 > indexer

Not synced (use migrations):
 - django_extensions
 - desktop
 - beeswax
 - jobsub
 - oozie
 - pig
 - search
 - useradmin
 - notebook
(use ./manage.py migrate to migrate these)
Running migrations for django_extensions:
- Nothing to migrate.
 - Loading initial data for django_extensions.
Installed 0 object(s) from 0 fixture(s)
Running migrations for desktop:
- Nothing to migrate.
 - Loading initial data for desktop.
Installed 0 object(s) from 0 fixture(s)
Running migrations for beeswax:
- Nothing to migrate.
 - Loading initial data for beeswax.
Installed 0 object(s) from 0 fixture(s)
Running migrations for jobsub:
- Nothing to migrate.
 - Loading initial data for jobsub.
Installed 0 object(s) from 0 fixture(s)
Running migrations for oozie:
- Nothing to migrate.
 - Loading initial data for oozie.
Installed 0 object(s) from 0 fixture(s)
Running migrations for pig:
- Nothing to migrate.
 - Loading initial data for pig.
Installed 0 object(s) from 0 fixture(s)
Running migrations for search:
- Nothing to migrate.
 - Loading initial data for search.
Installed 0 object(s) from 0 fixture(s)
Running migrations for useradmin:
- Nothing to migrate.
 - Loading initial data for useradmin.
Installed 0 object(s) from 0 fixture(s)
Running migrations for notebook:
- Nothing to migrate.
 - Loading initial data for notebook.
Installed 0 object(s) from 0 fixture(s)

hue stderror

 

+ date
+ date
Fri Feb  3 12:47:16 UTC 2017
++ dirname /usr/lib/cmf/service/hue/hue.sh
+ cloudera_config=/usr/lib/cmf/service/hue
++ cd /usr/lib/cmf/service/hue/../common
++ pwd
+ cloudera_config=/usr/lib/cmf/service/common
+ . /usr/lib/cmf/service/common/cloudera-config.sh
++ set -x
+ source_parcel_environment
+ '[' '!' -z /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/meta/cdh_env.sh ']'
+ OLD_IFS=' 	
'
+ IFS=:
+ SCRIPT_ARRAY=($SCM_DEFINES_SCRIPTS)
+ DIRNAME_ARRAY=($PARCEL_DIRNAMES)
+ IFS=' 	
'
+ COUNT=1
++ seq 1 1
+ for i in '`seq 1 $COUNT`'
+ SCRIPT=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/meta/cdh_env.sh
+ PARCEL_DIRNAME=CDH-5.10.0-1.cdh5.10.0.p0.41
+ . /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/meta/cdh_env.sh
++ CDH_DIRNAME=CDH-5.10.0-1.cdh5.10.0.p0.41
++ export CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
++ CDH_HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
++ export CDH_MR1_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-0.20-mapreduce
++ CDH_MR1_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-0.20-mapreduce
++ export CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-hdfs
++ CDH_HDFS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-hdfs
++ export CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-httpfs
++ CDH_HTTPFS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-httpfs
++ export CDH_MR2_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce
++ CDH_MR2_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce
++ export CDH_YARN_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-yarn
++ CDH_YARN_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-yarn
++ export CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
++ CDH_HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
++ export CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/zookeeper
++ CDH_ZOOKEEPER_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/zookeeper
++ export CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
++ CDH_HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
++ export CDH_HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
++ CDH_HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
++ export CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/oozie
++ CDH_OOZIE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/oozie
++ export CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
++ CDH_HUE_PLUGINS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
++ export CDH_FLUME_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/flume-ng
++ CDH_FLUME_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/flume-ng
++ export CDH_PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
++ CDH_PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
++ export CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive-hcatalog
++ CDH_HCAT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive-hcatalog
++ export CDH_SQOOP2_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sqoop2
++ CDH_SQOOP2_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sqoop2
++ export CDH_LLAMA_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/llama
++ CDH_LLAMA_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/llama
++ export CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sentry
++ CDH_SENTRY_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sentry
++ export TOMCAT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-tomcat
++ TOMCAT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-tomcat
++ export JSVC_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils
++ JSVC_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils
++ export CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop/bin/hadoop
++ CDH_HADOOP_BIN=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop/bin/hadoop
++ export CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/impala
++ CDH_IMPALA_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/impala
++ export CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/solr
++ CDH_SOLR_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/solr
++ export CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase-solr
++ CDH_HBASE_INDEXER_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase-solr
++ export SEARCH_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/search
++ SEARCH_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/search
++ export CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/spark
++ CDH_SPARK_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/spark
++ export WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ WEBHCAT_DEFAULT_XML=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/etc/hive-webhcat/conf.dist/webhcat-default.xml
++ export CDH_KMS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-kms
++ CDH_KMS_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-kms
++ export CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/parquet
++ CDH_PARQUET_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/parquet
++ export CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/avro
++ CDH_AVRO_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/avro
+ locate_cdh_java_home
+ '[' -z '' ']'
+ '[' -z /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils ']'
+ local BIGTOP_DETECT_JAVAHOME=
+ for candidate in '"${JSVC_HOME}"' '"${JSVC_HOME}/.."' '"/usr/lib/bigtop-utils"' '"/usr/libexec"'
+ '[' -e /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils/bigtop-detect-javahome ']'
+ BIGTOP_DETECT_JAVAHOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils/bigtop-detect-javahome
+ break
+ '[' -z /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils/bigtop-detect-javahome ']'
+ . /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/bigtop-utils/bigtop-detect-javahome
++ BIGTOP_DEFAULTS_DIR=/etc/default
++ '[' -n /etc/default -a -r /etc/default/bigtop-utils ']'
++ JAVA6_HOME_CANDIDATES=('/usr/lib/j2sdk1.6-sun' '/usr/lib/jvm/java-6-sun' '/usr/lib/jvm/java-1.6.0-sun-1.6.0' '/usr/lib/jvm/j2sdk1.6-oracle' '/usr/lib/jvm/j2sdk1.6-oracle/jre' '/usr/java/jdk1.6' '/usr/java/jre1.6')
++ OPENJAVA6_HOME_CANDIDATES=('/usr/lib/jvm/java-1.6.0-openjdk' '/usr/lib/jvm/jre-1.6.0-openjdk')
++ JAVA7_HOME_CANDIDATES=('/usr/java/jdk1.7' '/usr/java/jre1.7' '/usr/lib/jvm/j2sdk1.7-oracle' '/usr/lib/jvm/j2sdk1.7-oracle/jre' '/usr/lib/jvm/java-7-oracle')
++ OPENJAVA7_HOME_CANDIDATES=('/usr/lib/jvm/java-1.7.0-openjdk' '/usr/lib/jvm/java-7-openjdk')
++ JAVA8_HOME_CANDIDATES=('/usr/java/jdk1.8' '/usr/java/jre1.8' '/usr/lib/jvm/j2sdk1.8-oracle' '/usr/lib/jvm/j2sdk1.8-oracle/jre' '/usr/lib/jvm/java-8-oracle')
++ OPENJAVA8_HOME_CANDIDATES=('/usr/lib/jvm/java-1.8.0-openjdk' '/usr/lib/jvm/java-8-openjdk')
++ MISCJAVA_HOME_CANDIDATES=('/Library/Java/Home' '/usr/java/default' '/usr/lib/jvm/default-java' '/usr/lib/jvm/java-openjdk' '/usr/lib/jvm/jre-openjdk')
++ case ${BIGTOP_JAVA_MAJOR} in
++ JAVA_HOME_CANDIDATES=(${JAVA7_HOME_CANDIDATES[@]} ${JAVA8_HOME_CANDIDATES[@]} ${MISCJAVA_HOME_CANDIDATES[@]} ${OPENJAVA7_HOME_CANDIDATES[@]} ${OPENJAVA8_HOME_CANDIDATES[@]})
++ '[' -z '' ']'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/java/jdk1.7*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/java/jre1.7*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/j2sdk1.7-oracle*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd '/usr/lib/jvm/j2sdk1.7-oracle/jre*'
++ for candidate_regex in '${JAVA_HOME_CANDIDATES[@]}'
+++ ls -rvd /usr/lib/jvm/java-7-oracle-cloudera
++ for candidate in '`ls -rvd ${candidate_regex}* 2>/dev/null`'
++ '[' -e /usr/lib/jvm/java-7-oracle-cloudera/bin/java ']'
++ export JAVA_HOME=/usr/lib/jvm/java-7-oracle-cloudera
++ JAVA_HOME=/usr/lib/jvm/java-7-oracle-cloudera
++ break 2
+ verify_java_home
+ '[' -z /usr/lib/jvm/java-7-oracle-cloudera ']'
+ echo JAVA_HOME=/usr/lib/jvm/java-7-oracle-cloudera
+ export HUE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
+ HUE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
+ export HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hadoop-conf
+ HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hadoop-conf
+ '[' -e /usr/share/oracle/instantclient/lib ']'
+ add_postgres_to_pythonpath
++ /usr/bin/python -c 'import psycopg2 ; print psycopg2.__file__.rsplit("/", 2)[0]'
+ PSYCOPG2_PATH=/usr/lib/python2.7/dist-packages
+ '[' '!' -z /usr/lib/python2.7/dist-packages ']'
+ export PYTHONPATH=:/usr/lib/python2.7/dist-packages
+ PYTHONPATH=:/usr/lib/python2.7/dist-packages
+ return
+ [[ -d /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf ]]
+ export HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf
+ HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf
+ export HADOOP_MAPRED_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce
+ HADOOP_MAPRED_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce
+ [[ -d /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf ]]
+ chmod -R a+r /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf
+ export HIVE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hive-conf
+ HIVE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hive-conf
+ chmod -R a+r /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hive-conf
+ export HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
+ HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
+ export HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
+ HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
+ export HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
+ HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
+ export HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
+ HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
+ export PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
+ PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
+ export PIG_SCRIPT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig/../..
+ PIG_SCRIPT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig/../..
+ echo HUE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue
+ echo HUE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
+ echo HADOOP_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop
+ echo HADOOP_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf
+ echo HIVE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hive
+ echo HIVE_DEFAULT_XML=/etc/hive/conf.dist/hive-default.xml
+ echo HIVE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hive-conf
+ echo HBASE_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase
+ echo PIG_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig
+ HBASE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf
+ [[ -d /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf ]]
+ chmod -R a+r /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf
+ echo HBASE_CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf
+ export PYTHON_EGG_CACHE=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/.python-eggs
+ PYTHON_EGG_CACHE=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/.python-eggs
+ perl -pi -e 's#{{JAVA_HOME}}#/usr/lib/jvm/java-7-oracle-cloudera#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HBASE_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hbase#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{PIG_SCRIPT_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/pig/../..#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HADOOP_CONF_DIR}}#/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HUE_CONF_DIR}}#/run/cloudera-scm-agent/process/102-hue-HUE_SERVER#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ [[ -d /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf ]]
+ perl -pi -e 's#{{HBASE_CONF_DIR}}#/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HBASE_CONF_DIR}}#/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hbase-conf/hbase-env.sh
+ '[' 5 -ge 4 ']'
+ perl -pi -e 's#{{HADOOP_HDFS_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-hdfs#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HADOOP_MR1_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-0.20-mapreduce#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HADOOP_MR2_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{HADOOP_BIN}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop/bin/hadoop#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ SQOOP2_SCRIPT_HOME=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sqoop2/../..
+ perl -pi -e 's#{{SQOOP2_SCRIPT_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/sqoop2/../..#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve.ini /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/hue_safety_valve_server.ini
+ perl -pi -e 's#{{CDH_MR1_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-0.20-mapreduce#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/core-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hadoop-env.sh /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hdfs-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/log4j.properties /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/mapred-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/ssl-client.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.map /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.py /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/yarn-site.xml
+ perl -pi -e 's#{{CDH_MR2_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop-mapreduce#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/core-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hadoop-env.sh /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hdfs-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/log4j.properties /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/mapred-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/ssl-client.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.map /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.py /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/yarn-site.xml
+ perl -pi -e 's#{{CDH_HADOOP_HOME}}#/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hadoop#g' /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/core-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hadoop-env.sh /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/hdfs-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/log4j.properties /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/mapred-site.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/ssl-client.xml /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.map /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/topology.py /run/cloudera-scm-agent/process/102-hue-HUE_SERVER/yarn-conf/yarn-site.xml
+ replace_conf_dir
+ echo CONF_DIR=/run/cloudera-scm-agent/process/102-hue-HUE_SERVER
+ echo CMF_CONF_DIR=/etc/cloudera-scm-agent
+ EXCLUDE_CMF_FILES=('cloudera-config.sh' 'httpfs.sh' 'hue.sh' 'impala.sh' 'sqoop.sh' 'supervisor.conf' '*.log' '*.keytab' '*jceks')
++ printf '! -name %s ' cloudera-config.sh httpfs.sh hue.sh impala.sh sqoop.sh supervisor.conf '*.log' '*.keytab' creds.localjceks
+ find /run/cloudera-scm-agent/process/102-hue-HUE_SERVER -type f '!' -path '/run/cloudera-scm-agent/process/102-hue-HUE_SERVER/logs/*' '!' -name cloudera-config.sh '!' -name httpfs.sh '!' -name hue.sh '!' -name impala.sh '!' -name sqoop.sh '!' -name supervisor.conf '!' -name '*.log' '!' -name '*.keytab' '!' -name creds.localjceks -exec perl -pi -e 's#{{CMF_CONF_DIR}}#/run/cloudera-scm-agent/process/102-hue-HUE_SERVER#g' '{}' ';'
+ make_scripts_executable
+ find /run/cloudera-scm-agent/process/102-hue-HUE_SERVER -regex '.*\.\(py\|sh\)$' -exec chmod u+x '{}' ';'
+ '[' runcpserver == beeswax_server ']'
+ set_classpath_in_var HADOOP_EXTRA_CLASSPATH_STRING
+ '[' -z HADOOP_EXTRA_CLASSPATH_STRING ']'
+ [[ -n /usr/share/cmf ]]
++ tr '\n' :
++ find /usr/share/cmf/lib/plugins -maxdepth 1 -name '*.jar'
+ ADD_TO_CP=/usr/share/cmf/lib/plugins/event-publish-5.10.0-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-5.10.0.jar:
+ [[ -n '' ]]
+ eval 'OLD_VALUE=$HADOOP_EXTRA_CLASSPATH_STRING'
++ OLD_VALUE=
+ NEW_VALUE=/usr/share/cmf/lib/plugins/event-publish-5.10.0-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-5.10.0.jar:
+ export HADOOP_EXTRA_CLASSPATH_STRING=/usr/share/cmf/lib/plugins/event-publish-5.10.0-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-5.10.0.jar
+ HADOOP_EXTRA_CLASSPATH_STRING=/usr/share/cmf/lib/plugins/event-publish-5.10.0-shaded.jar:/usr/share/cmf/lib/plugins/tt-instrumentation-5.10.0.jar
+ HUE=/opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/bin/hue
+ [[ runcpserver == runcpserver ]]
+ grep -q '^\s*ssl_certificate\s*=\s*.\+' hue.ini hue_safety_valve.ini hue_safety_valve_server.ini
+ '[' '!' -z '' ']'
+ run_syncdb_and_migrate_subcommands
+ /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/bin/hue syncdb --noinput
+ '[' -z '' ']'
+ MERGE_FLAG=--merge
+ '[' 5 -ge 5 ']'
+ /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/bin/hue migrate --merge
+ '[' dumpdata = runcpserver ']'
+ '[' syncdb = runcpserver ']'
+ exec /opt/cloudera/parcels/CDH-5.10.0-1.cdh5.10.0.p0.41/lib/hue/build/env/bin/hue runcpserver