Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Conversation

@rui-mo
Copy link
Collaborator

@rui-mo rui-mo commented Jan 25, 2019

No description provided.

@PHILO-HE
Copy link
Member

Please consider multiple dirs in fetch list and what if there is dependency among these dirs.

Collection<String> fetchDirs =
conf.getTrimmedStringCollection(SmartConfKeys.SMART_NAMESPACE_FETCHER_DIRS_KEY);
fetchList = new ArrayList<>(fetchDirs.size());
for (String dir : fetchDirs) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we access the item in fetchDirs by for each?

@PHILO-HE
Copy link
Member

PHILO-HE commented Jan 28, 2019

Please update the doc accordingly with the explanation for "ignore" property in deployment guide.

@PHILO-HE
Copy link
Member

PHILO-HE commented Jan 28, 2019

The access info and other info related to fetched files will be considered. For other files not under the fetched directories, their info will be ignored. Please refer to the code for "ignore dirs".

626f832
966517a

@PHILO-HE
Copy link
Member

Inotify issue for the ignored or fetched dirs.

deque.add(ROOT);
} else {
for (String dir : fetchList) {
for (String dir : fetchDirs) {

This comment was marked as outdated.

pendingParent = parent;
}
} else {
LOG.warn("Configured directory does not exist");
Copy link
Member

Choose a reason for hiding this comment

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

Should not tackle unexisted dir in this section..
It seems that startAfter == null doesn't mean that the configured directory does not exist.

@PHILO-HE
Copy link
Member

Please cover some cases in unit test.

@rui-mo rui-mo force-pushed the fetch branch 4 times, most recently from 8e9e69e to 0c78a2f Compare February 14, 2019 08:47
@rui-mo rui-mo force-pushed the fetch branch 2 times, most recently from 9cc232d to 496b328 Compare February 20, 2019 07:08
@rui-mo rui-mo force-pushed the fetch branch 4 times, most recently from 43af9e4 to 30f4815 Compare February 27, 2019 05:47
@rui-mo rui-mo force-pushed the fetch branch 3 times, most recently from 5950a84 to 1908815 Compare March 5, 2019 03:49
@rui-mo rui-mo force-pushed the fetch branch 3 times, most recently from 18e7b78 to af5d1aa Compare March 6, 2019 03:05
HdfsFetchTask.init();
}

public void startFetch(String dir) {
Copy link
Member

Choose a reason for hiding this comment

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

Add javadoc for this function.

* Namespace, access info and other info only related to files under these dirs will be tackled.
* For more than one directories, they should be separated by ",".
*/
public static final String SMART_NAMESPACE_FETCHER_DIRS_KEY = "smart.fetch.dirs";
Copy link
Member

Choose a reason for hiding this comment

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

smart.cover.dirs

public void apply(List<Event> events) throws IOException, MetaStoreException {
private void initialize(){
SmartConf conf = new SmartConf();
Collection<String> ignoreDirs = conf.getTrimmedStringCollection(
Copy link
Member

Choose a reason for hiding this comment

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

move this piece of code to SmartConf

@rui-mo rui-mo force-pushed the fetch branch 2 times, most recently from ece8432 to 058aea0 Compare March 19, 2019 03:44
@PHILO-HE PHILO-HE merged commit 3fd90cd into Intel-bigdata:trunk Apr 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants