The OBS file system can be interconnected with Spark2x after an MRS cluster is installed.
Before performing the following operations, ensure that you have configured a storage-compute decoupled cluster by referring to Configuring a Storage-Compute Decoupled Cluster (Agency) or Configuring a Storage-Compute Decoupled Cluster (AK/SK).
In the left navigation tree, choose JDBCServer2x > Customization. Add dfs.namenode.acls.enabled to the spark.hdfs-site.customized.configs parameter and set its value to false.
source ${client_home}/bigdata_env
kinit Username
create table test(id int) location 'obs://mrs-word001/table/';
show tables;
source ${client_home}/bigdata_env
vim ${client_home}/Spark2x/spark/conf/hdfs-site.xml
<property> <name>dfs.namenode.acls.enabled</name> <value>false</value> </property>
kinit Username
create table test(id int) location 'obs://mrs-word001/table/';
If a large number of logs are printed in the OBS file system, the read and write performance may be affected. You can adjust the log level of the OBS client as follows:
cd ${client_home}/Spark2x/spark/conf
vi log4j.properties
Add the OBS log level configuration to the file as follows:
log4j.logger.org.apache.hadoop.fs.obs=WARN
log4j.logger.com.obs=WARN