Shut down the VM and restarted

0 votes

HI dear,
actually I noticed that when I shut down the VM and restarted
but quite weird, I was able to see datanote appearing before I shut down
after logging in again, I invokved the command ../
it started secondarynamenode and the namenode is now running at port 8020
as against 9000
sudo jps reveals the below:
1718 NameNode
4840 SecondaryNameNode
1902 JobHistoryServer
4681 DataNode
1786 ResourceManager
4953 Jps
1841 NodeManager

the issue now is, whereas core-site.xml is configured with port 9000, whereas curretnly after running command the namenode now is running at port 8020, hence probably I will have to change the port details in core-site.xml

sorry that did not work :)
I am getting the below error
ogging initialized using configuration in jar:file:/home/edureka/raghu/MyHiveHome/apache-hive-2.1.1-bin/lib/hive-common-2.1.1.jar!/ Async: true
Exception in thread 'main' java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /tmp/hive. Name node is in safe mode.
The reported blocks 0 needs additional 38 blocks to reach the threshold 0.9990 of total blocks 38.
Safe mode will be turned off automatically
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInt(
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(

hence I will have to ensure that the namenode shows up on port 9000 when I invoke the URL : http://localhost:50070/dfshealth.jsp

Dec 17, 2017 in Data Analytics by Raghu

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Dear Raghu,

Please let us know are you using Edureka Vm or any other VM and if you are using Edureka VM then please let us know the configuration changes which you have done.

For solving the issue please use below given command :

hadoop dfsadmin -safemode leave

After that try to execute your hive commands and let us know it is working or not.

We will be waiting for your response.

answered Dec 17, 2017 by Sudhir
• 1,610 points

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer

Which function can I use to clear the console in R and RStudio ?

Description                   Windows & Linux           Mac Clear console                      Ctrl+L ...READ MORE

answered Apr 17, 2018 in Data Analytics by anonymous
0 votes
1 answer

What is the Difference in Size and Count in pandas (python)?

The major difference is size includes NaN ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,700 points
0 votes
1 answer

Splitting the data into training and testing sets - R

You can use the sample.split() function from ...READ MORE

answered May 7, 2018 in Data Analytics by Bharani
• 4,550 points
0 votes
1 answer

How can I print string and variable contents on the same line using R?

There are two options for doing so.  You ...READ MORE

answered May 9, 2018 in Data Analytics by zombie
• 3,690 points
0 votes
1 answer

What is the difference between correlation and covariance?

Correlation and Co-variance both are used as ...READ MORE

answered Jul 24, 2018 in Data Analytics by ANMOL
• 3,620 points
0 votes
1 answer

What is the difference between random forest and decision trees?

The basic difference is that Random Forest ...READ MORE

answered Jul 30, 2018 in Data Analytics by ANMOL
• 3,620 points
0 votes
2 answers

What is the difference between LDA and PCA for dimensionality reduction?

Principal Component Analysis (PCA) is an unsupervised ...READ MORE

answered Mar 6 in Data Analytics by Seema
• 140 points
0 votes
1 answer

How to Share the files from local system Mac Book to Edureka VM

Hey Satya, Hope you're doing great. Would you please ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
0 votes
2 answers

What is difference between Distributed search head and Search head cluster?

 A distributed environment describes the separation of ...READ MORE

answered Dec 3, 2018 in Data Analytics by Ali
• 10,380 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.