You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
7 years ago | |
---|---|---|
img | 7 years ago | |
lib | 7 years ago | |
src/com/fr/plugin/hdfs/repository | 7 years ago | |
build.xml | 7 years ago | |
plugin.xml | 7 years ago | |
readme.md | 7 years ago |
readme.md
开发和测试使用说明
上图中的ResourceModuleConfig.profiles.HDFS_TEST.workroots.[你的机器id(可以拷贝表中LOCAL_ENV的)]为hdfs的工作路径。 host设置为Hadoop的hdfs地址,比如默认localhost,port为hdfs端口(默认9000)。 如果有用户组设置还需要对应用户名username。
改数据库太麻烦,可以直接在适当的地方(比如com.fr.io.ResourceRepositoryActivator.doExtra()方法末尾)添加代码
hdfsConfig.put("host", "localhost");
hdfsConfig.put("port", 9000);
try {
ProfileFactory.create("HDFS", "HDFS_TEST", "/app", true, hdfsConfig).install().apply();
} catch (RepositoryException e) {
e.printStackTrace();
}