报错如下:意思是无权限
Caused by: java.lang.ClassNotFoundException: Class com.aliyun.emr.fs.oss.JindoOssFileSystem not found
解决方案:
使用root用户进入到
[root@dbos-bigdata-flink005 ~]# cd /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/jars/
[root@dbos-bigdata-flink005 jars]# ll jindofs-sdk.jar
-rw------- 1 root root 62126071 Sep 9 13:24 jindofs-sdk.jar
注意:发现只有root用户可以统计和访问,所以要重新授权
[root@dbos-bigdata-flink005 jars]# chmod 777 jindofs-sdk.jar
在进行访问就可以正常访问了
[root@dbos-bigdata-flink005 jars]# sudo su - flink
Last login: Wed Nov 10 08:59:44 CST 2021 on pts/3
[flink@dbos-bigdata-flink005 ~]$ hdfs dfs -du -h oss://dbbigdatapro/group/user/tools/meta/hive-temp-table/test_sony_boot_play2
21/11/10 09:02:47 WARN auth.AuthUtils: [fs.jfs.cache.oss-accessKeyId, fs.oss.accessKeyId] is deprecated, please use: fs.jfs.cache.oss.accessKeyId
21/11/10 09:02:47 WARN auth.AuthUtils: [fs.jfs.cache.oss-accessKeySecret, fs.oss.accessKeySecret] is deprecated, please use: fs.jfs.cache.oss.accessKeySecret
85.4 G 85.4 G oss://dbbigdatapro/group/user/tools/meta/hive-temp-table/test_sony_boot_play2/20211109
87.9 G 87.9 G oss://dbbigdatapro/group/user/tools/meta/hive-temp-table/test_sony_boot_play2/20211110