congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StringUtils.popOption
Code IndexAdd Tabnine to your IDE (free)

How to use
popOption
method
in
org.apache.hadoop.util.StringUtils

Best Java code snippets using org.apache.hadoop.util.StringUtils.popOption (Showing top 20 results out of 315)

origin: org.apache.hadoop/hadoop-common

 minKeyLength = Integer.parseInt(mkl);
securityRequired = popOption(ARG_SECURE, args);
nofail = popOption(ARG_NOFAIL, args);
jaas = popOption(ARG_JAAS, args);
nologin = popOption(ARG_NOLOGIN, args);
checkShortName = popOption(ARG_VERIFYSHORTNAME, args);
origin: org.apache.hadoop/hadoop-hdfs

 args.add(argv[j]);
boolean incremental = StringUtils.popOption("-incremental", args);
String hostPort = StringUtils.popFirstNonOption(args);
if (hostPort == null) {
origin: org.apache.hadoop/hadoop-common

@Override
protected void processOptions(LinkedList<String> args) throws IOException {
 name = StringUtils.popOptionWithArgument("-n", args);
 String en = StringUtils.popOptionWithArgument("-e", args);
 if (en != null) {
  try {
   encoding = XAttrCodec.valueOf(StringUtils.toUpperCase(en));
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException(
     "Invalid/unsupported encoding option specified: " + en);
  }
  Preconditions.checkArgument(encoding != null,
    "Invalid/unsupported encoding option specified: " + en);
 }
 boolean r = StringUtils.popOption("-R", args);
 setRecursive(r);
 dump = StringUtils.popOption("-d", args);
 if (!dump && name == null) {
  throw new HadoopIllegalArgumentException(
    "Must specify '-n name' or '-d' option.");
 }
 if (args.isEmpty()) {
  throw new HadoopIllegalArgumentException("<path> is missing.");
 }
 if (args.size() > 1) {
  throw new HadoopIllegalArgumentException("Too many arguments.");
 }
}
origin: org.apache.hadoop/hadoop-hdfs

final boolean listLive = StringUtils.popOption("-live", args);
final boolean listDead = StringUtils.popOption("-dead", args);
final boolean listDecommissioning =
  StringUtils.popOption("-decommissioning", args);
final boolean listEnteringMaintenance =
  StringUtils.popOption("-enteringmaintenance", args);
final boolean listInMaintenance =
  StringUtils.popOption("-inmaintenance", args);
origin: org.apache.hadoop/hadoop-common

 args.add(arg);
if (StringUtils.popOption("-h", args) ||
  StringUtils.popOption("-help", args)) {
 usage();
 return 0;
origin: org.apache.hadoop/hadoop-hdfs

@Override
public int run(Configuration conf, List<String> args) throws IOException {
 String name = StringUtils.popFirstNonOption(args);
 final boolean printStats = StringUtils.popOption("-stats", args);
 if (!args.isEmpty()) {
  System.err.print("Can't understand arguments: " +
origin: org.apache.hadoop/hadoop-hdfs

@Override
public int run(Configuration conf, List<String> args) throws IOException {
 final String path = StringUtils.popOptionWithArgument("-path", args);
 final boolean start = StringUtils.popOption("-start", args);
 final boolean cancel = StringUtils.popOption("-cancel", args);
origin: ch.cern.hadoop/hadoop-hdfs

 args.add(argv[j]);
boolean incremental = StringUtils.popOption("-incremental", args);
String hostPort = StringUtils.popFirstNonOption(args);
if (hostPort == null) {
origin: org.apache.hadoop/hadoop-hdfs

if (argv != null) {
 List<String> args = new ArrayList<>(Arrays.asList(argv));
 if (StringUtils.popOption("-blockingDecommission", args)) {
  types.add(OpenFilesType.BLOCKING_DECOMMISSION);
origin: io.prestosql.hadoop/hadoop-apache

 args.add(argv[j]);
boolean incremental = StringUtils.popOption("-incremental", args);
String hostPort = StringUtils.popFirstNonOption(args);
if (hostPort == null) {
origin: org.apache.hadoop/hadoop-hdfs

boolean force = StringUtils.popOption("-force", args);
String replicationString =
  StringUtils.popOptionWithArgument("-replication", args);
origin: org.apache.hadoop/hadoop-hdfs

 modified = true;
boolean force = StringUtils.popOption("-force", args);
String replicationString =
 StringUtils.popOptionWithArgument("-replication", args);
origin: org.apache.hadoop/hadoop-hdfs

final boolean replicate = StringUtils.popOption("-replicate", args);
origin: org.apache.hadoop/hadoop-hdfs

 builder.setPool(poolFilter);
boolean printStats = StringUtils.popOption("-stats", args);
String idFilter = StringUtils.popOptionWithArgument("-id", args);
if (idFilter != null) {
origin: io.hops/hadoop-common

@Override
protected void processOptions(LinkedList<String> args) throws IOException {
 name = StringUtils.popOptionWithArgument("-n", args);
 String en = StringUtils.popOptionWithArgument("-e", args);
 if (en != null) {
  try {
   encoding = enValueOfFunc.apply(StringUtils.toUpperCase(en));
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException(
     "Invalid/unsupported encoding option specified: " + en);
  }
  Preconditions.checkArgument(encoding != null,
    "Invalid/unsupported encoding option specified: " + en);
 }
 boolean r = StringUtils.popOption("-R", args);
 setRecursive(r);
 dump = StringUtils.popOption("-d", args);
 if (!dump && name == null) {
  throw new HadoopIllegalArgumentException(
    "Must specify '-n name' or '-d' option.");
 }
 if (args.isEmpty()) {
  throw new HadoopIllegalArgumentException("<path> is missing.");
 }
 if (args.size() > 1) {
  throw new HadoopIllegalArgumentException("Too many arguments.");
 }
}
origin: ch.cern.hadoop/hadoop-common

@Override
protected void processOptions(LinkedList<String> args) throws IOException {
 name = StringUtils.popOptionWithArgument("-n", args);
 String en = StringUtils.popOptionWithArgument("-e", args);
 if (en != null) {
  try {
   encoding = enValueOfFunc.apply(StringUtils.toUpperCase(en));
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException(
     "Invalid/unsupported encoding option specified: " + en);
  }
  Preconditions.checkArgument(encoding != null,
    "Invalid/unsupported encoding option specified: " + en);
 }
 boolean r = StringUtils.popOption("-R", args);
 setRecursive(r);
 dump = StringUtils.popOption("-d", args);
 if (!dump && name == null) {
  throw new HadoopIllegalArgumentException(
    "Must specify '-n name' or '-d' option.");
 }
 if (args.isEmpty()) {
  throw new HadoopIllegalArgumentException("<path> is missing.");
 }
 if (args.size() > 1) {
  throw new HadoopIllegalArgumentException("Too many arguments.");
 }
}
origin: com.github.jiayuhan-it/hadoop-common

@Override
protected void processOptions(LinkedList<String> args) throws IOException {
 name = StringUtils.popOptionWithArgument("-n", args);
 String en = StringUtils.popOptionWithArgument("-e", args);
 if (en != null) {
  try {
   encoding = enValueOfFunc.apply(StringUtils.toUpperCase(en));
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException(
     "Invalid/unsupported encoding option specified: " + en);
  }
  Preconditions.checkArgument(encoding != null,
    "Invalid/unsupported encoding option specified: " + en);
 }
 boolean r = StringUtils.popOption("-R", args);
 setRecursive(r);
 dump = StringUtils.popOption("-d", args);
 if (!dump && name == null) {
  throw new HadoopIllegalArgumentException(
    "Must specify '-n name' or '-d' option.");
 }
 if (args.isEmpty()) {
  throw new HadoopIllegalArgumentException("<path> is missing.");
 }
 if (args.size() > 1) {
  throw new HadoopIllegalArgumentException("Too many arguments.");
 }
}
origin: io.hops/hadoop-common

 minKeyLength = Integer.parseInt(mkl);
securityRequired = popOption(ARG_SECURE, args);
nofail = popOption(ARG_NOFAIL, args);
jaas = popOption(ARG_JAAS, args);
nologin = popOption(ARG_NOLOGIN, args);
checkShortName = popOption(ARG_VERIFYSHORTNAME, args);
origin: io.prestosql.hadoop/hadoop-apache

@Override
protected void processOptions(LinkedList<String> args) throws IOException {
 name = StringUtils.popOptionWithArgument("-n", args);
 String en = StringUtils.popOptionWithArgument("-e", args);
 if (en != null) {
  try {
   encoding = enValueOfFunc.apply(StringUtils.toUpperCase(en));
  } catch (IllegalArgumentException e) {
   throw new IllegalArgumentException(
     "Invalid/unsupported encoding option specified: " + en);
  }
  Preconditions.checkArgument(encoding != null,
    "Invalid/unsupported encoding option specified: " + en);
 }
 boolean r = StringUtils.popOption("-R", args);
 setRecursive(r);
 dump = StringUtils.popOption("-d", args);
 if (!dump && name == null) {
  throw new HadoopIllegalArgumentException(
    "Must specify '-n name' or '-d' option.");
 }
 if (args.isEmpty()) {
  throw new HadoopIllegalArgumentException("<path> is missing.");
 }
 if (args.size() > 1) {
  throw new HadoopIllegalArgumentException("Too many arguments.");
 }
}
origin: ch.cern.hadoop/hadoop-common

 args.add(arg);
if (StringUtils.popOption("-h", args) ||
  StringUtils.popOption("-help", args)) {
 usage();
 return 0;
org.apache.hadoop.utilStringUtilspopOption

Javadoc

From a list of command-line arguments, remove an option.

Popular methods of StringUtils

  • stringifyException
    Make a string representation of the exception.
  • join
    Concatenates strings, using a separator.
  • split
  • arrayToString
  • toLowerCase
    Converts all of the characters in this String to lower case with Locale.ENGLISH.
  • escapeString
  • startupShutdownMessage
    Print a log message for starting up and shutting down
  • getStrings
    Returns an arraylist of strings.
  • toUpperCase
    Converts all of the characters in this String to upper case with Locale.ENGLISH.
  • byteToHexString
    Given an array of bytes it will convert the bytes to a hex string representation of the bytes
  • formatTime
    Given the time in long milliseconds, returns a String in the format Xhrs, Ymins, Z sec.
  • unEscapeString
  • formatTime,
  • unEscapeString,
  • getStringCollection,
  • byteDesc,
  • formatPercent,
  • getTrimmedStrings,
  • equalsIgnoreCase,
  • format,
  • formatTimeDiff,
  • getTrimmedStringCollection

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for Android Studio
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