MaxCompute Studio lets you develop Java programs, such as user-defined functions (UDFs), MapReduce programs, and graph programs. To get started, create a MaxCompute Java module.
Prerequisites
Ensure that you are connected to a MaxCompute project. For more information, see Manage project connections.
Procedure
-
From the top menu bar of IntelliJ IDEA, select .
-
In the left navigation pane of the New Module dialog box, click MaxCompute Java.
-
Set Module SDK to the path of your installed Java Development Kit (JDK), and then click Next.
-
Enter a Module name, and then click Finish.
Result
After completing these steps, MaxCompute Studio automatically creates a Maven module and performs the following actions:
-
Imports the required MaxCompute dependencies. For details, see the pom.xml file.
-
Creates the examples directory, which contains sample code. For details, see Module directory.
-
Creates the warehouse directory to store data required for local debugging. For details, see Warehouse directory.
Next steps
After you create the MaxCompute Java module, you can start developing Java programs.