问题如题,我使用的是hadoop3.1.1
我已经在每个节点都添加了如下user_ec_policies.xml配置文件
<?xml version="1.0"?>
<configuration>
<layoutversion>1</layoutversion>
<schemas>
<schema id="RS-3-1-32k">
<codec>rs</codec>
<k>3</k>
<m>1</m>
</schema>
</schemas>
<policies>
<policy>
<schema>RS-3-1-32k</schema>
<cellsize>32768</cellsize>
</policy>
</policies>
</configuration>
并且都已成功安装了ISA-L,但是当我执行命令hdfs ec -addPolicies -policyFile etc/hadoop/user_ec_policies.xml时报错:
Exception in thread "main" java.lang.RuntimeException: Failed to load EC policy file: etc/hadoop/user_ec_policies.xml
at org.apache.hadoop.hdfs.util.ECPolicyLoader.loadPolicy(ECPolicyLoader.java:71)
at org.apache.hadoop.hdfs.tools.ECAdmin$AddECPoliciesCommand.run(ECAdmin.java:179)
at org.apache.hadoop.hdfs.tools.ECAdmin.run(ECAdmin.java:82)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hadoop.hdfs.tools.ECAdmin.main(ECAdmin.java:53)
求大佬给点思路,网上这方面信息好少,我已经卡了好几天了,求助啊!!!
?????