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 17, 2017 in Data Analytics by Raghu
28 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 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
1,303 views
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
700 views
0 votes
2 answers

Splitting the data into training and testing sets - R

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

answered Aug 20 in Data Analytics by anonymous
• 25,620 points
875 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,690 points
28 views
0 votes
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 Anmol
• 3,620 points
1,674 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 Anmol
• 3,620 points
412 views
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
928 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,610 points
48 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 3, 2018 in Data Analytics by Ali
• 10,400 points
154 views