Search in sources :

Example 1 with FileSystemViewManager

use of org.apache.hudi.common.table.view.FileSystemViewManager in project hudi by apache.

the class TimelineService method main.

public static void main(String[] args) throws Exception {
    final Config cfg = new Config();
    JCommander cmd = new JCommander(cfg, null, args);
    if (cfg.help) {
        cmd.usage();
        System.exit(1);
    }
    Configuration conf = FSUtils.prepareHadoopConf(new Configuration());
    FileSystemViewManager viewManager = buildFileSystemViewManager(cfg, new SerializableConfiguration(conf));
    TimelineService service = new TimelineService(new HoodieLocalEngineContext(FSUtils.prepareHadoopConf(new Configuration())), new Configuration(), cfg, FileSystem.get(new Configuration()), viewManager);
    service.run();
}
Also used : FileSystemViewManager(org.apache.hudi.common.table.view.FileSystemViewManager) Configuration(org.apache.hadoop.conf.Configuration) SerializableConfiguration(org.apache.hudi.common.config.SerializableConfiguration) FileSystemViewStorageConfig(org.apache.hudi.common.table.view.FileSystemViewStorageConfig) HoodieCommonConfig(org.apache.hudi.common.config.HoodieCommonConfig) HoodieMetadataConfig(org.apache.hudi.common.config.HoodieMetadataConfig) JCommander(com.beust.jcommander.JCommander) SerializableConfiguration(org.apache.hudi.common.config.SerializableConfiguration) HoodieLocalEngineContext(org.apache.hudi.common.engine.HoodieLocalEngineContext)

Aggregations

JCommander (com.beust.jcommander.JCommander)1 Configuration (org.apache.hadoop.conf.Configuration)1 HoodieCommonConfig (org.apache.hudi.common.config.HoodieCommonConfig)1 HoodieMetadataConfig (org.apache.hudi.common.config.HoodieMetadataConfig)1 SerializableConfiguration (org.apache.hudi.common.config.SerializableConfiguration)1 HoodieLocalEngineContext (org.apache.hudi.common.engine.HoodieLocalEngineContext)1 FileSystemViewManager (org.apache.hudi.common.table.view.FileSystemViewManager)1 FileSystemViewStorageConfig (org.apache.hudi.common.table.view.FileSystemViewStorageConfig)1