-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ganglia] maintenance release (#1289)
* Fixing ganglia.sh Fix the script to fix two scenarios: 1. No source list file needs to be updated 2. Multiple source list files need to be updated * ganglia/BUILD: * using perl to verify http server instead of python ganglia/ganglia.sh: * export DEBIAN_FRONTEND=noninteractive * use latest implementation of repair_old_backports * include some utility functions to help check for running OS, and versions of spark, dataproc and OS versions * refactor ganglia worker setup into function * install worker on master when using single node configuration * reduce noise from apt and wait for lock release ganglia/test_ganglia.py: * increase test instance size to n1-standard-8 * replaced complicated python test with simple perl * run test with conda python * corrected version nit about where ganglia ui is supported ganglia/verify_ganglia_running.py, ganglia/verify_ganglia_running.pl: * replaced complicated python with simple perl --------- Co-authored-by: C.J. Collier <[email protected]>
- Loading branch information
Showing
5 changed files
with
134 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/perl -w | ||
# -*-CPerl-*- | ||
|
||
# verify_ganglia_running.py: Script for ganglia initialization action test. | ||
|
||
use strict; | ||
use LWP::UserAgent; | ||
|
||
my $hostname = qx(hostname -s); chomp $hostname; | ||
my $role = qx(/usr/share/google/get_metadata_value attributes/dataproc-role); | ||
my $primary_master = qx(/usr/share/google/get_metadata_value attributes/dataproc-master); | ||
my $cluster_name = qx(/usr/share/google/get_metadata_value attributes/dataproc-cluster-name); | ||
|
||
if ( $hostname eq $primary_master ){ | ||
my $hostname = 'localhost'; | ||
my $port = '80'; | ||
|
||
my $ua = LWP::UserAgent->new; | ||
|
||
my $response = $ua->get("http://${hostname}:${port}/ganglia/"); | ||
|
||
die $response->status_line unless $response->is_success; | ||
my( $page_title ) = ( $response->decoded_content =~ m:<b id="page_title">([^>]+)</b>: ); | ||
die 'Ganglia UI is not found on master node' unless( $page_title =~ /^${cluster_name}/ ); | ||
print("Ganglia UI is running on this node.",$/); | ||
}else{ | ||
if ( $hostname =~ /-w-/ ){ | ||
print("Ganglia UI should not run on worker node",$/); | ||
}elsif( $hostname =~ /-m-/ ){ | ||
print("Ganglia UI should not run on additional master",$/); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.