-1

I want to see contents of the hdfs file which I have import mysql data using sqoop.

I ran the command hadoop dfs -cat /user/cloudera/products/part-m-00000.

I am getting error:

cat: Zero blocklocations for /user/cloudera/products/part-m-00000. Name node is in safe mode.
arghtype
  • 4,376
  • 11
  • 45
  • 60
rakesh
  • 1

1 Answers1

0

It s not possible to read hdfs data when namenode is in safe mode. Leave from safe mode, run the below command,

hadoop dfsadmin -safemode leave

Then cat the file in hdfs.

Sathiyan S
  • 1,013
  • 6
  • 13