-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-14478: Add libhdfs APIs for openFile #955
New issue
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
base: trunk
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I dont see any tests for trying to open a file which doesnt exist. When you do that. the failure is postponed until the completion is evaluated, so you need to add a test there to make sure the failure is escalated properly |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
….scala and SystemConfig.scala to Java (apache#955) * moving FileSystemCheckpointManagerConfig.scala and SystemConfig.scala to java * renaming JavaSystemConfig to SystemConfig now that the scala version is gone
This comment has been minimized.
This comment has been minimized.
|
Thanks @Sahil for the patch. Would you rebase the commit on the latest trunk? so we can get a test run against trunk. |
|
I should warn that in #2046 I'm adding opt/must to take a long as well; we just missed that out in the past. Needed so that applications like yours can pass in the known length of the file (split limit is fine) and we can skip the HEAD from that alone. hive needs that |
HDFS-14478: Add libhdfs APIs for openFile
Exposes the openFile API via libhdfs, adds new tests to
test_libhdfs_ops.c. For the most part, the libhdfs API mirrors the Java API (e.g. the async open file is modeled in a similar fashion tojava.util.concurrent.Future).