Tabnine Logo
StringUtils.stringifyException
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.hadoop.util.StringUtils.stringifyException (Showing top 20 results out of 1,260)

Refine searchRefine arrow

  • Log.warn
  • Log.info
  • Log.error
  • HiveException.<init>
  • Logger.error
origin: apache/hbase

public void configure(JobConf job) {
 try {
  initialize(job);
 } catch (Exception e) {
  LOG.error(StringUtils.stringifyException(e));
 }
}
origin: apache/hive

public void abortTransactions(List<Long> txnids) throws HiveException {
 try {
  getMSC().abortTxns(txnids);
 } catch (Exception e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: apache/hive

public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName)
 throws HiveException {
 try {
  return getMSC().deleteTableColumnStatistics(dbName, tableName, colName);
 } catch(Exception e) {
  LOG.debug(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: org.apache.hadoop/hadoop-yarn-common

String getAllProcessInfoFromShell() {
 try {
  ShellCommandExecutor shellExecutor = new ShellCommandExecutor(
    new String[] {Shell.getWinUtilsFile().getCanonicalPath(),
      "task", "processList", taskProcessId });
  shellExecutor.execute();
  return shellExecutor.getOutput();
 } catch (IOException e) {
  LOG.error(StringUtils.stringifyException(e));
 }
 return null;
}
origin: Qihoo360/XLearning

@SuppressWarnings("deprecation")
private boolean run() throws IOException, NoSuchAlgorithmException {
 LOG.info("ApplicationMaster Starting ...");
  LOG.info("Try to allocate " + psNum + " ps/server containers");
   LOG.debug("current hadoop version don't have the method updateBlacklist of Class " + amrmAsync.getClass().toString() + ". For More Detail:" + e);
  } catch (InvocationTargetException e) {
   LOG.error("InvocationTargetException : " + e);
  } catch (IllegalAccessException e) {
   LOG.error("IllegalAccessException : " + e);
    LOG.info("Canceling container: " + container.getId().toString());
    amrmAsync.releaseAssignedContainer(container.getId());
    amrmAsync.addContainerRequest(psContainerRequest);
   LOG.debug("current hadoop version don't have the method updateBlacklist of Class " + amrmAsync.getClass().toString() + ". For More Detail:" + e);
  } catch (InvocationTargetException e) {
   LOG.error("invoke the method updateBlacklist of Class " + amrmAsync.getClass().toString() + " InvocationTargetException Error : " + e);
  } catch (IllegalAccessException e) {
   LOG.error("invoke the method updateBlacklist of Class " + amrmAsync.getClass().toString() + " IllegalAccessException Error : " + e);
  finalSuccess = false;
  this.appendMessage("Some error occurs"
    + org.apache.hadoop.util.StringUtils.stringifyException(e), true);
  diagnostics = e.getMessage();
origin: intel-hadoop/HiBench

    threshold = Float.parseFloat(args[++i]);
    if(threshold > 1){
      LOG.warn("Summary threshold is larger than 1.0 ! Value should be within [0.0,1.0] !");
      threshold = 1.0f;
      LOG.warn("Summary threshold is smaller than 0.0 ! Value should be within [0.0,1.0] !");
      threshold = 0.0f;
      tputSampleUnit = GIGA;
    else {
      LOG.warn("Illegal format of parameter \"sampleUnit\", Ignored.");
LOG.info("nrFiles = " + nrFiles);
LOG.info("fileSize (MB) = " + fileSize);
LOG.info("bufferSize = " + bufferSize);
  System.err.print(StringUtils.stringifyException(e));
  return -1;
origin: intel-hadoop/HiBench

LOG.info("nrFiles = " + nrFiles);
LOG.info("fileSize (MB) = " + fileSize);
LOG.info("bufferSize = " + bufferSize);
 System.err.print(StringUtils.stringifyException(e));
 return -1;
origin: apache/sqoop

private void shutdown() {
 try {
  connection.commit();
  connection.close();
  connection = null;
 } catch (Throwable ex) {
  LOG.warn("Exception occurred while closing connection :"
    + StringUtils.stringifyException(ex));
 }
}
origin: apache/hive

public void validatePartitionNameCharacters(List<String> partVals) throws HiveException {
 try {
  getMSC().validatePartitionNameCharacters(partVals);
 } catch (Exception e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: apache/hive

protected Hive getHive() {
 try {
  return Hive.getWithFastCheck(conf);
 } catch (HiveException e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new RuntimeException(e);
 }
}
origin: apache/sqoop

public void createTableFromSQL(String sql) throws SQLException {
 Connection dbcon = this.getConnection();
 System.out.println("SQL : " + sql);
 this.dropTableIfExists("TPCH1M_LINEITEM");
 try {
  Statement st = dbcon.createStatement();
  int res = st.executeUpdate(sql);
  System.out.println("Result : " + res);
 } catch (SQLException e) {
  LOG.error("Got SQLException during creating table: " + StringUtils.stringifyException(e));
 }
}
origin: org.apache.hadoop/hadoop-yarn-server-resourcemanager

 @SuppressWarnings("unchecked")
 protected void onAMLaunchFailed(ContainerId containerId, Exception ie) {
  String message = "Error launching " + application.getAppAttemptId()
      + ". Got exception: " + StringUtils.stringifyException(ie);
  LOG.info(message);
  handler.handle(new RMAppAttemptEvent(application
      .getAppAttemptId(), RMAppAttemptEventType.LAUNCH_FAILED, message));
 }
}
origin: apache/sqoop

@Override
@After
public void tearDown() {
 try {
  shutdown();
 } catch (Exception e) {
  LOG.warn("Error shutting down HBase minicluster: "
      + StringUtils.stringifyException(e));
 }
 super.tearDown();
}
origin: apache/hive

public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName,
 String colName) throws HiveException {
  try {
   return getMSC().deletePartitionColumnStatistics(dbName, tableName, partName, colName);
  } catch(Exception e) {
   LOG.debug(StringUtils.stringifyException(e));
   throw new HiveException(e);
  }
 }
origin: apache/hive

public void cancelDelegationToken(String tokenStrForm)
 throws HiveException {
 try {
  getMSC().cancelDelegationToken(tokenStrForm);
 }  catch(Exception e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: apache/drill

protected Hive getHive() {
 try {
  return Hive.getWithFastCheck(conf);
 } catch (HiveException e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new RuntimeException(e);
 }
}
origin: apache/sqoop

@Before
public void setUp() {
 super.setUp();
 Path p = new Path(getWarehouseDir());
 try {
  FileSystem fs = FileSystem.get(new Configuration());
  fs.delete(p);
 } catch (IOException e) {
  LOG.error("Setup fail with IOException: " + StringUtils.stringifyException(e));
  fail("Setup fail with IOException: " + StringUtils.stringifyException(e));
 }
}
origin: apache/drill

public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName)
 throws HiveException {
 try {
  return getMSC().deleteTableColumnStatistics(dbName, tableName, colName);
 } catch(Exception e) {
  LOG.debug(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: apache/hive

public String getDelegationToken(String owner, String renewer)
 throws HiveException{
 try {
  return getMSC().getDelegationToken(owner, renewer);
 } catch(Exception e) {
  LOG.error(StringUtils.stringifyException(e));
  throw new HiveException(e);
 }
}
origin: apache/drill

private void failed(Throwable e) {
 while (e.getCause() != null && e.getClass() == RuntimeException.class) {
  e = e.getCause();
 }
 setException(e);
 LOG.error(stringifyException(e));
}
org.apache.hadoop.utilStringUtilsstringifyException

Javadoc

Make a string representation of the exception.

Popular methods of StringUtils

  • 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
  • getStringCollection
    Returns a collection of strings.
  • unEscapeString,
  • getStringCollection,
  • byteDesc,
  • formatPercent,
  • getTrimmedStrings,
  • equalsIgnoreCase,
  • format,
  • formatTimeDiff,
  • getTrimmedStringCollection

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • JTextField (javax.swing)
  • CodeWhisperer alternatives
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