MaxCompute Tunnel is a tunnel service that you can use to upload data to or download data from MaxCompute.

The MaxCompute client is developed based on Tunnel SDK. The following table describes the interfaces of Tunnel SDK. The interfaces vary based on the SDK version. For more information, see SDK Java Doc.

Interface Description
TableTunnel An entry class that is used to access MaxCompute Tunnel. You can access MaxCompute and MaxCompute Tunnel over the Internet or over an internal network on Alibaba Cloud. Tunnel-based data downloads over an internal network are free of charge.
TableTunnel.UploadSession A session that is used to upload data to a MaxCompute table.
TableTunnel.DownloadSession A session that is used to download data from a MaxCompute table.
InstanceTunnel An entry class that is used to access MaxCompute Tunnel. You can access MaxCompute and MaxCompute Tunnel over the Internet or over an internal network on Alibaba Cloud. Tunnel-based data downloads over an internal network are free of charge.
InstanceTunnel.DownloadSession A session that is used to download data from 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 a specific version of SDK for Java. You can declare the SDK in your project by using the following Maven dependency:
    <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 JDBC overview.
  • For more information about service connections, see Endpoints.