Class ConfiguratorBase

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ConfiguratorBase.ConnectorInfo
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      protected static class  ConfiguratorBase.GeneralOpts
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      protected static class  ConfiguratorBase.InstanceOpts
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfiguratorBase()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected static String enumToConfKey​(Class<?> implementingClass, Enum<?> e)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static Instance getInstance​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static org.apache.log4j.Level getLogLevel​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static String getPrincipal​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static byte[] getToken​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static String getTokenClass​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static Boolean isConnectorInfoSet​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static void setConnectorInfo​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String principal, AuthenticationToken token)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static void setLogLevel​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, org.apache.log4j.Level level)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static void setMockInstance​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String instanceName)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
      static void setZooKeeperInstance​(Class<?> implementingClass, org.apache.hadoop.conf.Configuration conf, String instanceName, String zooKeepers)
      Deprecated.
      since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
    • Constructor Detail

      • ConfiguratorBase

        public ConfiguratorBase()
        Deprecated.
    • Method Detail

      • enumToConfKey

        @Deprecated
        protected static String enumToConfKey​(Class<?> implementingClass,
                                              Enum<?> e)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Provides a configuration key for a given feature enum, prefixed by the implementingClass
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        e - the enum used to provide the unique part of the configuration key
        Returns:
        the configuration key
        Since:
        1.5.0
      • setConnectorInfo

        @Deprecated
        public static void setConnectorInfo​(Class<?> implementingClass,
                                            org.apache.hadoop.conf.Configuration conf,
                                            String principal,
                                            AuthenticationToken token)
                                     throws AccumuloSecurityException
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Sets the connector information needed to communicate with Accumulo in this job.

        WARNING: The serialized token is stored in the configuration and shared with all MapReduce tasks. It is BASE64 encoded to provide a charset safe conversion to a string, and is not intended to be secure.

        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        principal - a valid Accumulo user name
        token - the user's password
        Throws:
        AccumuloSecurityException
        Since:
        1.5.0
      • isConnectorInfoSet

        @Deprecated
        public static Boolean isConnectorInfoSet​(Class<?> implementingClass,
                                                 org.apache.hadoop.conf.Configuration conf)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Determines if the connector info has already been set for this instance.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        Returns:
        true if the connector info has already been set, false otherwise
        Since:
        1.5.0
        See Also:
        setConnectorInfo(Class, Configuration, String, AuthenticationToken)
      • getPrincipal

        @Deprecated
        public static String getPrincipal​(Class<?> implementingClass,
                                          org.apache.hadoop.conf.Configuration conf)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Gets the user name from the configuration.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        Returns:
        the principal
        Since:
        1.5.0
        See Also:
        setConnectorInfo(Class, Configuration, String, AuthenticationToken)
      • getToken

        @Deprecated
        public static byte[] getToken​(Class<?> implementingClass,
                                      org.apache.hadoop.conf.Configuration conf)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        DON'T USE THIS. No, really, don't use this. You already have an AuthenticationToken with ConfiguratorBase.getAuthenticationToken(Class, Configuration). You don't need to construct it yourself.

        Gets the password from the configuration. WARNING: The password is stored in the Configuration and shared with all MapReduce tasks; It is BASE64 encoded to provide a charset safe conversion to a string, and is not intended to be secure.

        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        Returns:
        the decoded principal's authentication token
        Since:
        1.5.0
        See Also:
        setConnectorInfo(Class, Configuration, String, AuthenticationToken)
      • setZooKeeperInstance

        @Deprecated
        public static void setZooKeeperInstance​(Class<?> implementingClass,
                                                org.apache.hadoop.conf.Configuration conf,
                                                String instanceName,
                                                String zooKeepers)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Configures a ZooKeeperInstance for this job.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        instanceName - the Accumulo instance name
        zooKeepers - a comma-separated list of zookeeper servers
        Since:
        1.5.0
      • setMockInstance

        @Deprecated
        public static void setMockInstance​(Class<?> implementingClass,
                                           org.apache.hadoop.conf.Configuration conf,
                                           String instanceName)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Configures a MockInstance for this job.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        instanceName - the Accumulo instance name
        Since:
        1.5.0
      • getInstance

        @Deprecated
        public static Instance getInstance​(Class<?> implementingClass,
                                           org.apache.hadoop.conf.Configuration conf)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Initializes an Accumulo Instance based on the configuration.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        Returns:
        an Accumulo instance
        Since:
        1.5.0
        See Also:
        setZooKeeperInstance(Class, Configuration, String, String)
      • setLogLevel

        @Deprecated
        public static void setLogLevel​(Class<?> implementingClass,
                                       org.apache.hadoop.conf.Configuration conf,
                                       org.apache.log4j.Level level)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Sets the log level for this job.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        level - the logging level
        Since:
        1.5.0
      • getLogLevel

        @Deprecated
        public static org.apache.log4j.Level getLogLevel​(Class<?> implementingClass,
                                                         org.apache.hadoop.conf.Configuration conf)
        Deprecated.
        since 1.6.0; Configure your job with the appropriate InputFormat or OutputFormat.
        Gets the log level from this configuration.
        Parameters:
        implementingClass - the class whose name will be used as a prefix for the property configuration key
        conf - the Hadoop configuration object to configure
        Returns:
        the log level
        Since:
        1.5.0
        See Also:
        setLogLevel(Class, Configuration, Level)