Skip to content

Commit e3fb63f

Browse files
authored
HADOOP-17402. Add GCS config to the core-site (#2638)
Contributed by Rafal Wojdyla
1 parent e395711 commit e3fb63f

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

hadoop-common-project/hadoop-common/src/main/resources/core-default.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,9 @@
676676
fs.azure.account.key.*
677677
fs.azure.oauth2.*
678678
fs.adl.oauth2.*
679+
fs.gs.encryption.*
680+
fs.gs.proxy.*
681+
fs.gs.auth.*
679682
credential$
680683
oauth.*secret
681684
oauth.*password
@@ -1062,6 +1065,15 @@
10621065
</description>
10631066
</property>
10641067

1068+
<property>
1069+
<name>fs.viewfs.overload.scheme.target.gs.impl</name>
1070+
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS</value>
1071+
<description>The GoogleHadoopFS/Google Cloud Storage file system for view
1072+
file system overload scheme when child file system and ViewFSOverloadScheme's
1073+
schemes are gs.
1074+
</description>
1075+
</property>
1076+
10651077
<property>
10661078
<name>fs.viewfs.overload.scheme.target.https.impl</name>
10671079
<value>org.apache.hadoop.fs.http.HttpsFileSystem</value>
@@ -2255,6 +2267,13 @@
22552267
This setting provides better performance compared to blob-specific saskeys.
22562268
</description>
22572269
</property>
2270+
2271+
<property>
2272+
<name>fs.AbstractFileSystem.gs.impl</name>
2273+
<value>com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS</value>
2274+
<description>The AbstractFileSystem for gs: uris.</description>
2275+
</property>
2276+
22582277
<property>
22592278
<name>io.seqfile.compress.blocksize</name>
22602279
<value>1000000</value>

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestCommonConfigurationFields.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ public void initializeMemberVariables() {
117117
xmlPrefixToSkipCompare.add("fs.abfs.impl");
118118
xmlPrefixToSkipCompare.add("fs.abfss.impl");
119119

120-
121120
// ADL properties are in a different subtree
122121
// - org.apache.hadoop.hdfs.web.ADLConfKeys
123122
xmlPrefixToSkipCompare.add("adl.");
@@ -130,6 +129,7 @@ public void initializeMemberVariables() {
130129
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.abfss.impl");
131130
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.file.impl");
132131
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.ftp.impl");
132+
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.gs.impl");
133133
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.hdfs.impl");
134134
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.http.impl");
135135
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.https.impl");
@@ -139,9 +139,9 @@ public void initializeMemberVariables() {
139139
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.s3a.impl");
140140
xmlPropsToSkipCompare.
141141
add("fs.viewfs.overload.scheme.target.swebhdfs.impl");
142+
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.swift.impl");
142143
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.webhdfs.impl");
143144
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.wasb.impl");
144-
xmlPropsToSkipCompare.add("fs.viewfs.overload.scheme.target.swift.impl");
145145

146146
// Azure properties are in a different class
147147
// - org.apache.hadoop.fs.azure.AzureNativeFileSystemStore

0 commit comments

Comments
 (0)