This topic describes how to add configuration items to the global configuration file
hue.ini.
Prerequisites
An E-MapReduce (EMR) Hadoop cluster is created. For more information, see Create a cluster.
Procedure
- Go to the Cluster Overview page of your cluster.
- Log on to the Alibaba Cloud EMR console by using your Alibaba Cloud account.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- Click the Cluster Management tab.
- On the Cluster Management page, find your cluster and click Details in the Actions column.
- Go to the Hue service page.
- In the left-side navigation pane, choose .
- On the Hue service page, click the Configure tab.
- In the Service Configuration section, click the hue tab.
- Click Custom Configuration in the upper-right corner.
- In the Add Configuration Item dialog box, add the configuration items.
In the Key column, you must enter a parameter in the following format:
$section_path.$real_key
Description:
$real_key
: the parameter you want to add, such as hive_server_host
.
$section_path
: the section to which the parameter belongs. You can view the hue.ini file to obtain the section. For more information, see hue.ini.
For example, if you want to add the
hive_server_host
parameter, which belongs to the
[beeswax]
section in the
hue.ini file, you must enter
beeswax.hive_server_host
into the Key column and enter
localhost
in the Value column.
For another example, if you want to modify the user_name_attr parameter, which is
under multiple levels of sections, you must enter
desktop.ldap.users.user_name_attr
in the Key column.
After you add all the required configuration items, click OK.
- Save the configurations.
- In the upper-right corner of the Service Configuration section, click Save.
- In the Confirm Changes dialog box, specify Description and click OK.
- Restart Hue.
- In the upper-right corner of the Hue service page, choose .
- In the Cluster Activities dialog box, specify Description and click OK.
- In the Confirm message, click OK.