Thanks a lot for quick response, it's working fine now.

On Thu, Jul 5, 2012 at 3:36 PM, shekhar sharma <> wrote:
Is the namenode is in the safe mode? Run the below command to make hadoop come out of safe mode
dfsadmin -safemode leave

post this question in Hadoop user list.


On Thu, Jul 5, 2012 at 2:42 PM, vijay k <> wrote:

Hi Users list,

I did the following scripts for restaring the system.

hduser@md-trngpoc1:/usr/local/hadoop/bin$ jps
14454 Jps
18207 NameNode
18537 JobTracker
18410 SecondaryNameNode

hduser@md-trngpoc2:/usr/local/hadoop/bin$ jps
28038 Jps
23199 TaskTracker
23125 DataNode

Here, I am trying to view the hive table, i am not able to view the table, getting following error

=============== File /tmp/hive-hduser/hive_2012-07-05_11-38-26_060_2347748706666350421/-ext-10000/Invoice_Details.txt could only be replicated to 0 nodes, instead
of 1
at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(
at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.hadoop.ipc.RPC$
at org.apache.hadoop.ipc.Server$Handler$
at org.apache.hadoop.ipc.Server$Handler$
at Method)
at org.apache.hadoop.ipc.Server$

dfsadmin -report

hduser@md-trngpoc1:/usr/local/hadoop$ bin/hadoop dfsadmin -report
Configured Capacity: 0 (0 KB)
Present Capacity: 0 (0 KB)
DFS Remaining: 0 (0 KB)
DFS Used: 0 (0 KB)
DFS Used%: �%
Under replicated blocks: 6802
Blocks with corrupt replicas: 0
Missing blocks: 0

Datanodes available: 0 (1 total, 1 dead)

Decommission Status : Normal
Configured Capacity: 0 (0 KB)
DFS Used: 0 (0 KB)
Non DFS Used: 0 (0 KB)
DFS Remaining: 0(0 KB)
DFS Used%: 100%
DFS Remaining%: 0%
Last contact: Wed Jul 04 23:58:44 IST 2012

Please suggest me with out reformat the NameNode, how to resove this issue?