Snowflake High Performance connector for Kafka: Snowflake 구성하기¶
이 항목에서는 |KAFKAOFHP|용 Snowflake를 구성하는 단계에 대해 설명합니다.
Snowflake recommends that you create a separate user, using CREATE USER and role using CREATE ROLE for each Kafka instance so that the access privileges can be individually revoked as required.
Kafka 커넥터를 사용하기 위한 역할 생성하기¶
The following creates a custom role for use by the Kafka connector, for example KAFKA_CONNECTOR_ROLE.
The script references a specific existing database and schema (kafka_db.kafka_schema)
and user (kafka_connector_user_1):
-- Use a role that can create and manage roles and privileges.
USE ROLE securityadmin;
-- Create a Snowflake role with the privileges to work with the connector.
CREATE ROLE kafka_connector_role;
-- Grant privileges on the database.
GRANT USAGE ON DATABASE kafka_db TO ROLE kafka_connector_role;
-- Grant privileges on the schema.
GRANT USAGE ON SCHEMA kafka_schema TO ROLE kafka_connector_role;
-- Grant OPERATE on pipes only if you manually created them (user-defined pipe mode).
-- GRANT OPERATE ON PIPE existing_pipe1 TO ROLE kafka_connector_role;
-- Grant INSERT on the table to insert data into.
GRANT INSERT ON TABLE kafka_schema.existing_table TO ROLE kafka_connector_role;
-- Grant the custom role to the user configured in the Kafka connector configuration properties.
GRANT ROLE kafka_connector_role TO USER kafka_connector_user;
모든 권한은 커넥터가 사용하는 역할에 직접 부여되어야 합니다. 역할 계층에서 권한을 상속받을 수 없습니다.
사용자 지정 역할 및 역할 계층 구조 생성과 관련한 자세한 내용은 액세스 제어 구성하기 를 참조하십시오.
필수 권한¶
커넥터에 Snowflake 오브젝트를 생성하고 관리하려면 다음 권한이 필요합니다.
오브젝트 |
권한 |
필요한 경우 |
|---|---|---|
데이터베이스 |
USAGE |
항상 필수 |
스키마 |
USAGE |
항상 필수 |
파이프 |
OPERATE |
사용자 정의 파이프를 사용하는 경우 |
대상 테이블 |
INSERT |
항상 필수 |