Forum Discussion

dwhansen-cbg's avatar
dwhansen-cbg
Contributor
3 years ago
Solved

Redshift Bulk Load on Cloudplex

We have a Redshift cluster that we would like to load data into. Using the Redshift - Insert snap is simple, but prohibitively slow and isn’t the recommended way to load data into a Redshift. We would like to use the Redshift - Bulk Load snap, but are running into a few issues when setting up the Redshift Account in SnapLogic.

  1. Our understanding is that using IAM Roles for authentication is NOT possible on a Cloudplex. Is this true? If so, this is a huge issue.
  2. If we can’t use an IAM Role for authentication, the only other option is an AWS Access Key with its secret and token. The main issue with this approach is that the tokens are temporary and only last a few hours at a maximum. How can we use an AWS Access Key with its secret and token without having to refresh the token every 15 minutes? This doesn’t seem useful.

Any help would be great. Thanks!

  • We think we figured out what was happening. Every 180 days we are required by our company policies to swap out our Access Keys and Secrets for security purposes. When we swapped them out, there was somehow a value in the Token field on the Redshift Account. We tried again by updating the Access Key and Secret, then clearing out the Token field and that seemed to do the trick. We’re not sure if this is a long-term fix or if it will fail again after a certain amount of time, but we are good to go for now.

9 Replies

  • Mostly it will be a SMB protocol version issue. Please check the protocol version for your SnapLogic server.

    I hope as of SnapLogic support SMB 1.0 protocol version. Also the SMB 2.0 and SMB 3.0 will be coming in further SnapLogic release.for any queries please reach out to SnapLogic support.

    Thanks
    Suren

    • ctlarson's avatar
      ctlarson
      New Contributor II

      Thank you for your reply. Am I able to check the protocol version on the dashboard tab?

      Yesterday I was able to get past this error, or so I think, and have no encountered a new error where the SMB protocol is able to find the server share but not the drive or any of the sub folders. My new error is

      The path /E/TestFolder/SubFolder/FileName.xml was not found. The server name is not part of the error which makes me think that it is able to reach it but I can reach any file location on that server. Do you think this is still a protocol version issue with SMB?

      • Surendar's avatar
        Surendar
        Contributor

        No you can’t able to see the SMB protocol version in Dashboard.

        Alternatively you just can try to list the objects from server using in directory browser snap by providing SMB server address and * as all filter.

        1. smb://(Server host address)
        2. smb://(Server host address)/E$/TestFolder/SubFolder/FileName.xml
  • ctlarson's avatar
    ctlarson
    New Contributor II

    I have validated that I am able to write a file to the file share but I am encountering an issue with using a general expression while naming the file.
    I am trying to timestamp the file with the following expression; + Date.now()+“.xml”. The pipe completes but there is no file in the location. When i change the syntax to:
    +“Date.now()”+“.xml” the pipe completes with a file in the directory named:
    Date.now().xml.
    Any idea why it is having a problem with creating a file with the expression Date.now()?
    The output preview even processes the expression correctly but still no file.

    • dmiller's avatar
      dmiller
      Former Employee

      I’m wondering if it doesn’t like the colons in the time of the date format and an error is not being displayed. What if you replaced Date.now() with Date.now().toLocaleDateString({“timeZone”:“PST”, “format”:“yyyy-MM-dd”}) ?

    • AE04282's avatar
      AE04282
      New Contributor

      Good day,

      I’m having a similar issue, I’m trying to write pdf files using a File Writer snap to a shared location, should I be using the file or the smb protocols? I tried both but unable to get it to work.

      However the file gives a message saying it’s overwritten but the files are not in the folder, see below:


      Thanks much.

      • AE04282's avatar
        AE04282
        New Contributor

        Hi all, I got this to work. Thanks.

  • ctlarson's avatar
    ctlarson
    New Contributor II

    That was the issue!
    I actually had to remove “timeZone”:“PST”, from the expression to get it to work but that allowed me to create the file. Thank you very much!

  • Hi, what was the final path looked like to make this work for shared windows location? can you please share info