This topic provides an overview of MaxCompute Tunnel, which is a data tunnel that is used for data uploads and downloads.

Tools for data uploads and downloads provided by MaxCompute are based on the Tunnel SDK. The following table describes the interfaces of the Tunnel SDK, which may differ based on the SDK versions. For more information, visit SDK Java Doc.

Interface Description
TableTunnel The entry-class interface that is used to access MaxCompute Tunnel. You can access MaxCompute and MaxCompute Tunnel over the Internet or an internal network on Alibaba Cloud. Tunnel-based data downloads over an internal network are free of charge.
TableTunnel.UploadSession The session that uploads data to a MaxCompute table.
TableTunnel.DownloadSession The session that downloads data from a MaxCompute table.
InstanceTunnel The entry-class interface that is used to access MaxCompute Tunnel. You can access MaxCompute and MaxCompute Tunnel over the Internet or an internal network on Alibaba Cloud. Tunnel-based data downloads over an internal network are free of charge.
InstanceTunnel.DownloadSession The session that downloads data to a MaxCompute SQL instance. The SQL instance must start with the SELECT keyword and is used to query data.
Note
  • If you use Maven, search for odps-sdk-core in the Maven database to find different versions of the SDK for Java. The configuration is as follows:
    <dependency>
        <groupId>com.aliyun.odps</groupId>
        <artifactId>odps-sdk-core</artifactId>
        <version>0.24.0-public</version>
    </dependency>
  • For more information about the SDK, visit SDK Java Doc.
  • For more information about service connections, see Configure endpoints.