Package org.apache.accumulo.server.init
Class Initialize
- java.lang.Object
-
- org.apache.accumulo.server.init.Initialize
-
- All Implemented Interfaces:
KeywordExecutable
@AutoService(org.apache.accumulo.start.spi.KeywordExecutable.class) public class Initialize extends Object implements KeywordExecutable
This class is used to setup the directory structure and the root tablet to get an instance started
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.accumulo.start.spi.KeywordExecutable
KeywordExecutable.UsageGroup
-
-
Constructor Summary
Constructors Constructor Description Initialize()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()booleandoInit(SiteConfiguration siteConfig, org.apache.accumulo.server.init.Initialize.Opts opts, org.apache.hadoop.conf.Configuration conf, VolumeManager fs)voidexecute(String[] args)static voidinitSystemTablesConfig(ZooReaderWriter zoo, String zooKeeperRoot, org.apache.hadoop.conf.Configuration hadoopConf)static booleanisInitialized(VolumeManager fs, SiteConfiguration siteConfig, org.apache.hadoop.conf.Configuration hadoopConf)Stringkeyword()static voidmain(String[] args)KeywordExecutable.UsageGroupusageGroup()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.start.spi.KeywordExecutable
usage
-
-
-
-
Method Detail
-
doInit
public boolean doInit(SiteConfiguration siteConfig, org.apache.accumulo.server.init.Initialize.Opts opts, org.apache.hadoop.conf.Configuration conf, VolumeManager fs) throws IOException
- Throws:
IOException
-
initSystemTablesConfig
public static void initSystemTablesConfig(ZooReaderWriter zoo, String zooKeeperRoot, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
- Throws:
IOException
-
isInitialized
public static boolean isInitialized(VolumeManager fs, SiteConfiguration siteConfig, org.apache.hadoop.conf.Configuration hadoopConf) throws IOException
- Throws:
IOException
-
keyword
public String keyword()
- Specified by:
keywordin interfaceKeywordExecutable
-
usageGroup
public KeywordExecutable.UsageGroup usageGroup()
- Specified by:
usageGroupin interfaceKeywordExecutable
-
description
public String description()
- Specified by:
descriptionin interfaceKeywordExecutable
-
execute
public void execute(String[] args)
- Specified by:
executein interfaceKeywordExecutable
-
main
public static void main(String[] args)
-
-