congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.hadoop.util
Code IndexAdd Tabnine 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)

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
  • ToolRunner
  • StringUtils
    General string utils
  • GenericOptionsParser
    GenericOptionsParser is a utility to parse command line arguments generic to the Hadoop framework.Ge
  • VersionInfo
    This class finds the package info for Hadoop and the HadoopVersionAnnotation information.
  • ExitUtil,
  • Progressable,
  • LineReader,
  • Time,
  • ProgramDriver,
  • Shell$ShellCommandExecutor,
  • Shell,
  • StringUtils$TraditionalBinaryPrefix,
  • StringInterner,
  • Daemon,
  • ClassUtil,
  • RunJar,
  • Key,
  • Tool
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now