fx19880617 commented on a change in pull request #4874: Pinot ingestion job -
Standalone
URL: https://github.com/apache/incubator-pinot/pull/4874#discussion_r352903829
##########
File path:
pinot-common/src/main/java/org/apache/pinot/filesystem/PinotFSFactory.java
##########
@@ -43,6 +43,18 @@ private PinotFSFactory() {
}
+ public static void register(String scheme, String fsClassName, Configuration
configuration) {
+ try {
+ LOGGER.info("Initializing PinotFS for scheme {}, classname {}", scheme,
fsClassName);
+ PinotFS pinotFS = (PinotFS) Class.forName(fsClassName).newInstance();
+ pinotFS.init(configuration);
+ _fileSystemMap.put(scheme, pinotFS);
+ } catch (InstantiationException | IllegalAccessException |
ClassNotFoundException e) {
+ LOGGER.error("Could not instantiate file system for class {}",
fsClassName, e);
Review comment:
will do
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]