-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdriver.py
51 lines (41 loc) · 1.22 KB
/
driver.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import webbrowser
def main():
message = '''Welcome to Big Data Processing Application
Please type the number that corresponds to which application you would like to run:
1. Apache Hadoop
2. Apache Spark
3. Jupyter Notebook
4. SonarQube and SonarScanner
5. quit
'''
choice = " "
print(message)
while (True):
choice = input("Type the number here > ")
if choice == 1:
print("Running Apache Hadoop")
hadoop()
elif choice == 2:
print("Running Apache Spark")
spark()
elif choice == 3:
print("Running Jupyter Notebook")
jupyter()
elif choice == 4:
print("Running SonarQube and SonarScanner")
sonar()
elif choice == 5:
quit()
else:
print("Please enter a valid number > ")
print(message)
def hadoop():
return webbrowser.open('http://35.226.26.81:9870/')
def spark():
return webbrowser.open('http://35.223.120.201:8080/')
def jupyter():
return webbrowser.open('http://35.239.218.131:8888/')
def sonar():
return webbrowser.open('http://34.133.43.239:9000/')
if __name__ == '__main__':
main()