Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions PUSAPATI SWETHA/aws assignment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@



1. What if the .pem key file or the .ppk key file to our ec2 machine is lost?
In the cases where the private key file having the RSA is lost, unfortunately there is no wat to get back the key file but there surely is a way to get our instance back.
To do so we need to perform some tasks listed below:
a. Create an Image of the ec2 instance:
1. Select the instance from EC2 Dashboard
2. Under the Actions tab goto image and click Image

3. Enter an appropriate image name and image description and Create Image.

4. After doing this a request to generate image has successfully been placed on the AWS account. To check the status of image one can go to AMI’s section under IMAGES from the right navigation pane.

5. After the image has been created you can launch the new instance using that Image from AMI section or from EC2 Launch Wizard.

6. If you launch from EC2 launch wizard be sure you choose the Image that you created, it would be available under “My AMIs” section.

7. And do not forget to create a new key pair while launching it.

8. Select the image and launch the instance. A new instance with all the data of the old instance is now ready to use.

9. The image created can also be further migrated to any other AWS account (not AWS Educate accounts).



29 changes: 29 additions & 0 deletions PUSAPATI SWETHA/big data assignment.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Q)differences between hadoop1 and hadoop2.

hadoop1:* it has map reduce
*it has job tracker and task tracker
*In Hadoop 1, there is HDFS which is used for storage and top of it,
Map Reduce which works as Resource Management as well as Data Processing.
Due to this workload on Map Reduce, it will affect the performance
*Hadoop 1 is a Master-Slave architecture. It consists of a single master and multiple slaves.
Suppose if master node got crashed then irrespective of your best slave nodes, your cluster will be destroyed.
Again for creating that cluster means copying system files, image files, etc. on another system is too much time consuming which will not be tolerated by organizations in today’s time.


hadoop2:*it has YARN
*it has resource manager and node manager
*In Hadoop 2, there is again HDFS which is again used for storage and on the top of HDFS, there is YARN which works as Resource Management.
It basically allocates the resources and keeps all the things going on.
*Hadoop 2 is also a Master-Slave architecture. But this consists of multiple masters (i.e active namenodes and standby namenodes) and multiple slaves.
If here master node got crashed then standby master node will take over it. You can make multiple combinations of active-standby nodes.
Thus Hadoop 2 will eliminate the problem of a single point of failure.


Q) why hadoop has block of 128 mb

minimize the cost of seek and reduce the meta data information generated per block.


Q)why does name node rely on memory
The namenode keeps all of the filesystem layout information (files, blocks, directories, permissions, etc) and the block locations.
The filesystem layout is persisted on disk and the block locations are kept solely in memory
25 changes: 25 additions & 0 deletions PUSAPATI SWETHA/whatsapp python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import requests as rq
import pyautogui as pg
import webbrowser as wb
num=[]
message=input("Enter your message: ")
count=int(input("How many person you want to send message: "))
Message=int(input("How many message you want to send: "))
for i in range(count):
n=int(input("Enter Contact Number followed by 91: "))
num.append(num)
for a in range(count):
time.sleep(2)
link="https://web.whatsapp.com/send?phone={}&text={}".format(number[a],message)
wb.open(link)
time.sleep(15)
print("Page timeout")
pg.press("enter")
for x in range(Message):
pg.typewrite(message)
pg.press("enter")
time.sleep(2)
pg.hotkey("ctrl","w")
pg.press("enter")
print("Mesage sent to {} message is {}".format(number[a],message))
print("message sent")