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

LIHADOOP-19841: Enable Analyzing Spark jobs for Namenode HA #55

Merged
merged 1 commit into from
May 26, 2016

Conversation

nntnag17
Copy link
Contributor

No description provided.

@@ -71,7 +81,8 @@ class SparkFSFetcher(fetcherConfData: FetcherConfigurationData) extends Elephant
*/
private lazy val _logDir: String = {
val conf = new Configuration()
val nodeAddress = conf.get("dfs.namenode.http-address", null)
val nodeAddress = getNamenodeAddress(conf);
//val nodeAddress = conf.get("dfs.namenode.http-address", null)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove commented out code

@akshayrai
Copy link
Contributor

+1

if (nameNodeIdentifier != null) {
// there can be multiple namenode identifiers separated by ','
for (nameNodeidentifierValue <- nameNodeIdentifier.split(",")) {
val httpValue = conf.get(DFS_NAMENODE_HTTP_ADDRESS + "." + nameService + "." + nameNodeidentifierValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

for naming conventions, nameNodeidentifierValue should be nameNodeIdentifierValue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@akshayrai
Copy link
Contributor

Looks good

@nntnag17
Copy link
Contributor Author

@stiga-huang: Thanks for reviewing the code. I've updated the PR after addressing your comments.

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

4 participants