Package org.apache.hadoop.util
package org.apache.hadoop.util
Common utilities.
-
ClassDescriptionA
URLClassLoaderfor application isolation.org.apache.hadoop.util.AsyncDiskServiceorg.apache.hadoop.util.AutoCloseableLockThis is a wrap class of a ReentrantLock.org.apache.hadoop.util.BasicDiskValidatorBasicDiskValidator is a wrapper aroundDiskChecker.org.apache.hadoop.util.BlockingThreadPoolExecutorServiceThis ExecutorService blocks the submission of new tasks when its queue is already full by using a semaphore.org.apache.hadoop.util.CacheableIPListCacheableIPList loads a list of subnets from a file.org.apache.hadoop.util.ChunkedArrayList<T>Simplified List implementation which stores elements as a list of chunks, each chunk having a maximum size.org.apache.hadoop.util.ClasspathCommand-line utility for getting the full classpath needed to launch a Hadoop client application.org.apache.hadoop.util.ClassUtilorg.apache.hadoop.util.CleanerUtilsun.misc.Cleaner has moved in OpenJDK 9 and sun.misc.Unsafe#invokeCleaner(ByteBuffer) is the replacement.org.apache.hadoop.util.CleanerUtil.BufferCleanerPass in an implementation of this interface to cleanup ByteBuffers.org.apache.hadoop.util.CloseableReferenceCountA closeable object that maintains a reference count.org.apache.hadoop.util.CombinedIPListUtil class to stores ips/hosts/subnets.org.apache.hadoop.util.CombinedIPWhiteListorg.apache.hadoop.util.ComparableVersionGeneric implementation of version comparison.org.apache.hadoop.util.ConfigurationHelperConfiguration Helper class to provide advanced configuration parsing.org.apache.hadoop.util.ConfTestThis class validates configuration XML files in ${HADOOP_CONF_DIR} or specified ones.org.apache.hadoop.util.CpuTimeTrackerUtility for sampling and computing CPU usage.org.apache.hadoop.util.CrcComposerEncapsulates logic for composing multiple CRCs into one or more combined CRCs corresponding to concatenated underlying data ranges.org.apache.hadoop.util.CrcUtilThis class provides utilities for working with CRCs.org.apache.hadoop.util.DaemonA thread that has calledThread.setDaemon(boolean)with true.org.apache.hadoop.util.Daemon.DaemonFactoryProvide a factory for named daemon threads, for use in ExecutorServices constructorsorg.apache.hadoop.util.DataChecksumThis class provides interface and utilities for processing checksums for DFS data transfers.The checksum typesorg.apache.hadoop.util.DirectBufferPoolA simple class for pooling direct ByteBuffers.org.apache.hadoop.util.DiskCheckerClass that provides utility functions for checking disk problemorg.apache.hadoop.util.DiskChecker.DiskErrorExceptionorg.apache.hadoop.util.DiskChecker.DiskOutOfSpaceExceptionorg.apache.hadoop.util.DiskValidatorA interface for disk validators.org.apache.hadoop.util.DiskValidatorFactoryThe factory class to create instance ofDiskValidator.A duration with logging of final state at info or debug in theclose()call.org.apache.hadoop.util.ExitCodeProviderGet the exit code of an exception.org.apache.hadoop.util.ExitUtilFacilitates hooking process termination for tests, debugging and embedding.org.apache.hadoop.util.ExitUtil.ExitExceptionAn exception raised when a call toExitUtil.terminate(int)was called and system exits were blocked.org.apache.hadoop.util.ExitUtil.HaltExceptionAn exception raised when a call toExitUtil.terminate(int)was called and system halts were blocked.org.apache.hadoop.util.FastNumberFormatFast thread-safe version of NumberFormatorg.apache.hadoop.util.FileBasedIPListFileBasedIPList loads a list of subnets in CIDR format and ip addresses from a file.org.apache.hadoop.util.FindClassThis entry point exists for diagnosing classloader problems: is a class or resource present -and if so, where?org.apache.hadoop.util.GcTimeMonitorThis class monitors the percentage of time the JVM is paused in GC within the specified observation window, say 1 minute.org.apache.hadoop.util.GcTimeMonitor.Builderorg.apache.hadoop.util.GcTimeMonitor.GcDataEncapsulates data about GC pauses measured at the specific timestamp.org.apache.hadoop.util.GcTimeMonitor.GcTimeAlertHandlerThe user can provide an instance of a class implementing this interface when initializing a GcTimeMonitor to receive alerts when GC time percentage exceeds the specified threshold.org.apache.hadoop.util.GenericOptionsParserGenericOptionsParseris a utility to parse command line arguments generic to the Hadoop framework.org.apache.hadoop.util.GenericsUtilContains utility methods for dealing with Java Generics.org.apache.hadoop.util.GSet<K,E extends K> AGSetis set, which supports theGSet.get(Object)operation.org.apache.hadoop.util.GSetByHashMap<K,E extends K> AGSetimplementation byHashMap.org.apache.hadoop.util.HeapSortAn implementation of the core algorithm of HeapSort.org.apache.hadoop.util.HostsFileReaderorg.apache.hadoop.util.HostsFileReader.HostDetailsAn atomic view of the included and excluded hostsorg.apache.hadoop.util.HttpExceptionUtilsHTTP utility class to help propagate server side exception to the client over HTTP as a JSON payload.org.apache.hadoop.util.IdentityHashStore<K,V> The IdentityHashStore stores (key, value) mappings in an array.org.apache.hadoop.util.IdentityHashStore.Visitor<K,V> org.apache.hadoop.util.IdGeneratorGeneric ID generator used for generating various types of number sequences.org.apache.hadoop.util.IndexedSortableInterface for collections capable of being sorted byIndexedSorteralgorithms.org.apache.hadoop.util.IndexedSorterInterface for sort algorithms acceptingIndexedSortableitems.org.apache.hadoop.util.InstrumentedLockThis is a debugging class that can be used by callers to track whether a specific lock is being held for too long and periodically log a warning and stack trace, if so.org.apache.hadoop.util.InstrumentedLock.SuppressedSnapshotImmutable class to capture a snapshot of suppressed log message stats.org.apache.hadoop.util.InstrumentedReadLockThis is a wrap class of aReadLock.org.apache.hadoop.util.InstrumentedReadWriteLockThis is a wrap class of aReentrantReadWriteLock.org.apache.hadoop.util.InstrumentedWriteLockThis is a wrap class of aWriteLock.org.apache.hadoop.util.IntrusiveCollection<E extends org.apache.hadoop.util.IntrusiveCollection.Element>Implements an intrusive doubly-linked list.org.apache.hadoop.util.IntrusiveCollection.ElementAn element contained in this list.org.apache.hadoop.util.InvalidChecksumSizeExceptionThrown when bytesPerChecksun field in the meta file is less than or equal to 0 or type is invalid.org.apache.hadoop.util.JsonSerialization<T>Support for marshalling objects to and from JSON.org.apache.hadoop.util.JvmPauseMonitorClass which sets up a simple thread which runs in a loop sleeping for a short interval of time.org.apache.hadoop.util.KMSUtilUtils for KMS.org.apache.hadoop.util.LambdaUtilsLambda-expression utilities be they generic or specific to Hadoop datatypes.org.apache.hadoop.util.LightWeightCache<K,E extends K> A low memory footprint Cache which extendsLightWeightGSet.org.apache.hadoop.util.LightWeightCache.EntryEntries ofLightWeightCache.org.apache.hadoop.util.LightWeightGSet<K,E extends K> A low memory footprintGSetimplementation, which uses an array for storing the elements and linked lists for collision resolution.org.apache.hadoop.util.LightWeightGSet.LinkedElementElements ofLightWeightGSet.org.apache.hadoop.util.LightWeightResizableGSet<K,E extends K> A low memory footprintGSetimplementation, which uses an array for storing the elements and linked lists for collision resolution.org.apache.hadoop.util.LimitInputStreamCopied from guava source code v15 (LimitedInputStream) Guava deprecated LimitInputStream in v14 and removed it in v15.org.apache.hadoop.util.LineReaderA class that provides a line reader from an input stream.org.apache.hadoop.util.ListsStatic utility methods pertaining toListinstances.org.apache.hadoop.util.MachineListContainer class which holds a list of ip/host addresses and answers membership queries.org.apache.hadoop.util.MachineList.InetAddressFactoryInetAddressFactory is used to obtain InetAddress from host.org.apache.hadoop.util.MergeSortAn implementation of the core algorithm of MergeSort.org.apache.hadoop.util.NativeCodeLoaderA helper to load the native hadoop code i.e. libhadoop.so.org.apache.hadoop.util.NativeLibraryCheckerLittle duration counter.org.apache.hadoop.util.OptionsThis class allows generic access to variable length type-safe parameter lists.org.apache.hadoop.util.Options.BooleanOptionorg.apache.hadoop.util.Options.ClassOptionorg.apache.hadoop.util.Options.FSDataInputStreamOptionorg.apache.hadoop.util.Options.FSDataOutputStreamOptionorg.apache.hadoop.util.Options.IntegerOptionorg.apache.hadoop.util.Options.LongOptionorg.apache.hadoop.util.Options.PathOptionorg.apache.hadoop.util.Options.ProgressableOptionorg.apache.hadoop.util.Options.StringOptionorg.apache.hadoop.util.PerformanceAdvisoryorg.apache.hadoop.util.PlatformNameA helper class for getting build-info of the java-vm.org.apache.hadoop.util.PreconditionsThis class replacesguava.Preconditionswhich provides helpers to validate the following conditions: An invalidnullobj causes aNullPointerException. An invalid argument causes anIllegalArgumentException. An invalid state causes anIllegalStateException. An invalid index causes anIndexOutOfBoundsException.org.apache.hadoop.util.PrintJarMainClassA micro-application that prints the main class name out of a jar file.org.apache.hadoop.util.PriorityQueue<T>A PriorityQueue maintains a partial ordering of its elements such that the least element can always be found in constant time.org.apache.hadoop.util.ProcessUtilsProcess related utilities.org.apache.hadoop.util.ProgramDriverA driver that is used to run programs added to itorg.apache.hadoop.util.ProgressUtility to assist with generation of progress reports.A facility for reporting progress.org.apache.hadoop.util.ProtoUtilA pure-java implementation of the CRC32 checksum that uses the same polynomial as the built-in native CRC32.A pure-java implementation of the CRC32 checksum that uses the CRC32-C polynomial, the same polynomial used by iSCSI and implemented on many Intel chipsets supporting SSE4.2.org.apache.hadoop.util.QuickSortAn implementation of the core algorithm of QuickSort.org.apache.hadoop.util.RateLimitingMinimal subset of google rate limiter class.org.apache.hadoop.util.RateLimitingFactoryFactory for Rate Limiting.org.apache.hadoop.util.ReadWriteDiskValidatorReadWriteDiskValidator is the class to check a directory by to create a file, write some bytes into it, read back, and verify if they are identical.org.apache.hadoop.util.ReadWriteDiskValidatorMetricsThe metrics for a directory generated byReadWriteDiskValidator.General reflection utilsorg.apache.hadoop.util.RunJarRun a Hadoop job jar.org.apache.hadoop.util.SemaphoredDelegatingExecutorThis ExecutorService blocks the submission of new tasks when its queue is already full by using a semaphore.org.apache.hadoop.util.SequentialNumberSequential number generator.org.apache.hadoop.util.ServicePluginService plug-in interface.org.apache.hadoop.util.ServletUtilorg.apache.hadoop.util.SetsStatic utility methods pertaining toSetinstances.A base class for running a Shell command.org.apache.hadoop.util.Shell.CommandExecutororg.apache.hadoop.util.Shell.ExitCodeExceptionThis is an IOException with exit code added.org.apache.hadoop.util.Shell.ShellCommandExecutorA simple shell command executor.TheShutdownHookManagerenables running shutdownHook in a deterministic order, higher priority first.org.apache.hadoop.util.ShutdownThreadsHelperHelper class to shutdownThreads andExecutorServices.org.apache.hadoop.util.SignalLoggerThis class logs a message whenever we're about to exit on a UNIX signal.org.apache.hadoop.util.SignalUtilorg.apache.hadoop.util.SignalUtil.Handlerorg.apache.hadoop.util.SignalUtil.Signalorg.apache.hadoop.util.StopWatchA simplified StopWatch implementation which can measure times in nanoseconds.Provides string interning utility methods.org.apache.hadoop.util.StringUtilsGeneral string utilsThe traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer.Plugin to calculate resource information on the system.org.apache.hadoop.util.SysInfoLinuxPlugin to calculate resource information on Linux systems.org.apache.hadoop.util.SysInfoWindowsPlugin to calculate resource information on Windows systems.org.apache.hadoop.util.ThreadUtilorg.apache.hadoop.util.TimeUtility methods for getting the time and computing intervals.org.apache.hadoop.util.TimerUtility methods for getting the time and computing intervals.A tool interface that supports handling of generic command-line options.A utility to help runTools.org.apache.hadoop.util.UTF8ByteArrayUtilsThis class returns build information about Hadoop components.org.apache.hadoop.util.VersionUtilA wrapper class to maven's ComparableVersion class, to comply with maven's version name string conventionorg.apache.hadoop.util.Waitable<T>Represents an object that you can wait for.org.apache.hadoop.util.WeakReferenceMap<K,V> A map of keys type K to objects of type V which uses weak references, so does lot leak memory through long-lived references at the expense of losing references when GC takes place..org.apache.hadoop.util.XMLUtilsGeneral xml utilities.org.apache.hadoop.util.ZKUtilUtilities for working with ZooKeeper.org.apache.hadoop.util.ZKUtil.BadAclFormatExceptionorg.apache.hadoop.util.ZKUtil.BadAuthFormatExceptionorg.apache.hadoop.util.ZKUtil.ZKAuthInfoAn authentication token passed to ZooKeeper.addAuthInfo