public class DFSPropertiesConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_FILE_DIR_ENV_NAME |
static String |
DEFAULT_CONF_FILE_DIR |
static org.apache.hadoop.fs.Path |
DEFAULT_PATH |
static String |
DEFAULT_PROPERTIES_FILE |
| Constructor and Description |
|---|
DFSPropertiesConfiguration() |
DFSPropertiesConfiguration(org.apache.hadoop.conf.Configuration hadoopConf,
org.apache.hadoop.fs.Path filePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropsFromFile(org.apache.hadoop.fs.Path filePath)
Add properties from external configuration files.
|
void |
addPropsFromStream(BufferedReader reader)
Add properties from buffered reader.
|
static TypedProperties |
addToGlobalProps(String key,
String value) |
static void |
clearGlobalProps() |
static TypedProperties |
getGlobalProps() |
TypedProperties |
getProps() |
TypedProperties |
getProps(boolean includeGlobalProps) |
static TypedProperties |
loadGlobalProps()
Load global props from hudi-defaults.conf which is under class loader or CONF_FILE_DIR_ENV_NAME.
|
static void |
refreshGlobalProps() |
public static final String DEFAULT_PROPERTIES_FILE
public static final String CONF_FILE_DIR_ENV_NAME
public static final String DEFAULT_CONF_FILE_DIR
public static final org.apache.hadoop.fs.Path DEFAULT_PATH
public DFSPropertiesConfiguration(@Nonnull org.apache.hadoop.conf.Configuration hadoopConf, @Nonnull org.apache.hadoop.fs.Path filePath)
public DFSPropertiesConfiguration()
public static TypedProperties loadGlobalProps()
public static void refreshGlobalProps()
public static void clearGlobalProps()
public void addPropsFromFile(org.apache.hadoop.fs.Path filePath)
filePath - File path for configuration filepublic void addPropsFromStream(BufferedReader reader) throws IOException
reader - Buffered ReaderIOExceptionpublic static TypedProperties getGlobalProps()
public static TypedProperties addToGlobalProps(String key, String value)
public TypedProperties getProps()
public TypedProperties getProps(boolean includeGlobalProps)
Copyright © 2022 The Apache Software Foundation. All rights reserved.