org.apache.accumulo.server.client
Class HdfsZooInstance
java.lang.Object
org.apache.accumulo.server.client.HdfsZooInstance
- All Implemented Interfaces:
- Instance
public class HdfsZooInstance
- extends Object
- implements Instance
An implementation of Instance that looks in HDFS and ZooKeeper to find the master and root tablet location.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static Instance getInstance()
getRootTabletLocation
public String getRootTabletLocation()
- Specified by:
getRootTabletLocation in interface Instance
getMasterLocations
public List<String> getMasterLocations()
- Specified by:
getMasterLocations in interface Instance
getInstanceID
public String getInstanceID()
- Specified by:
getInstanceID in interface Instance
getInstanceName
public String getInstanceName()
- Specified by:
getInstanceName in interface Instance
getZooKeepers
public String getZooKeepers()
- Specified by:
getZooKeepers in interface Instance
getZooKeepersSessionTimeOut
public int getZooKeepersSessionTimeOut()
- Specified by:
getZooKeepersSessionTimeOut in interface Instance
getConnector
public Connector getConnector(String user,
byte[] pass)
throws AccumuloException,
AccumuloSecurityException
- Specified by:
getConnector in interface Instance
- Throws:
AccumuloException
AccumuloSecurityException
getConnector
public Connector getConnector(String user,
ByteBuffer pass)
throws AccumuloException,
AccumuloSecurityException
- Specified by:
getConnector in interface Instance
- Throws:
AccumuloException
AccumuloSecurityException
getConnector
public Connector getConnector(String user,
CharSequence pass)
throws AccumuloException,
AccumuloSecurityException
- Specified by:
getConnector in interface Instance
- Throws:
AccumuloException
AccumuloSecurityException
getConfiguration
public AccumuloConfiguration getConfiguration()
- Specified by:
getConfiguration in interface Instance
setConfiguration
public void setConfiguration(AccumuloConfiguration conf)
- Specified by:
setConfiguration in interface Instance
main
public static void main(String[] args)
getConnector
public Connector getConnector(AuthInfo auth)
throws AccumuloException,
AccumuloSecurityException
- Specified by:
getConnector in interface Instance
- Throws:
AccumuloException
AccumuloSecurityException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.