File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
hadoop-tools/hadoop-gcp/src
main/java/org/apache/hadoop/fs/gs
site/markdown/tools/hadoop-gcp Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ enum GcsStatistics {
53
53
TYPE_DURATION );
54
54
55
55
private final String description ;
56
- private StatisticTypeEnum type ;
57
- private String symbol ;
56
+ private final StatisticTypeEnum type ;
57
+ private final String symbol ;
58
58
59
59
StatisticTypeEnum getType () {
60
60
return this .type ;
Original file line number Diff line number Diff line change @@ -110,6 +110,16 @@ public class GoogleHadoopFileSystem extends FileSystem implements IOStatisticsSo
110
110
private GoogleCloudStorageFileSystem gcsFs ;
111
111
private boolean isClosed ;
112
112
private FsPermission reportedPermissions ;
113
+
114
+ /**
115
+ * Setting this to static inorder to have a singleton instance. This will help us get the JVM
116
+ * level metrics. Note that we use this to generate Global Storage Statistics. If we make this
117
+ * an instance field, only the first filesystem instance metrics will be updated since while initializing
118
+ * GlobalStorageStatistics (refer initialize()) only the first instance will be registered.
119
+ *
120
+ * For filesystem instance level instrumentation, one more per instance object can be created and both
121
+ * be updated.
122
+ */
113
123
private static GcsInstrumentation instrumentation = new GcsInstrumentation ();
114
124
private GcsStorageStatistics storageStatistics ;
115
125
Original file line number Diff line number Diff line change 78
78
79
79
* ` UNAUTHENTICATED ` - configures unauthenticated access
80
80
81
- * ` USER_CREDENTIALS ` - configure [ user credentials] ( https://www.google.com/search?q=%23user -credentials)
81
+ * ` USER_CREDENTIALS ` - configure [ user credentials] ( #user -credentials)
82
82
83
83
* ` fs.gs.auth.service.account.json.keyfile ` (not set by default)
84
84
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ Example:
65
65
</property >
66
66
<property >
67
67
<name >fs.contract.test.fs.gs</name >
68
- <value >YOUR_BUCKET_NAME </value >
68
+ <value >gs://your_bucket </value >
69
69
</property >
70
70
</configuration >
71
71
```
You can’t perform that action at this time.
0 commit comments