Codota Logo
org.apache.hadoop.util
Code IndexAdd Codota to your IDE (free)

How to use org.apache.hadoop.util

Best Java code snippets using org.apache.hadoop.util (Showing top 20 results out of 2,907)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: apache/flink

protected String _getBuildVersion(){
  return _getVersion() +
      " from " + _getRevision() +
      " by " + _getUser() +
      " source checksum " + _getSrcChecksum();
}
origin: apache/flink

  public static String getProtocVersion(){
    return COMMON_VERSION_INFO._getProtocVersion();
  }
}
origin: apache/flink

public static String getDate() {
  return COMMON_VERSION_INFO._getDate();
}
origin: apache/hive

/**
 * Returns a Stats Aggregator implementation class for the IStatsAggregator interface
 * For example HBaseStatsAggregator for the HBase implementation
 */
public StatsAggregator getStatsAggregator() {
 return (StatsAggregator) ReflectionUtils.newInstance(aggregatorImplementation, jobConf);
}
origin: apache/incubator-druid

 public String runTask(String[] args) throws Exception
 {
  int res = ToolRunner.run(new JobClient(), args);
  return res == 0 ? "Success" : "Fail";
 }
}
origin: apache/hive

/**
 * Take an encode strings and decode it into an array of strings.
 */
public static String[] decodeArray(String s) {
 if (s == null)
  return null;
 String[] escaped = StringUtils.split(s);
 String[] plain = new String[escaped.length];
 for (int i = 0; i < escaped.length; ++i)
  plain[i] = StringUtils.unEscapeString(escaped[i]);
 return plain;
}
origin: apache/flink

/**
 * Set the array of string values for the <code>name</code> property as
 * as comma delimited values.
 *
 * @param name property name.
 * @param values The values
 */
public void setStrings(String name, String... values) {
 set(name, StringUtils.arrayToString(values));
}
origin: org.apache.hadoop/hadoop-common

/**
 * Print a log message for starting up and shutting down
 * @param clazz the class of the server
 * @param args arguments
 * @param LOG the target log object
 */
public static void startupShutdownMessage(Class<?> clazz, String[] args,
                  final org.apache.commons.logging.Log LOG) {
 startupShutdownMessage(clazz, args, LogAdapter.create(LOG));
}
origin: org.apache.hadoop/hadoop-common

public CombinedIPList(String fixedBlackListFile,
  String variableBlackListFile, long cacheExpiryInSeconds) {
 IPList fixedNetworkList = new FileBasedIPList(fixedBlackListFile);
 if (variableBlackListFile != null) {
  IPList variableNetworkList = new CacheableIPList(
    new FileBasedIPList(variableBlackListFile), cacheExpiryInSeconds);
  networkLists = new IPList[]{fixedNetworkList, variableNetworkList};
 } else {
  networkLists = new IPList[]{fixedNetworkList};
 }
}
origin: org.apache.hadoop/hadoop-common

/**
 * Register some signal handlers.
 *
 * @param LOG        The log4j logfile to use in the signal handlers.
 */
public void register(final Log LOG) {
 register(LogAdapter.create(LOG));
}
origin: org.apache.hadoop/hadoop-common

@Override
public E put(final E element) {
 E existing = super.put(element);
 expandIfNecessary();
 return existing;
}
origin: apache/flink

public static String getBuildVersion(){
  return COMMON_VERSION_INFO._getBuildVersion();
}
origin: apache/flink

public static String getVersion() {
  return COMMON_VERSION_INFO._getVersion();
}
origin: apache/flink

public static String getRevision() {
  return COMMON_VERSION_INFO._getRevision();
}
origin: apache/flink

public static String getBranch() {
  return COMMON_VERSION_INFO._getBranch();
}
origin: apache/flink

public static String getUrl() {
  return COMMON_VERSION_INFO._getUrl();
}
origin: apache/flink

public static String getUser() {
  return COMMON_VERSION_INFO._getUser();
}
origin: apache/flink

public static String getSrcChecksum() {
  return COMMON_VERSION_INFO._getSrcChecksum();
}
origin: org.apache.hadoop/hadoop-common

/** {@inheritDoc} */
@Override
public long getCumulativeCpuTime() {
 readProcStatFile();
 return cpuTimeTracker.getCumulativeCpuTime();
}
origin: apache/flink

/**
 * Set the array of string values for the <code>name</code> property as
 * as comma delimited values.
 *
 * @param name property name.
 * @param values The values
 */
public void setStrings(String name, String... values) {
  set(name, StringUtils.arrayToString(values));
}
org.apache.hadoop.util

Most used classes

  • ReflectionUtils
    General reflection utils. This is a copy of ReflectionUtils in hadoop-common-2.3.0.jar. This copy ha
  • ToolRunner
  • StringUtils
  • GenericOptionsParser
  • VersionInfo
    This class returns build information about Hadoop components.
  • ExitUtil,
  • Progressable,
  • LineReader,
  • Time,
  • ProgramDriver,
  • Shell$ShellCommandExecutor,
  • Shell,
  • StringUtils$TraditionalBinaryPrefix,
  • StringInterner,
  • Daemon,
  • ClassUtil,
  • RunJar,
  • Key,
  • Tool
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now