Before developing MaxCompute Script, you need to create a MaxCompute Script module in either of the following scenarios:
No script file exists locally
If no script file exists locally, you can use Intellij IDEA to create a new module.Procedure
Open or create a MaxCompute Studio project. This article uses creating a project as an example. Click File in the menu and select . as shown in the following figure.
Select MaxCompute Studio on the left-side navigation pane, and click Next.
Enter the project name, and click Finish.Note
If a project has been opened before, a dialog box appears, prompting whether to open the new project in the existing window (closing the previous project). Click This Window.
After the project is created, the page shown in the following figure appears. You can develop SQL scripts in the project.
Script files exist locally
If many scripts have been stored in a local folder, MaxCompute Studio is used to edit the scripts. You can open a module directly.Procedure
Create a connection configuration file odps_config.inifor MaxCompute in the scripts folder, and configure authentication information for connecting to MaxCompute.
Open IntelliJ IDEA, select scripts folder., and select the
MaxCompute Studio detects whether the odps_config.ini file exists in the folder, captures metadata on the server based on the configuration information in the file, and compiles all scripts in the folder.