1.

What is HDFS Command to create a file in HDFS with file size 0 bytes.

Answer» UBUNTU@ubuntu-VirtualBox:~$ hdfs dfs -touchz /hadoop/sample ubuntu@ubuntu-VirtualBox:~$ hdfs dfs -ls /hadoop

Found 2 items

-rw-R--r--  2 ubuntu supergroup0 2018-11-08 00:57 /hadoop/sample 
-rw-r--r--  2 ubuntu supergroup16 2018-11-08 00:45 /hadoop/test


Discussion

No Comment Found

Related InterviewSolutions