This topic describes how to activate the LindormDFS service provided by ApsaraDB for Lindorm (Lindorm).
LindormDFS serves as the underlying storage system of Lindorm. You can activate and use LindormDFS without the need to separately purchase it.
The storage capacity of LindormDFS is shared in the same Lindorm instance. LindormDFS is compatible with HDFS protocols. You can use open source HDFS clients to access LindormDFS. For more information, see Use open source HDFS clients to access LindormDFS.
Activate the LindormDFS service in the console
Log on to the Lindorm console. On the Instance List page, click an instance. On the Instance Details page, click File Engine in the left-side navigation pane.
Click Activate Now to activate the LindormDFS service.
Generation of the access configuration
You must configure the following two files before you use an HDFS client to access LindormDFS:
core-site.xml: Configure the default access prefix.
hdfs-site.xml: Configure the information about nn that corresponds to the connection string used to access LindormDFS.
After you configure the preceding two files, the Lindorm console can automatically generate the configuration information required in the files if you use an HDFS client to access multiple LindormDFS instances. If you want to access multiple LindormDFS instances at the same time, you need only to add the configuration information in the hdfs-site file to your hdfs-site file. This way, you can use the HDFS connection string to access the instances at the same time.
Click Generate Configuration to generate the configuration information required in the hdfs-site and core-site files.
The following figure shows the configuration information in the hdfs-site and core-site files.
Configure the whitelist
Add the IP addresses of the LindormDFS nodes that you must access to the Lindorm whitelist. For more information, see Configure the whitelist.
LindormDFS cannot be accessed over the Internet.
LindormDFS is shared storage that can contain the data from multiple file engines. After LindormDFS is activated, the data from each file engine is available for queries. Pay attention to data security when you use LindormDFS. If issues such as data losses are caused by incorrect operations, users who perform these operations are responsible for the issues. For more information about the directory where the data for multiple file engines is stored, see LindormDFS directory structure.