Tabnine Logo
UnderFileSystemUtils.isHdfs
Code IndexAdd Tabnine to your IDE (free)

How to use
isHdfs
method
in
alluxio.util.UnderFileSystemUtils

Best Java code snippets using alluxio.util.UnderFileSystemUtils.isHdfs (Showing top 3 results out of 315)

origin: Alluxio/alluxio

@Override
public TaskResult validate(Map<String, String> optionsMap) {
 if (!UnderFileSystemUtils.isHdfs(mUfs)) {
origin: Alluxio/alluxio

@Test
public void createOpenEmpty() throws IOException {
 String testFile = PathUtils.concatPath(mUnderfsAddress, "createOpenEmpty");
 createEmptyFile(testFile);
 byte[] buf = new byte[0];
 int bytesRead = mUfs.open(testFile).read(buf);
 // TODO(adit): Consider making the return value uniform across UFSs
 if (UnderFileSystemUtils.isHdfs(mUfs)) {
  assertEquals(-1, bytesRead);
 } else {
  assertEquals(0, bytesRead);
 }
}
origin: org.alluxio/alluxio-core-server-common

@Override
public TaskResult validate(Map<String, String> optionsMap) {
 if (!UnderFileSystemUtils.isHdfs(mUfs)) {
alluxio.utilUnderFileSystemUtilsisHdfs

Popular methods of UnderFileSystemUtils

  • getBucketName
  • approximateContentHash
    Returns an approximate content hash, using the length and modification time.
  • deleteFileIfExists
    Deletes the specified path from the specified under file system if it is a file and exists.
  • touch
    Creates an empty file.
  • deleteDirIfExists
    Deletes the directory at the given path if it exists.
  • isLocal
  • mkdirIfNotExists
    Attempts to create the directory if it does not already exist.

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Path (java.nio.file)
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • From CI to AI: The AI layer in your organization
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