Watson Discovery 클러스터에서 사용자 정의 크롤러 플러그인 관리

scripts/manage_crawler_plugin.sh 스크립트를 사용하여 일반적인 플러그인 관리 작업을 수행할 수 있습니다. scripts/manage_crawler_plugin.sh 스크립트는 크롤러 플러그인 SDK 패키지에 있습니다. 명령에서 스크립트를 사용하는 경우 Discovery 클러스터의 엔드포인트 URL과 IBM Cloud Pak® for Data 인스턴스의 사용자 이름 및 비밀번호가 있어야 합니다.

IBM Cloud Pak for Data IBM Software Hub

이 정보는 설치된 배포에만 적용됩니다.

크롤러 플러그인 관리를 위한 명령 및 옵션

scripts/manage_crawler_plugin.sh --help를 입력하여 스크립트에서 다음 도움말 메시지를 볼 수 있습니다.

Usage: scripts/manage_crawler_plugin.sh --endpoint endpoint --user username [--password password] command

Watson Discovery Crawler Plug-in Manager

This script will help you deploy, undeploy, and list your crawler plug-ins for Watson Discovery.

Commands:
deploy        Add a new crawler plug-in to your Watson Discovery instance
undeploy      Undeploy your crawler plug-in by ID
list          List all crawler plug-ins for your Watson Discovery instance (default)

Options:
-e --endpoint         The endpoint URL for your cluster and add-on service instance
                      (https://{cpd_cluster_host}{: port}/discovery/{release}/instances/{instance_id}/api)
-u --user             The user name of your Cloud Pak instance
-p --password         The user password of your Cloud Pak instance
                      If the password is not specified, the command line prompts to input
-n --name             The name of the crawler plug-in to upload (deploy only)
-f --file             The path of the crawler plug-in package to upload (deploy only)
--id                  The crawler_resource_id value to delete the crawler plug-in (undeploy only)
--help                Show this message

다음 명령을 사용하여 크롤러 플러그인을 배치, 배치 취소 및 나열할 수 있습니다. 변수 참조 {variable} 을 필요한 정보로 바꿉니다:

  • 크롤러 플러그인 배치: scripts/manage_crawler_plugin.sh --endpoint {endpoint_URL} --user {username} deploy --name {plugin_name}
  • 크롤러 플러그인 배치 취소: scripts/manage_crawler_plugin.sh --endpoint {endpoint_URL} --user {username} undeploy --id {crawler_resource_id}
  • 배치된 크롤러 플러그인 나열: scripts/manage_crawler_plugin.sh --endpoint {endpoint_URL} --user {username} list

scripts/manage_crawler_plugin.sh 스크립트를 사용하여 크롤러 플러그인을 배치하면 콜렉션을 작성할 때 Discovery 도구에서 해당 플러그인을 선택할 수 있습니다. Discovery에서 크롤러 플러그인 설정에 대한 자세한 정보는 크롤러 플러그인 설정을 참조하십시오.