Skip to content
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

[IOTDB-189] Support compatibility of HDFS File and Java File #365

Merged
merged 11 commits into from Sep 6, 2019
Merged

[IOTDB-189] Support compatibility of HDFS File and Java File #365

merged 11 commits into from Sep 6, 2019

Conversation

samperson1997
Copy link
Contributor

@samperson1997 samperson1997 commented Aug 31, 2019

This is the first step to resolve requirement IOTDB-187: "Enabling to choose storage in local file system or HDFS".

This step contains:

  • Add property storage_fs (default LOCAL, could be HDFS etc) in iotdb-engine.properties for users to config.
  • Add FileFactory to get files by configuration in IoTDBConfig.
  • Add HdfsFile which extends java.io.file and rewrite methods in HDFS ways (may have some bugs, will be fixed in next steps)

After these steps, we could use FileFactory.INSTANCE.getFile(...) to get "file" according to configured file system, which supports compatibility of HDFS file and java file.

Copy link
Contributor

@jt2594838 jt2594838 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@jt2594838 jt2594838 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants