Integrating MemArtsCC into Spark Tasks
Scenario
MemArtsCC stores hotspot data in compute clusters to reduce the required bandwidth on the OBS server. With the local storage of MemArtsCC, hotspot data does not need to be accessed across networks, improving the data read efficiency of Spark. This topic describes how to integrate MemArtsCC into Spark tasks for a system where storage and compute are decoupled.
Prerequisites
- The Guardian service is running properly, and decoupled storage and compute have been used.
- Spark has been connected to OBS.
Modifying Spark Configurations
- Log in to FusionInsight Manager and choose Cluster > Services > Spark. Click Configurations, click All Configurations, and click SparkResource(Role) > OBS.
- Set fs.obs.readahead.policy to memArtsCC.
- Click Save. In the displayed dialog box, click OK to save the configuration. Click Dashboard and choose More > Service Rolling Restart to restart the Spark service.
- Download and install the Spark service client again.
Verifying the Configuration
- Log in to FusionInsight Manager and choose Cluster > Services > MemArtsCC > Chart > Capacity.
- View and record the number of shards in the cluster.
- Log in to the Spark client node, create a table whose Location is an OBS path, and query the table.
- Repeat 1 and 2. If there are more shards in the cluster than there were in 2, the interconnection is successful.
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