public class PropertiesUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DAY |
static String |
DAYS |
static String |
GB |
static String |
GROUPS |
static String |
HADOOP_USER |
static String |
HOUR |
static String |
HOURS |
static String |
KB |
static String |
MAP_IN |
static String |
MAP_OUT |
static String |
MB |
static String |
MINUTE |
static String |
MINUTES |
static String |
MONTH |
static String |
PB |
static String |
RECORDS |
static String |
REDUCE_IN |
static String |
REDUCE_OUT |
static String |
TB |
static String |
YEAR |
Constructor and Description |
---|
PropertiesUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDisallowedProperties(org.apache.hadoop.conf.Configuration conf,
Set<String> set)
Validate against DISALLOWED Properties.
|
static void |
createPropertySet(String[] properties,
Set<String> set)
Create a set from an array
|
static String |
propertiesToString(Properties props) |
static Properties |
readProperties(Reader reader,
int maxDataLen) |
static Properties |
stringToProperties(String str) |
public static final String HADOOP_USER
public static final String YEAR
public static final String MONTH
public static final String DAY
public static final String HOUR
public static final String MINUTE
public static final String DAYS
public static final String HOURS
public static final String MINUTES
public static final String KB
public static final String MB
public static final String GB
public static final String TB
public static final String PB
public static final String RECORDS
public static final String MAP_IN
public static final String MAP_OUT
public static final String REDUCE_IN
public static final String REDUCE_OUT
public static final String GROUPS
public PropertiesUtils()
public static String propertiesToString(Properties props)
public static Properties stringToProperties(String str)
public static Properties readProperties(Reader reader, int maxDataLen) throws IOException
IOException
public static void createPropertySet(String[] properties, Set<String> set)
properties
- String arrayset
- String setpublic static void checkDisallowedProperties(org.apache.hadoop.conf.Configuration conf, Set<String> set) throws CommandException
conf
- : configuration to check.set
- the set containing the disallowed propertiesCommandException
- if a property in the set is not null in the confCopyright © 2018 Apache Software Foundation. All rights reserved.