Class StageCredentialUtil


  • public class StageCredentialUtil
    extends Object
    A utility function to help with retrieving stage credentials and generating the credential string for Snowflake.
    • Constructor Detail

      • StageCredentialUtil

        public StageCredentialUtil()
    • Method Detail

      • generateCredentialsString

        public static String generateCredentialsString​(String url,
                                                       org.apache.hadoop.conf.Configuration config)
        Get the credentials for the given stage in the url, for example: credentials=(AWS_KEY_ID='{accessKey}' AWS_SECRET_KEY='{awsSecretKey}')
        Parameters:
        url - The URL
        config - The Hadoop configuration
        Returns:
        Snippet that represents credentials for the given location
        Throws:
        UnsupportedOperationException - Thrown when the input is invalid