This topic provides an overview of MaxCompute Tunnel, which is a data tunnel that is used to upload and download data.

Data upload and download tools provided by MaxCompute are based on Tunnel SDK. The following table describes the interfaces of Tunnel SDK, which may differ based on the SDK versions. For more information, see SDK Java Doc.

Interface Description
TableTunnel The entry-class interface that is used to access MaxCompute Tunnel. You can access MaxCompute and MaxCompute Tunnel on the Internet or an internal network on Alibaba Cloud. Tunnel-based data downloads on 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 on the Internet or an internal network on Alibaba Cloud. Tunnel-based data downloads on 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, you can search for odps-sdk-core in the Maven repository to find the latest version of the SDK for Java. You can configure the Maven dependency in the following way:
    <dependency>
        <groupId>com.aliyun.odps</groupId>
        <artifactId>odps-sdk-core</artifactId>
        <version>0.24.0-public</version>
    </dependency>
  • For more information about the SDK, see SDK Java Doc.
  • You can also use the Java Database Connectivity (JDBC) driver to write data. For more information, see Overview.
  • For more information about service connections, see Configure endpoints.