PyCharm 2022.3 Help

Alibaba OSS

Connect to Alibaba OSS

  1. In the Big Data Tools window, click Add a connection and select Alibaba OSS.

  2. In the Big Data Tools dialog that opens, specify the connection parameters:

    Alibaba connection
    • Name: the name of the connection to distinguish it between the other connections.

    • Region: select a region to get buckets from.

    • Choose the way to get buckets:

      • Select Custom roots and, in the Roots field, specify the name of the bucket or the path to a directory in the bucket. You can specify multiple names or paths by separating them with a comma.

      • Select All buckets in the account. You can then use the bucket filter to show only buckets with particular names.

    • Enter access credentials: Access Key and Secret Key.

    Optionally, you can set up:

    • Per project: select to enable these connection settings only for the current project. Deselect it if you want this connection to be visible in other projects.

    • Enable connection: deselect if you want to restrict using this connection. By default, the newly created connections are enabled.

    • Authentication type: the authentication method. You can use your account credentials (by default) or opt to enter the access and secret keys.

      You can also use a named profile that is located in the default OSS config location (~/.oss/credentials on Linux or macOS, or C:\Users\<USERNAME>\.oss\credentials on Windows). If needed you can specify any profile from a custom credential file.

    • HTTP Proxy: select if you want to use IDE proxy settings or if you want to specify custom proxy settings.

    You can also set up Extended Connection Settings:

    • Operation timeout (s): enter a timeout (in seconds) for operations performed on the remote storage, such as getting file info, listing or deleting objects. The default value is 15 seconds.

    • Trust all SSL certificates: select it if you trust the SSL certificate used for this connection and do not want to verify it. This can be useful if, for development purposes, you have a host with a self-signed certificate – verifying it could result in an error.

  3. Once you fill in the settings, click Test connection to ensure that all configuration parameters are correct. Then click OK.

Once you have established a connection, you can view the storage and work with data files in it.

Last modified: 20 January 2023