We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createFileset
Code in HadoopCatalogOperations#createFileset
try { // formalize the path to avoid path without scheme, uri, authority, etc. filesetPath = formalizePath(filesetPath, conf); FileSystem fs = getFileSystem(filesetPath, conf); if (!fs.exists(filesetPath)) { if (!fs.mkdirs(filesetPath)) { throw new RuntimeException( "Failed to create fileset " + ident + " location " + filesetPath); } LOG.info("Created fileset {} location {}", ident, filesetPath); } else { LOG.info("Fileset {} manages the existing location {}", ident, filesetPath); } } catch (IOException ioe) { throw new RuntimeException( "Failed to create fileset " + ident + " location " + filesetPath, ioe);
These two lines will repeatedly get and initialize file system and can be merged into one
AtomicReference<FileSystem> fileSystem = new AtomicReference<>(); Awaitility.await() .atMost(timeoutSeconds, TimeUnit.SECONDS) .until( () -> { fileSystem.set(provider.getFileSystem(path, config)); return true; }); return fileSystem.get();
This code can be replaced to Java Future mechanism to reduce the time taken in poll status.
Future
There may be other minor points to improve.
The text was updated successfully, but these errors were encountered:
I would like to work on it.
Sorry, something went wrong.
OK, just go ahead.
Abyss-lord
No branches or pull requests
Code in HadoopCatalogOperations#createFileset
These two lines will repeatedly get and initialize file system and can be merged into one
This code can be replaced to Java
Future
mechanism to reduce the time taken in poll status.There may be other minor points to improve.
The text was updated successfully, but these errors were encountered: