File tree 3 files changed +7
-11
lines changed
src/main/java/org/apache/hadoop/fs
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.qcloud.cos</groupId >
8
8
<artifactId >hadoop-cos</artifactId >
9
- <version >8.1.9 </version >
9
+ <version >8.2.0 </version >
10
10
<packaging >jar</packaging >
11
11
12
12
<name >Apache Hadoop Tencent Cloud COS Support</name >
Original file line number Diff line number Diff line change 12
12
@ InterfaceStability .Unstable
13
13
public class CosNConfigKeys extends CommonConfigurationKeys {
14
14
public static final String USER_AGENT = "fs.cosn.user.agent" ;
15
- public static final String DEFAULT_USER_AGENT = "cos-hadoop-plugin-v8.1.8 " ;
15
+ public static final String DEFAULT_USER_AGENT = "cos-hadoop-plugin-v8.2.0 " ;
16
16
17
17
public static final String TENCENT_EMR_VERSION_KEY = "fs.emr.version" ;
18
18
@@ -201,8 +201,8 @@ public class CosNConfigKeys extends CommonConfigurationKeys {
201
201
202
202
// POSIX bucket does not support the SYMLINK interface by default.
203
203
@ Deprecated
204
- public static final String COSN_POSIX_BUCKET_SUPPORT_SYMLINK_ENABLED = "fs.cosn.posix_bucket .support_symlink.enabled" ;
205
- public static final boolean DEFAULT_COSN_POSIX_BUCKET_SUPPORT_SYMLINK_ENABLED = false ;
204
+ public static final String COSN_SUPPORT_SYMLINK_ENABLED = "fs.cosn.support_symlink.enabled" ;
205
+ public static final boolean DEFAULT_COSN_SUPPORT_SYMLINK_ENABLED = false ;
206
206
207
207
// create() recursive check dst dir which increase the getFileStatus call which increase head and list qps.
208
208
// please notice when set to false may lose data, so only change to false when you know what are you doing.
Original file line number Diff line number Diff line change 3
3
import com .google .common .base .Preconditions ;
4
4
import com .google .common .util .concurrent .ThreadFactoryBuilder ;
5
5
import com .qcloud .chdfs .permission .RangerAccessType ;
6
- import com .qcloud .cos .model .ObjectMetadata ;
7
6
import com .qcloud .cos .utils .StringUtils ;
8
7
import org .apache .hadoop .HadoopIllegalArgumentException ;
9
8
import org .apache .hadoop .conf .Configuration ;
@@ -1303,12 +1302,9 @@ public FileStatus getFileLinkStatus(final Path f)
1303
1302
1304
1303
@ Override
1305
1304
public boolean supportsSymlinks () {
1306
- if (this .isPosixBucket ) {
1307
- return this .getConf ().getBoolean (
1308
- CosNConfigKeys .COSN_POSIX_BUCKET_SUPPORT_SYMLINK_ENABLED ,
1309
- CosNConfigKeys .DEFAULT_COSN_POSIX_BUCKET_SUPPORT_SYMLINK_ENABLED );
1310
- }
1311
- return true ;
1305
+ return this .getConf ().getBoolean (
1306
+ CosNConfigKeys .COSN_SUPPORT_SYMLINK_ENABLED ,
1307
+ CosNConfigKeys .DEFAULT_COSN_SUPPORT_SYMLINK_ENABLED );
1312
1308
}
1313
1309
1314
1310
@ Override
You can’t perform that action at this time.
0 commit comments