Skip to content

Best effort to find locations for input splits#2223

Merged
fjy merged 1 commit intoapache:masterfrom
navis:besteffort-split-locations
Jan 21, 2016
Merged

Best effort to find locations for input splits#2223
fjy merged 1 commit intoapache:masterfrom
navis:besteffort-split-locations

Conversation

@navis
Copy link
Copy Markdown
Contributor

@navis navis commented Jan 7, 2016

Currently DatasourceInputSplit does not provide server locations. This is best effort try to find for them.

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jan 7, 2016

@navis this is failing unit tests

@navis navis force-pushed the besteffort-split-locations branch 2 times, most recently from 896259e to 3158684 Compare January 8, 2016 01:07
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 8, 2016

@fjy fixed test fail

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you use org.apache.hadoop.mapreduce.lib.input.FileInputFormat?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've tried once but JobContext which needed for it is rather big object to create a dummy implementation. I prefer to use mapre.FileInputFormat for simplicity.

@navis navis force-pushed the besteffort-split-locations branch from 3158684 to 15759ca Compare January 11, 2016 07:57
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you use log.error(..) instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok

@navis navis force-pushed the besteffort-split-locations branch from 15759ca to 2bf1f80 Compare January 14, 2016 00:11
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 14, 2016

addressed comments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pls remove, or, i guess you need some IDE automation to remove System.out.println(..)s :-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok

@himanshug
Copy link
Copy Markdown
Contributor

👍 after #2223 (comment) and commit squash

@navis navis force-pushed the besteffort-split-locations branch from ce1fd2d to f03f7fb Compare January 17, 2016 23:31
@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 17, 2016

removed log message and squashed

@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 20, 2016

@himanshug I think I have committer privilege but I don't know the rule. Can I commit my PR if some other committer approved it? I heard that in some projects, commit is allowed only by reviewer not by the author.

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jan 20, 2016

@navis Please see http://druid.io/community/.

You will need 2 +1s

@navis
Copy link
Copy Markdown
Contributor Author

navis commented Jan 20, 2016

@fjy With two +1, then any committer including the author can commit it?

@himanshug
Copy link
Copy Markdown
Contributor

@navis general rule is two +1's other than author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants