# 配置 Components Catalog 服务器

## 步骤

1. 打开 &lt;Components\_Catalog\_Path&gt;/config/application.properties 文件。
2. 要更改为 Components Catalog 端点公开的默认端口，请编辑以下行：

   server.port=8989
3. 要更改 Components Catalog 端点的上下文路径，请编辑以下行：

   server.contextPath=/tcomp

   请注意，server.contextpath 和 server.port 属性必须与 &lt;Data\_Preparation\_Path&gt;/config/application.properties 文件中为 tcomp.server.url 定义的属性相匹配。
4. 为了支持在 Big Data 环境文中将 Components Catalog 服务器与 Talend Data Preparation 一起使用，请将以下行添加到该文件：

   hadoop.conf.dir=/path/to/Hadoop/configuration/directory

   此属性还可设置为环境变量。环境变量优先于 application.properties 文件中设定的值。
5. 要将 Components Catalog 服务器与安全 Hadoop 集群 (使用 Kerberos) 一起使用，请将以下行添加到该文件：

   krb5.config=/path/to/Kerberos/configuration/file/krb5.conf

   此属性还可设置为环境变量。环境变量优先于 application.properties 文件中设定的值。
6. 将您的更改保存到属性文件。
7. 重新启动 Components Catalog 以使您的更改生效。您可以使用 &lt;Components\_Catalog\_Path&gt; 文件夹中的 start.sh 脚本完成此操作。