I have been able to do it using the following lines:
        BasicHadoopFileSystemFactory f = new BasicHadoopFileSystemFactory();
        f.setConfigPaths("cfg.xml");

        IgniteHadoopIgfsSecondaryFileSystem sec = new
IgniteHadoopIgfsSecondaryFileSystem();
        sec.setFileSystemFactory(f);

        fileSystemCfg.setSecondaryFileSystem(sec);
        fileSystemCfg.setDefaultMode(IgfsMode.DUAL_ASYNC);

The "cfg.xml" file contains the S3 access and secret keys, and the bucket
URI. However, I would like to set the configuration in the code not in a
configuration file. Taking a look at the BasicHadoopFileSystemFactory class
you can only specify a file path. Is there any reason to not allow passing a
Hadoop Configuration instance?

Best,
Oscar



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to