public class VolumeConfiguration extends Object
Constructor and Description |
---|
VolumeConfiguration() |
Modifier and Type | Method and Description |
---|---|
static Volume |
create(org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static <T extends org.apache.hadoop.fs.FileSystem> |
create(T fs,
AccumuloConfiguration acuconf)
Create a Volume with the given FileSystem that writes to the default path
|
static <T extends org.apache.hadoop.fs.FileSystem> |
create(T fs,
String basePath) |
static String |
getConfiguredBaseDir(AccumuloConfiguration conf,
org.apache.hadoop.conf.Configuration hadoopConfig)
Deprecated.
|
static Volume |
getDefaultVolume(org.apache.hadoop.conf.Configuration conf,
AccumuloConfiguration acuconf) |
static Volume |
getVolume(String path,
org.apache.hadoop.conf.Configuration conf,
AccumuloConfiguration acuconf) |
static String[] |
getVolumeUris(AccumuloConfiguration conf)
Compute the URIs to be used by Accumulo
|
static String[] |
getVolumeUris(AccumuloConfiguration conf,
org.apache.hadoop.conf.Configuration hadoopConfig) |
static String[] |
prefix(String[] bases,
String suffix) |
public static Volume getVolume(String path, org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf) throws IOException
IOException
public static Volume getDefaultVolume(org.apache.hadoop.conf.Configuration conf, AccumuloConfiguration acuconf) throws IOException
IOException
@Deprecated public static String getConfiguredBaseDir(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
public static String[] getVolumeUris(AccumuloConfiguration conf)
public static String[] getVolumeUris(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConfig)
public static <T extends org.apache.hadoop.fs.FileSystem> Volume create(T fs, AccumuloConfiguration acuconf)
fs
- A FileSystem to write topublic static <T extends org.apache.hadoop.fs.FileSystem> Volume create(T fs, String basePath)
public static Volume create(org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.