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 ../start_dfs.sh
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 start-dfs.sh command the namenode now is running at port 8020, hence probably I will have to change the port details in core-site.xml

Hi
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!/hive-log4j2.properties 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(FSNamesystem.java:3355)
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3330)

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 18, 2017 in Data Analytics by Raghu
887 views

1 answer to this question.

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 18, 2017 by Sudhir
• 1,570 points

Related Questions In Data Analytics

0 votes
1 answer
+1 vote
2 answers

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
82,285 views
0 votes
1 answer

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

The major difference is "size" includes NaN values, ...READ MORE

answered Apr 30, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 8, 2020 by Gitika 2,860 views
+1 vote
2 answers

Splitting the data into training and testing sets - R

Hi, Try like this. train = sample(x = ...READ MORE

answered Aug 21, 2019 in Data Analytics by anonymous
• 33,030 points
6,127 views
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,790 points
1,877 views
+1 vote
2 answers

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 Abhi
• 3,720 points
4,077 views
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 Abhi
• 3,720 points
2,155 views
+1 vote
2 answers

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

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

answered Mar 7, 2019 in Data Analytics by Seema
• 140 points
14,711 views
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,570 points
881 views
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 4, 2018 in Data Analytics by Ali
• 11,360 points
2,468 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP