Spark Application Development Process
Spark includes Spark Core, Spark SQL, and Spark Streaming, whose development processes are the same.
Figure 1 and Table 1 describe the phases in the development process.
Phase |
Description |
Reference |
---|---|---|
Understand basic concepts. |
Before application development, learn basic concepts of Spark. Select basic concepts of Spark Core, Spark SQL, and Spark Streaming to learn based on actual scenarios. |
|
Prepare a development environment. |
Spark applications can be developed in Scala, Java, and Python. You are advised to use the IDEA tool to configure development environments in different languages according to the guide. |
Preparing a Java Development Environment for Spark to Preparing a Python Development Environment for Spark |
Prepare an operating environment. |
The Spark operating environment is a Spark client. Install and configure the client according to the guide. |
|
Obtain and import a sample project or create a new project. |
Spark provides sample projects for different scenarios. You can import a sample project to learn the application. You can also create a Spark project according to the guide. |
|
Develop a project based on the scenario. |
Sample projects in Scala, Java, and Python are provided. Sample projects in different scenarios including Streaming, SQL, JDBC client program, and Spark on HBase are also provided. This helps you quickly learn APIs of all Spark components. |
|
Compile and run applications. |
You can compile the developed application and submit it for running. |
|
View application running results. |
Application running results are exported to a path you specify. You can also view the application running status on the UI. |
|
Optimize the application. |
You can optimize a program based on its running status to meet the performance requirement in the current service scenario. After optimizing the application, compile and run it again. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot