@@ -34,11 +34,11 @@ dependencies {
3434The [ config.properties] ( ../fc-01-embedded/fc-connector/config.properties )
3535file contains the necessary configurations
3636for this ` fc-connector ` , including the standard settings for a regular connector, along with additional configurations for a
37- federated catalog, such as catalog api endpoint and crawler execution interval.
37+ federated catalog, such as the management API path and crawler execution interval.
3838
3939``` properties
40- web.http.catalog.path =/api/catalog
41- web.http.catalog.port =29195
40+ web.http.management.port =29193
41+ web.http.management.path =/api/management
4242
4343edc.catalog.cache.execution.delay.seconds =5
4444edc.catalog.cache.execution.period.seconds =5
@@ -62,7 +62,7 @@ To run the connector, execute the following command
6262java -Dedc.fs.config=federated-catalog/fc-01-embedded/fc-connector/config.properties -jar federated-catalog/fc-01-embedded/fc-connector/build/libs/fc-connector.jar
6363```
6464
65- If the execution is successful, then the Catalog API of our ` fc-connector ` will listen on port ` 29195 ` .
65+ If the execution is successful, then the Management API of our ` fc-connector ` will listen on port ` 29193 ` .
6666
6767If you observe the logs, you can see the following recurring lines,
6868
@@ -83,12 +83,14 @@ This means our FC crawler is running, and the crawler found one node, which is t
8383
8484### 3. Test catalog query API
8585
86- To query the catalogs from ` fc-connector ` side, we can now call the catalog API of our embedded federated catalog.
86+ To query the catalogs from ` fc-connector ` side, we can now call the catalog API through the management API of our embedded federated catalog.
8787Use the following request to invoke the catalog API:
8888
8989``` http request
9090curl -d @federated-catalog/fc-01-embedded/resources/empty-query.json \
91- -H 'content-type: application/json' http://localhost:29195/api/catalog/v1alpha/catalog/query \
91+ -H 'content-type: application/json' \
92+ -H 'x-api-key: password' \
93+ http://localhost:29193/api/management/v3/catalogs/request \
9294 -s | jq
9395```
9496
0 commit comments